summaryrefslogtreecommitdiff
path: root/bin/df/df.c
AgeCommit message (Expand)Author
2006-08-21-h and -[mgk] are mutually exclusive. Only use the last specified. [from zafer]christos
2006-03-17Handle malloc returning NULL.rumble
2006-01-13PR/23688: don't say we're printing in 1k-blocks if -h was also specified.elad
2005-06-26sprinkle a little const, and now everything compiles with WARNS=3christos
2004-12-31Use the same width (9) for both the Used and Avail columns.augustss
2004-07-17Drop LSBs when denominator is big.enami
2004-07-07Remove now unnecesary/incorrect cast.enami
2004-07-07- Remove unnecessary empty line.enami
2004-07-04Available block count may be negative - so make the calculation signed.martin
2004-04-21Replace the statfs() family of system calls with statvfs().christos
2004-03-26Combine two printf()s back to one. There was a reason to split in myenami
2004-03-26Prevent sign extension for positive value, and f_bavail if it is consideredenami
2004-03-26Fix an output of df -h when the value is negative; we need to provideenami
2004-03-26No need to reference through a pointer; just refer the array ofenami
2004-03-26Don't put space before close paren.enami
2004-03-07Use signed 64bit integer type instead of unsigned long longenami
2004-03-02Backout recent undocumented change to keep an output same as before.enami
2004-03-02fix compilation on LP64 systems.christos
2004-03-02cast to unsigned long long before computing to avoid overflowitojun
2004-03-02use unsigned long long to print block count.itojun
2004-01-05Homogenize usage messages: make the 'usage' word all lowercase, as this seemsjmmv
2003-12-07Some file systems, like FAT, have no inodes in the ffs sense and don'tperry
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2003-07-12Bump ifree/iused field width.simonb
2003-04-18change -G arg to -g.grant
2003-04-16add -G argument for output in gigabytes.grant
2003-04-16sync usage args with reality.grant
2002-09-26human-readable output via -h flag. output matches Linux and other BSDs.provos
2002-08-02Following FreeBSD's example, remove the old pre-statfs(2) code forsoren
2001-10-11if -a is not given, we need to walk the filesystem list to check thechristos
2001-10-11KNF.enami
2001-02-20use getprogname()cgd
2001-02-01Adjust output column in printf().tsutsui
2001-01-07eliminate nested externchristos
2001-01-04use more standard %ll_ in favour of %q_lukem
2000-12-30Add -m option, similar to -k, but display output in 1024*1024 byte units.hubertf
2000-10-15Support the 1003.2-92 -P flag for a `portable output format'; based onkleink
2000-06-26Add -a flag now that we have support for MNT_IGNOREchristos
1999-09-24Fix overflow in df on big partitions' raw device.hubertf
1999-07-27Fix PR3474: df -t/df -l confused by stacked local mounts.sommerfeld
1998-10-08Cast args to strpct() u_long, as in the prototype, not ulong.wsanchez
1998-07-28Delint.mycroft
1998-07-28Delint.mycroft
1998-07-27Use mkdtemp(3).mycroft
1998-07-04minor KNF.mrg
1998-04-08Fix PR#3590 - remove floating point calculation from df to avoid faultingfair
1998-03-01Merge with Lite2 + local changesfvdl
1997-07-20- Use __COPYRIGHT() and __RCSID().thorpej
1996-12-11Make df(1) more liberal (and intelligent) about what it acceptsthorpej
1995-11-28merge in changes from 1.1 release branchjtc