summaryrefslogtreecommitdiffstats
path: root/bin/df
AgeCommit message (Collapse)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-3/+3
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2016-08-14Another %qd -> %lld + (long long) for off_t's.krw1-3/+3
2016-08-10fix HISTORY; from Sevan Janiyan <venture37 at geeklan dot co dot uk>;schwarze1-3/+3
checked with http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1
2016-03-14replace __progname with getprogname(3)mmcc1-4/+2
from Michal Mazurek, ok tb@
2016-03-07simplify print formatting logic, replace exit() in main() with returnmmcc1-6/+3
from Michal Mazurek, ok tb@
2016-03-01tidy up function declarations and definitionsmmcc1-25/+25
from Michal Mazurek, ok tb@
2016-03-01remove unneeded includesmmcc2-6/+2
from Michal Mazurek, ok tb@
2016-02-08remove needless headersmmcc3-8/+4
ok tb@, from Michal Mazurek
2015-11-27Use strlcpy to copy strings in struct mount, not memmove. Avoidsmillert2-8/+8
reading past the end of a buffer. Problem found and OK jsg@
2015-10-09Change all tame callers to namechange to pledge(2).deraadt1-3/+3
2015-10-04df is a tame "stdio rpath" program, the rpath due to getfsstat and statfs.deraadt1-1/+4
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.tobias1-3/+4
ok millert
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orderaadt1-2/+2
delete <sys/param.h> if now possible ok guenther
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt3-6/+5
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] withkrw1-3/+2
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 inkrw1-6/+5
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;jmc1-3/+3
2014-02-13BLOCKSIZE is an extension;jmc1-3/+6
2014-02-04various minor fixes; ok sobradojmc1-9/+10
2010-09-03add an EXIT STATUS section for /bin;jmc1-4/+4
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2-22/+2
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 -kjmc1-2/+10
- 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 fewjmc1-4/+4
updates to follow;
2008-03-16actually print the now available large numbersotto1-12/+12
2007-12-22fix df posix mode bugchl1-3/+3
from otto@ prompted by otto@ who is aftk for now
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt1-3/+3
2007-05-31convert to new .Dd format;jmc1-2/+2
2007-05-29note some flags which differ in behaviour from posix;jmc1-1/+6
suggested by millert
2007-05-29- consistent STANDARDS blurbjmc1-2/+2
- 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@otto1-12/+24
2007-03-19Add FFS2 fields to the superblock, change file system tools to keeppedro1-7/+7
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;jmc1-2/+1
2006-10-29like -i, -h is incompatible with -P; suggested by jmc@; ok ray@otto1-4/+4
2006-10-21note that -hP and -iP are illegal; ok ottojmc1-1/+7
2006-10-18- update reference to posix to latest versionjmc1-2/+6
- note that the flags [-hiln] are extensions
2006-10-18- standard EXAMPLES sectionjmc1-14/+5
- use .Ex instead of an entire DIAGNOSTICS section
2006-09-21Remove LFS-related code, no binary changepedro2-102/+2
2006-05-11handle malloc failure; jan.niemann@tu-bs.dederaadt1-2/+4
2005-02-20Better handling of large filesystems, okay henning@ and millert@, withpedro1-5/+5
input from martin@ and miod@.
2005-01-28widen the avail/used columns by one space to accomodate for >100g filesystems. the total is already wide enough due to the header length; dhartmei@ okmickey1-7/+7
2004-11-18Sync usage with man page; Paul de Weerdmillert1-3/+3
2004-11-17Document exit code, pointed out by Paul de Weerd.millert1-1/+12
2004-10-15Don't print header if we didn't print any usage lines. Noticed andmillert1-15/+17
tested by robert@
2004-09-14fd leak (and who said lint never finds real bugs)deraadt1-9/+7
2004-09-14remove unused variablederaadt1-6/+4
2004-09-14do not alias unions between files (lint hates it)deraadt2-4/+4
2004-01-05wording improvemements;jmc1-3/+3
started by Jared Yanovich and tempered by otto, tom, millert and myself; ok millert@
2003-12-08-h also overrides BLOCKSIZE;jmc1-2/+4
from perry@netbsd
2003-07-29spacingderaadt1-4/+4
2003-07-02missing protosderaadt1-2/+4