aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/du
Commit message (Collapse)AuthorAgeFilesLines
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
| | | | Notes: svn path=/head/; revision=131491
* typos.Poul-Henning Kamp2004-06-021-2/+2
| | | | | | | Pointed out by: ru Notes: svn path=/head/; revision=129988
* Give du(1) a -m option to report in megabytes.Poul-Henning Kamp2004-06-022-10/+9
| | | | | | | | Submitted by: Vasily Korytov <deskpot@msk.yell.ru> PR: 66976 Notes: svn path=/head/; revision=129986
* Use humanize_number(3) to format sizes into a human readable form.Pawel Jakub Dawidek2004-05-242-69/+11
| | | | Notes: svn path=/head/; revision=129678
* Mark du(1) as WARNS6 clean.Pawel Jakub Dawidek2004-05-241-0/+1
| | | | | | | Tested on: alpha, amd64, i386, ia64, sparc64 Notes: svn path=/head/; revision=129676
* More style fixes, per bde.Tim Kientzle2004-05-021-6/+4
| | | | Notes: svn path=/head/; revision=128834
* Style fixes, most suggested by bde.Tim Kientzle2004-05-011-24/+19
| | | | Notes: svn path=/head/; revision=128806
* Speed up hardlink detection by using a self-sizing hashTim Kientzle2004-04-301-32/+141
| | | | | | | | | | | | | | | | | table rather than the old linear list search. On my "hardlink detection torture test", this reduced user time from 4700 seconds down to 4.2 seconds and wallclock time from 1:24:48 down to 1:08. (Yes, that's over one THOUSAND times reduction in user time. ;-) In the worst case, the new code doubles peak memory usage, though it could actually reduce memory usage in many cases. MFC after: 1 week PR: misc/42167, bin/51151 Notes: svn path=/head/; revision=128772
* -{h,k} are mutually exclisive. So only pay attention to the last of theDavid E. O'Brien2003-03-301-2/+2
| | | | | | | two when both are given. Notes: svn path=/head/; revision=112855
* Back out rev 1.27; getbsize(3)'s original interface has been restored.Mike Barcroft2002-12-301-2/+1
| | | | | | | Approved by: markm Notes: svn path=/head/; revision=108453
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-2/+2
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* Change the type of an unused variable to appease a warning.Mark Murray2002-10-231-1/+2
| | | | Notes: svn path=/head/; revision=105814
* ANSIify function definitions to avoid a warning.David Malone2002-07-281-15/+8
| | | | Notes: svn path=/head/; revision=100822
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-3/+2
| | | | Notes: svn path=/head/; revision=99112
* More consistancy. file system > filesystemTom Rhodes2002-05-161-1/+1
| | | | Notes: svn path=/head/; revision=96704
* Use `The .Nm utility'Philippe Charnier2002-04-191-2/+3
| | | | Notes: svn path=/head/; revision=95083
* remove __PWarner Losh2002-03-221-7/+7
| | | | Notes: svn path=/head/; revision=92920
* Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray2002-02-081-1/+0
| | | | | | | help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
* GRR. This was not WARNS=2 clean. You cannot printf a 'long' withPeter Wemm2002-02-081-1/+1
| | | | | | | | | | | '%qd'. usr.bin/du/du.c:288: warning: long long int format, long int arg (arg 2) Pointy hat to: markm Notes: svn path=/head/; revision=90389
* WARNS=2 fixupMark Murray2001-12-022-2/+3
| | | | Notes: svn path=/head/; revision=87216
* Use the correct blocksize when invoked with both -h and -kRobert Drehmel2001-09-041-1/+2
| | | | | | | | | | options. PR: 30275 Reviewed by: jake Notes: svn path=/head/; revision=82947
* mdoc(7) police: join split punctuation to macro calls.Ruslan Ermilov2001-08-101-2/+1
| | | | Notes: svn path=/head/; revision=81462
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79755
* Add '-I mask' cmdline flag to ignore/skip files and subdirectoriesPeter Pentchev2001-06-132-2/+70
| | | | | | | | | | | matching a specified shell-glob mask. Reviewed by: no serious objections on -arch and -audit over the last few months MFC after: 1 month Notes: svn path=/head/; revision=78158
* Make it clear that -P is the default.Ruslan Ermilov2001-05-251-4/+4
| | | | | | | PR: docs/27629 Notes: svn path=/head/; revision=77160
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68963
* Backed out part of the revision 1.10.Ruslan Ermilov2000-10-161-1/+2
| | | | | | | BLOCKSIZE could specify arbitrary block sizes, not exactly 1K blocks. Notes: svn path=/head/; revision=67202
* Fixed LDADD. Using ${LIBM} instead of -lm gave the wrong libm in mostBruce Evans2000-03-271-2/+2
| | | | | | | | | | cases and broke the world in some cases. Fixed style bugs for DPADD and LDADD (don't use += for variables defined only once). Notes: svn path=/head/; revision=58670
* Use warnx(), -Wall cleaning and remove unused #includePhilippe Charnier2000-03-262-12/+15
| | | | | | | Better use of .Nm and .Ar Notes: svn path=/head/; revision=58601
* fix bug with du -hdMichael Haro2000-03-241-1/+1
| | | | | | | Submitted by: dcs Notes: svn path=/head/; revision=58522
* Remove more single-space hard sentence breaks.Sheldon Hearn2000-03-021-2/+4
| | | | Notes: svn path=/head/; revision=57695
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
* cleanup using suggestions from bdeMichael Haro2000-01-271-4/+4
| | | | Notes: svn path=/head/; revision=56690
* Add human-readable output flag, -hMichael Haro2000-01-253-16/+128
| | | | | | | Reviewed by: obrien Notes: svn path=/head/; revision=56597
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).Archie Cobbs1998-12-062-2/+3
| | | | Notes: svn path=/head/; revision=41568
* Add missing '\n'; remove redundant 'h' case in getopt switch.Robert Nordier1998-11-051-2/+1
| | | | Notes: svn path=/head/; revision=40926
* Add -c option to usage string.Robert Nordier1998-11-051-1/+1
| | | | | | | | PR: 8568 Submitted by: Ryan Younce <ryany@pobox.com> Notes: svn path=/head/; revision=40925
* Print correct total for -c option (previously, the total for the lastDag-Erling Smørgrav1998-09-111-1/+1
| | | | | | | | | | directory scanned was printed instead of the real total) PR: bin/7896 Submitted by: Zach Heilig <zach@gaffaneys.com> Notes: svn path=/head/; revision=39076
* Don't try to dereference a pointer to freed memory.Dag-Erling Smørgrav1998-07-291-7/+4
| | | | | | | PR: bin/7393 Notes: svn path=/head/; revision=37952
* .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENTPoul-Henning Kamp1998-05-131-2/+2
| | | | | | | | | PR: 6599 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net> Notes: svn path=/head/; revision=36014
* * add a -c option which displays the grand total of all filesJordan K. Hubbard1997-12-292-123/+144
| | | | | | | | | | | | | | | | | | | | | | counted. * re-word parts of the man page which I felt were badly worded or ambiguous. * change the behaviour of argument processing so that when more than one of the -P, -H and -L options are specified it will print an error message, rather than choosing the last option specified, this behaviour is more logical and consistent with other utilities. * change the behaviour of argument processing so that negative arguments to the -d option are not allowed. PR: 5388 Submitted by: Niall Smart <rotel@indigo.ie> Notes: svn path=/head/; revision=32097
* du(1) always exit with value zero.Wolfram Schneider1997-08-291-1/+1
| | | | | | | | | | $ du /foobar du: /foobar: No such file or directory $ echo $? 0 Notes: svn path=/head/; revision=28891
* Document -k flag.Philippe Charnier1997-06-302-8/+15
| | | | Notes: svn path=/head/; revision=27099
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Merge from Lite2Peter Wemm1997-03-111-1/+2
| | | | Notes: svn path=/head/; revision=23693
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=23012
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Add a 'depth (-d#)' flag to duMarc G. Fournier1996-10-232-11/+30
| | | | | | | | | patched (context diff), compiled (w/ -Wall) and tested Submitted by: John-Mark Gurney <jmg@nike.efn.org> Notes: svn path=/head/; revision=19120
* [HISTORY] command appeared in Version 1 AT&T UNIXWolfram Schneider1996-08-291-1/+2
| | | | | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41 Notes: svn path=/head/; revision=17891