summaryrefslogtreecommitdiffstats
path: root/bin/df/df.c
AgeCommit message (Expand)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-3/+3
2016-08-14Another %qd -> %lld + (long long) for off_t's.krw1-3/+3
2016-03-14replace __progname with getprogname(3)mmcc1-4/+2
2016-03-07simplify print formatting logic, replace exit() in main() with returnmmcc1-6/+3
2016-03-01tidy up function declarations and definitionsmmcc1-25/+25
2016-02-08remove needless headersmmcc1-2/+1
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
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-2/+1
2014-05-20As suggested by guenther@ and millert@, replace seek+[read|write] withkrw1-3/+2
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-15/+1
2008-03-16actually print the now available large numbersotto1-12/+12
2007-12-22fix df posix mode bugchl1-3/+3
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt1-3/+3
2006-10-29like -i, -h is incompatible with -P; suggested by jmc@; ok ray@otto1-4/+4
2006-09-21Remove LFS-related code, no binary changepedro1-7/+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
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-10-15Don't print header if we didn't print any usage lines. Noticed andmillert1-15/+17
2004-09-14fd leak (and who said lint never finds real bugs)deraadt1-9/+7
2004-09-14remove unused variablederaadt1-6/+4
2003-07-29spacingderaadt1-4/+4
2003-07-02missing protosderaadt1-2/+4
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert1-7/+3
2003-05-26Use prt_scaled from libutil. ok pjanzen@, millert@ian1-49/+18
2003-02-19LFS is dead. saves some space on install floppies too.tedu1-2/+4
2002-07-04ansideraadt1-41/+16
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert1-14/+14
2001-09-06o) __progname aria;mpech1-3/+7
2001-07-09Compute %used in -P mode as a double, just like we do in normal printingmillert1-8/+6
2001-02-23Avoid potential uninitialized variablepjanzen1-3/+3
2000-10-18sort out printf formats according to types, 64bit arithmetics in ffs_df; millert@ okmickey1-7/+6
2000-03-24Make f_bsize signed. Having it unsigned causes surprising (and unwanted)millert1-3/+3
1999-12-31In prtstat() use u_int32_t and int32_t, not long and castmillert1-5/+6
1999-05-31New struct statfs with mount options. NOTE: this replaces statfs(2),millert1-3/+3
1999-01-31When adjusting units for -h mode, use the absolute value to check formillert1-8/+11
1998-08-18people who fail to update man pages and usage lines will henceforth be shot on sightderaadt1-3/+3
1998-08-17fix df -P on 0-size filesystemsderaadt1-4/+7
1997-11-20Fix units conversion wrt -h flag to be correct (and consistent withmillert1-11/+11
1997-09-01i am bored enough to fix terminal space/tab ugliesderaadt1-3/+3
1997-08-19Add -P option, the POSIX 1003.2 output format (strictly specified for parsing).denny1-37/+117
1997-07-23tabifykstailey1-8/+8
1997-06-16Better support for unmounted filesystems (i.e. df /dev/rsd0a):denny1-81/+25
1997-06-01From denny@c200234-a.frmt1.sfba.home.com, check superblock magic number.downsj1-2/+6
1997-04-14make -h columns more compactkstailey1-13/+17
1997-04-14switch from <blank> to "B" for byte suffix; columns look too ugly otherwisekstailey1-5/+5
1997-04-14fix Avail column in -h mode (again)kstailey1-3/+3
1997-04-14fix Avail column in -h modekstailey1-7/+9