summaryrefslogtreecommitdiff
path: root/bin/df
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly add unmarked bin/ binaries to the runtime package.Glen Barber2016-02-091-0/+1
| | | | | | | | | | | Note: tcsh(1) has a MK_TCSH=no test, so this should be a separate package, which requires pre-install/post-install scripts, to be added later. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295439
* Add more text to explain --libxo flag.Craig Rodrigues2015-12-011-1/+8
| | | | Notes: svn path=/head/; revision=291607
* Use exit() instead of return in main().Xin LI2015-08-281-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=287236
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated/new dependenciesSimon J. Gerraty2014-11-191-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=274694
| * Merge from head@274682Simon J. Gerraty2014-11-193-53/+80
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge headSimon J. Gerraty2014-04-281-4/+4
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ Merge from headSimon J. Gerraty2013-09-052-6/+9
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync with HEAD.David E. O'Brien2013-02-082-43/+116
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | Convert bin/ to LIBADD, reduce overlinking allow to build all components asBaptiste Daroussin2014-11-251-2/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | static Notes: svn path=/head/; revision=275028
* | | | | Document that df(1) supports libxo(3).Marcel Moolenaar2014-11-071-1/+4
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=274214
* | | | | Convert to use libxo.Marcel Moolenaar2014-11-072-52/+76
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: Phil Shafer <phil@juniper.net> Sponsored by: Juniper Networks, Inc. Notes: svn path=/head/; revision=274213
* | | | -h and -H options backwards in manual page.Warren Block2014-01-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: bin/183681 docs/183681 Submitted by: Robin Hahling <robin.hahling@gw-computing.net> MFC after: 3 days Notes: svn path=/head/; revision=260782
* | | | Clean up a spurious "." in SEE ALSO.Christian Brueffer2013-10-281-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=257288
* | | Complete revision 243104.Greg Lehey2013-05-171-1/+3
| | | | | | | | | | | | Notes: svn path=/head/; revision=250732
* | | Don't appease clang static analyzer after all and roll backUlrich Spörlein2013-04-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the free(3) of mntbuf ... again. There's no point in doing useless extra work when we're about to exit. See also r240565. Not reading file history: uqs Notes: svn path=/head/; revision=249924
* | | bin/df: Fix unitialized use in prtstatUlrich Spörlein2013-04-201-5/+7
| |/ |/| | | | | | | | | | | | | | | | | | | | | While here: - use NULL in the context of pointers - use memset instead of bzero throughout the file - free memory to appease clang static analyzer Found by: Coverity Scan (the UNINIT one) Notes: svn path=/head/; revision=249698
* | Don't time travel back and use a present date.Xin LI2013-01-251-1/+1
| | | | | | | | | | | | | | Noticed by: mckusick Notes: svn path=/head/; revision=245912
* | - Wrap long line;Xin LI2013-01-242-2/+4
| | | | | | | | | | | | | | | | | | - Add -, to SYNOPSIS section. MFC after: 2 weeks Notes: svn path=/head/; revision=245871
* | Handle large negative block counts correctly.Greg Lehey2012-12-121-1/+1
| | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=244134
* | Update man pages and clarify a number of options.Greg Lehey2012-11-162-35/+65
| | | | | | | | | | | | | | | | | | Rework block count calculations to work correctly with small "block" sizes. MFC after: 14 days Notes: svn path=/head/; revision=243129
* | Fix section number for pstat and swapinfo cross references.Sergey Kandaurov2012-11-151-3/+3
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=243104
* | Add , (comma) option to print sizes grouped and separated by thousandsGreg Lehey2012-11-152-16/+57
| | | | | | | | | | | | | | | | | | | | using the non-monetary separator returned by localeconv(3), typically a comma or period. MFC after: 14 days Notes: svn path=/head/; revision=243049
* | Revert 240527:Eitan Adler2012-09-161-1/+0
| | | | | | | | | | | | | | | | | | | | mntbuf can poit to memory allocated by getmntinfo(3) which can't be freed PR: bin/171634 Approved by: cperciva (implicit) Notes: svn path=/head/; revision=240565
* | Free memory before exiting in order toEitan Adler2012-09-141-0/+1
|/ | | | | | | | | | | | help tools understand that we're not leaking it. PR: bin/171634 Submitted by: Erik Cederstrand <erik@cederstrand.dk> Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=240527
* Bump date to today (since I modified it)Eitan Adler2012-03-031-1/+1
| | | | | | | | | PR: bin/165321 Approved by: gjb MFC after: 3 days Notes: svn path=/head/; revision=232469
* Direct users to swapinfo and pstat from dfEitan Adler2012-03-031-0/+2
| | | | | | | | | | PR: bin/165321 Submitted by: jhs Approved by: bcr MFC after: 3 days Notes: svn path=/head/; revision=232466
* Minor clarificationDag-Erling Smørgrav2011-10-181-1/+2
| | | | | | | MFC after: 3 weeks Notes: svn path=/head/; revision=226503
* Simplify df(1) by factoring out most of the common code:Dag-Erling Smørgrav2011-10-181-26/+27
| | | | | | | | | | | | | | | | | | | | | | | | - In the argc == 0 case, just populate the mount list as before, but do not calculate widths, update totals or print anything. - In the argv > 0 case, collect information about the requested file systems and store it in the mount list, but do not calculate widths, update totals or print anything. - In either case, once all the information has been collected, iterate once through the mount list to calculate widths and totals, then once more to print everything. This also fixes two bugs: firstly, column widths were not calculated correctly if more than one file system was specified on the command line; and secondly, file systems with MNT_IGNORE were included in the totals even if -a was not specified. Noticed by: Paul Schenkeveld MFC after: 3 weeks Notes: svn path=/head/; revision=226502
* Fix typos - remove duplicate "the".Rebecca Cran2011-02-211-1/+1
| | | | | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days Notes: svn path=/head/; revision=218909
* Staticify internal routines.Xin LI2009-06-231-1/+1
| | | | Notes: svn path=/head/; revision=194795
* Make "human-readable" (-H/-h) output also "humanize" inode counts.Simon L. B. Nielsen2009-06-072-6/+37
| | | | | | | | | | | | Base 10 is always used for the inode counts as I could not think of any reason base 2 inode counts would be useful. Minor mdoc markup fix to df(1) while here anyway. MFC after: 3 weeks Notes: svn path=/head/; revision=193629
* Implement -T option as found in Linux df(1). When given, file system typePawel Jakub Dawidek2008-11-232-7/+19
| | | | | | | | | | will be included in output. Reviewed and tested by: keramida MFC after: 2 weeks Notes: svn path=/head/; revision=185200
* Significantly reduce the memory leak as noted in BUGS section forSean Farley2007-07-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith) Notes: svn path=/head/; revision=171195
* Back out all POSIXified *env() changes.Andrey A. Chernov2007-05-011-4/+4
| | | | | | | | | | | | Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that. Anyone who interested in POSIX can dig out what changes and how through cvs diffs. Notes: svn path=/head/; revision=169177
* Eliminate error with -W* strict flags and make putenv() calls conforming toAndrey A. Chernov2007-04-301-4/+4
| | | | | | | standard in the same way as f.e. gcc internal portable code does. Notes: svn path=/head/; revision=169112
* getblocksize expects pointer to long as a second argument, notAlexander Kabaev2007-04-061-2/+2
| | | | | | | a pointer to u_long. Notes: svn path=/head/; revision=168428
* Fix a bug where the mutual exclusivity of the -l and -t options is notWill Andrews2007-03-081-1/+4
| | | | | | | | | | recognized properly if -l is specified first. PR: bin/105721 MFC after: 1 week Notes: svn path=/head/; revision=167326
* Fix markup.Ruslan Ermilov2007-02-281-2/+3
| | | | Notes: svn path=/head/; revision=167105
* Based on The Open Group Base Specifications Issue 6 IEEE Std 1003.1, ourChristian S.J. Peron2006-09-201-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | current implementation of df(1) is does not properly format the output under certain conditions. Right now -kP and -Pk are not the same thing. Further, when we set the BLOCKSIZE environment variable, we use "1k" instead of "1024", making the header display incorrectly. To quote the specification: "When both the -k and -P options are specified, the following header line shall be written (in the POSIX locale): "Filesystem 1024-blocks Used Available Capacity Mounted on\n" - If -P has been specified, check to make sure that -k has not already been specified, if so, simply break instead of clobbering the previous blocksize - Use 1024 instead of 1k to make the header POSIX compliant Reported by: Andriy Gapon Discussed with: bde, ru MFC after: 1 week Notes: svn path=/head/; revision=162483
* Prefer strlcpy to strncpy. In one case, this saves us from re-zeroingWarner Losh2006-08-201-2/+2
| | | | | | | | data that's alreday 0. In another, it saves us from zeroing data that will be overwritten again. Notes: svn path=/head/; revision=161470
* Add the new standard EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-161-7/+7
| | | | | | | Sort standard sections in the (documented) preferred order. Notes: svn path=/head/; revision=140353
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-102-1/+2
| | | | Notes: svn path=/head/; revision=139969