summaryrefslogtreecommitdiff
path: root/bin/df
AgeCommit message (Collapse)Author
2016-08-14Another %qd -> %lld + (long long) for off_t's.Kenneth R Westerback
2016-08-10fix HISTORY; from Sevan Janiyan <venture37 at geeklan dot co dot uk>;Ingo Schwarze
checked with http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1
2016-03-14replace __progname with getprogname(3)mmcc
from Michal Mazurek, ok tb@
2016-03-07simplify print formatting logic, replace exit() in main() with returnmmcc
from Michal Mazurek, ok tb@
2016-03-01tidy up function declarations and definitionsmmcc
from Michal Mazurek, ok tb@
2016-03-01remove unneeded includesmmcc
from Michal Mazurek, ok tb@
2016-02-08remove needless headersmmcc
ok tb@, from Michal Mazurek
2015-11-27Use strlcpy to copy strings in struct mount, not memmove. AvoidsTodd C. Miller
reading past the end of a buffer. Problem found and OK jsg@
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-04df is a tame "stdio rpath" program, the rpath due to getfsstat and statfs.Theo de Raadt
those two system calls were put into the "rpath" catagory because they expose pathname information.
2015-03-01Avoid SIGFPE when parsing an invalid ext2fs through a raw device operation.Tobias Stoeckmann
ok millert
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orTheo de Raadt
delete <sys/param.h> if now possible ok guenther
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-05-20As suggested by guenther@ and millert@, replace seek+[read|write] withKenneth R Westerback
p[read|write]. Makes the code much clearer by eliminating extra error checking and verbiage. No intentional functional change. Tweaks by and ok guenther@
2014-05-16Make the df calculations of available space the same as that done inKenneth R Westerback
ffs_statfs(). In 1998, with /usr/src/sys/ufs/ffs/ffs_vfsops.c r1.16, mickey@ improved the calculation of available blocks in ffs_statfs(). Yesterday guenther@ noticed that this fix had not been applied to the same calculation being done by df(8) when run against raw devices. Which meant different values were displayed depending on which device/file system you gave to df. ok otto@
2014-03-17word tweak from schwarze;Jason McIntyre
2014-02-13BLOCKSIZE is an extension;Jason McIntyre
2014-02-04various minor fixes; ok sobradoJason McIntyre
2010-09-03add an EXIT STATUS section for /bin;Jason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-06-04- sync the descriptions of -h and -kJason McIntyre
- note that the last -h or -k specified takes precedence the latter part based on a diff from Daniel Dickman, with text from ls.1 ok otto millert
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-03-16actually print the now available large numbersOtto Moerbeek
2007-12-22fix df posix mode bugCharles Longeau
from otto@ prompted by otto@ who is aftk for now
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29note some flags which differ in behaviour from posix;Jason McIntyre
suggested by millert
2007-05-29- consistent STANDARDS blurbJason McIntyre
- note which options are extensions to POSIX discussed w/ deraadt otto millert
2007-04-30ffs2 support for reading df data directly from device; ok millert@ pedro@Otto Moerbeek
2007-03-19Add FFS2 fields to the superblock, change file system tools to keepPedro Martelletto
accessing FFS1 fields, okay art@, quite some testing by ckuethe@, simon@ and thib@, thanks.
2007-02-03statfs(2) and fstatfs(2) are one and the same, so don;t add both to SEE ALSO;Jason McIntyre
2006-10-29like -i, -h is incompatible with -P; suggested by jmc@; ok ray@Otto Moerbeek
2006-10-21note that -hP and -iP are illegal; ok ottoJason McIntyre
2006-10-18- update reference to posix to latest versionJason McIntyre
- note that the flags [-hiln] are extensions
2006-10-18- standard EXAMPLES sectionJason McIntyre
- use .Ex instead of an entire DIAGNOSTICS section
2006-09-21Remove LFS-related code, no binary changePedro Martelletto
2006-05-11handle malloc failure; jan.niemann@tu-bs.deTheo de Raadt
2005-02-20Better handling of large filesystems, okay henning@ and millert@, withPedro Martelletto
input from martin@ and miod@.
2005-01-28widen the avail/used columns by one space to accomodate for >100g ↵Michael Shalayeff
filesystems. the total is already wide enough due to the header length; dhartmei@ ok
2004-11-18Sync usage with man page; Paul de WeerdTodd C. Miller
2004-11-17Document exit code, pointed out by Paul de Weerd.Todd C. Miller
2004-10-15Don't print header if we didn't print any usage lines. Noticed andTodd C. Miller
tested by robert@
2004-09-14fd leak (and who said lint never finds real bugs)Theo de Raadt
2004-09-14remove unused variableTheo de Raadt
2004-09-14do not alias unions between files (lint hates it)Theo de Raadt
2004-01-05wording improvemements;Jason McIntyre
started by Jared Yanovich and tempered by otto, tom, millert and myself; ok millert@
2003-12-08-h also overrides BLOCKSIZE;Jason McIntyre
from perry@netbsd
2003-07-29spacingTheo de Raadt
2003-07-02missing protosTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.