Home | History | Annotate | Download | only in du
History log of /src/usr.bin/du/du.c
RevisionDateAuthorComments
 1.36  11-Mar-2012  shattered PR/22405 -- extend du(1) to report inode usage. Patch provided by
Jonathan Perkin.

OK by wiz@
 1.35  01-Sep-2011  joerg branches: 1.35.2;
static + __dead
 1.34  08-Jul-2010  rmind Add #include <sys/param.h>
 1.33  30-Jul-2008  dsl Fix 'total' output from 'du -sc'.
Simplify the change (adding -d<depth>) that broke it by noting that
-d0 is supposed to be the same as -s.
Calling fts_set(fts,p,FTS_SKIP) here is also pointless.
 1.32  21-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.31  24-Sep-2006  wiz branches: 1.31.18;
Fix typo in usage.
 1.30  23-Sep-2006  elad PR/34220: Tyler Spivey: feature request: --max-depth for du

Thanks to Matt Fleming for porting the -d feature from FreeBSD!
 1.29  10-May-2006  lukem Add -n to the usage message.
Noted by Maxim Konovalov <maxim@macomnet.ru>.
 1.28  10-May-2006  skrll Fix a bunch of cast lvalues.
 1.27  30-Apr-2006  liamjfoy Remove Pflag variable. its unused.

ok christos@
 1.26  17-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.25  13-Jun-2004  dbj Use open address hashtable with multiplicative double hash probing
and exponential hashtable growth for tracking previously seen inodes.
This replaces the O(n^2) behavior of linkchk() with an implementation
that should be O(n*logn)
This addresses NetBSD PR bin/25857
 1.24  17-May-2004  simonb Add a "-n" flag that will ignore files/directories with the "nodump"
flag set. Useful when used in conjunction with "dump -h" to size dumps.
 1.23  07-Aug-2003  agc branches: 1.23.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.22  30-May-2003  simonb Pass a NULL to getbsize() for any arguments that aren't needed, and
remove the otherwise unused variables.
 1.21  10-May-2003  simonb If no files are specified on the command line, put { ".", NULL } in
it's own little array instead of writing over argv. Fixes problems
where du shows up in ps as ". fts_open `%s'" (and shorter or longer
combinations of that depending in what argc was).
 1.20  18-Apr-2003  grant add -g for output in gigabytes.
 1.19  28-Sep-2002  provos forgot to remove local define of blocksize; noticed by Benedikt Meurer
change totalblocks to int64 to prevent integer overflow.
 1.18  27-Sep-2002  provos human-readable output via -h flag. match output from Linux and other BSDs.
Partly by Benedikt Meurer <bmeurer@fwdn.de>. approved by perry. closes
pr 14687 and 18402.
 1.17  04-Jan-2001  lukem branches: 1.17.2;
use %ll_ instead of the less standard %q_
 1.16  30-Dec-2000  hubertf Option similar to -k, only to use megabyte (1024**2) as display unit.

Patch contributed by Chris Pinnock <C.J.E.Pinnock@qmw.ac.uk> in PR 11848.
 1.15  02-Apr-2000  simonb Include -r flag in usage message.
 1.14  15-Feb-1998  kleink branches: 1.14.2;
Add an `-r' flag (which is a no-op) to meet XPG4.2 requirements.
 1.13  19-Oct-1997  mrg fix compile warnings on the alpha.
 1.12  18-Oct-1997  lukem WARNSify, fix .Nm usage, getopt returns -1 not EOF
 1.11  18-Oct-1996  thorpej Implement a -c (Grand Total) option, a'la GNU du(1).
From Luke Mewburn <lukem@telstra.com.au>, PR #2805.
 1.10  28-Sep-1995  perry Sync with 4.4BSD-Lite2
 1.9  28-Mar-1995  glass Merged with 4.4lite
 1.8  30-Mar-1994  cgd fix usage, and printing of size/name for files
 1.7  27-Jan-1994  cgd get rid of local err(); convert to err() and warn() as appropriate
 1.6  25-Jan-1994  cgd new definition of getbsize
 1.5  13-Oct-1993  jtc #include <unistd.h>, so getopt(), optarg, opterr, optind, and optopt
declarations can be removed from <stdlib.h>.
 1.4  06-Aug-1993  mycroft Incorporate new version using getbsize(), with -k flag added.
 1.3  06-Aug-1993  deraadt because of fts library update
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3  28-Sep-1995  perry imported from 44lite2
 1.1.1.2  28-Mar-1995  glass Import from 4.4
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.14.2.1  02-Apr-2000  he Pull up revision 1.15 (requested by simonb):
Include -r flag in usage message.
 1.17.2.1  19-Jun-2003  grant Apply patch (requested by simonb in ticket #1284):

If no files are specified on the command line, put { ".", NULL } in
it's own little array instead of writing over argv. Fixes problems
where du shows up in ps as ". fts_open `%s'" (and shorter or longer
combinations of that depending in what argc was).
 1.23.2.1  17-May-2004  tron Pull up revision 1.24 (requested by simonb in ticket #347):
Add a "-n" flag that will ignore files/directories with the "nodump"
flag set. Useful when used in conjunction with "dump -h" to size dumps.
--
 1.31.18.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.35.2.1  17-Apr-2012  yamt sync with head

RSS XML Feed