summaryrefslogtreecommitdiff
path: root/bin/df/df.c
AgeCommit message (Expand)Author
2023-01-01Round up fractional percentages, as per POSIX.Todd C. Miller
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2016-08-14Another %qd -> %lld + (long long) for off_t's.Kenneth R Westerback
2016-03-14replace __progname with getprogname(3)mmcc
2016-03-07simplify print formatting logic, replace exit() in main() with returnmmcc
2016-03-01tidy up function declarations and definitionsmmcc
2016-02-08remove needless headersmmcc
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
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-05-20As suggested by guenther@ and millert@, replace seek+[read|write] withKenneth R Westerback
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2008-03-16actually print the now available large numbersOtto Moerbeek
2007-12-22fix df posix mode bugCharles Longeau
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2006-10-29like -i, -h is incompatible with -P; suggested by jmc@; ok ray@Otto Moerbeek
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
2005-01-28widen the avail/used columns by one space to accomodate for >100g filesystems...Michael Shalayeff
2004-11-18Sync usage with man page; Paul de WeerdTodd C. Miller
2004-10-15Don't print header if we didn't print any usage lines. Noticed andTodd C. Miller
2004-09-14fd leak (and who said lint never finds real bugs)Theo de Raadt
2004-09-14remove unused variableTheo de Raadt
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
2003-05-26Use prt_scaled from libutil. ok pjanzen@, millert@Ian Darwin
2003-02-19LFS is dead. saves some space on install floppies too.Ted Unangst
2002-07-04ansiTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-09-06o) __progname aria;Mike Pechkin
2001-07-09Compute %used in -P mode as a double, just like we do in normal printingTodd C. Miller
2001-02-23Avoid potential uninitialized variablePaul Janzen
2000-10-18sort out printf formats according to types, 64bit arithmetics in ffs_df; mill...Michael Shalayeff
2000-03-24Make f_bsize signed. Having it unsigned causes surprising (and unwanted)Todd C. Miller
1999-12-31In prtstat() use u_int32_t and int32_t, not long and castTodd C. Miller
1999-05-31New struct statfs with mount options. NOTE: this replaces statfs(2),Todd C. Miller
1999-01-31When adjusting units for -h mode, use the absolute value to check forTodd C. Miller
1998-08-18people who fail to update man pages and usage lines will henceforth be shot o...Theo de Raadt
1998-08-17fix df -P on 0-size filesystemsTheo de Raadt
1997-11-20Fix units conversion wrt -h flag to be correct (and consistent withTodd C. Miller
1997-09-01i am bored enough to fix terminal space/tab ugliesTheo de Raadt
1997-08-19Add -P option, the POSIX 1003.2 output format (strictly specified for parsing).denny
1997-07-23tabifykstailey
1997-06-16Better support for unmounted filesystems (i.e. df /dev/rsd0a):denny
1997-06-01From denny@c200234-a.frmt1.sfba.home.com, check superblock magic number.Jason Downs
1997-04-14make -h columns more compactkstailey
1997-04-14switch from <blank> to "B" for byte suffix; columns look too ugly otherwisekstailey
1997-04-14fix Avail column in -h mode (again)kstailey