The NetBSD Project

CVS log for src/usr.bin/du/du.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / du

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Sun Mar 11 11:23:20 2012 UTC (11 years ago) by shattered
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-10-base, netbsd-10, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver, HEAD
Changes since 1.35: +24 -12 lines
Diff to previous 1.35 (colored)

PR/22405 -- extend du(1) to report inode usage.  Patch provided by
Jonathan Perkin.

OK by wiz@

Revision 1.35 / (download) - annotate - [select for diffs], Thu Sep 1 13:37:33 2011 UTC (11 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.34: +10 -10 lines
Diff to previous 1.34 (colored)

static + __dead

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jul 8 20:52:22 2010 UTC (12 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored)

Add #include <sys/param.h>

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jul 30 22:03:40 2008 UTC (14 years, 7 months ago) by dsl
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.32: +8 -15 lines
Diff to previous 1.32 (colored)

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.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jul 21 14:19:22 2008 UTC (14 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Sep 24 07:19:57 2006 UTC (16 years, 5 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: wrstuden-revivesa
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Fix typo in usage.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Sep 23 23:20:20 2006 UTC (16 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.29: +29 -10 lines
Diff to previous 1.29 (colored)

PR/34220: Tyler Spivey: feature request: --max-depth for du

Thanks to Matt Fleming for porting the -d feature from FreeBSD!

Revision 1.29 / (download) - annotate - [select for diffs], Wed May 10 23:35:03 2006 UTC (16 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Add -n to the usage message.
Noted by Maxim Konovalov <maxim@macomnet.ru>.

Revision 1.28 / (download) - annotate - [select for diffs], Wed May 10 06:24:03 2006 UTC (16 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Fix a bunch of cast lvalues.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Apr 30 19:24:50 2006 UTC (16 years, 10 months ago) by liamjfoy
Branch: MAIN
Changes since 1.26: +6 -7 lines
Diff to previous 1.26 (colored)

Remove Pflag variable. its unused.

ok christos@

Revision 1.26 / (download) - annotate - [select for diffs], Thu Feb 17 17:40:59 2005 UTC (18 years, 1 month ago) by xtraeme
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.25: +9 -12 lines
Diff to previous 1.25 (colored)

Kill __P(), use ANSI function declarations, constify; WARNS=3.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jun 13 11:30:10 2004 UTC (18 years, 9 months ago) by dbj
Branch: MAIN
Changes since 1.24: +77 -32 lines
Diff to previous 1.24 (colored)

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

Revision 1.24 / (download) - annotate - [select for diffs], Mon May 17 01:56:19 2004 UTC (18 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.23: +23 -6 lines
Diff to previous 1.23 (colored)

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.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Aug 7 11:13:34 2003 UTC (19 years, 7 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.22: +3 -7 lines
Diff to previous 1.22 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.22 / (download) - annotate - [select for diffs], Fri May 30 00:17:26 2003 UTC (19 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Pass a NULL to getbsize() for any arguments that aren't needed, and
remove the otherwise unused variables.

Revision 1.21 / (download) - annotate - [select for diffs], Sat May 10 02:09:39 2003 UTC (19 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.20: +8 -9 lines
Diff to previous 1.20 (colored)

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).

Revision 1.20 / (download) - annotate - [select for diffs], Fri Apr 18 13:16:50 2003 UTC (19 years, 11 months ago) by grant
Branch: MAIN
Changes since 1.19: +13 -9 lines
Diff to previous 1.19 (colored)

add -g for output in gigabytes.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Sep 28 21:14:03 2002 UTC (20 years, 5 months ago) by provos
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

forgot to remove local define of blocksize;  noticed by Benedikt Meurer
change totalblocks to int64 to prevent integer overflow.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Sep 27 03:33:33 2002 UTC (20 years, 5 months ago) by provos
Branch: MAIN
Changes since 1.17: +34 -13 lines
Diff to previous 1.17 (colored)

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.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jan 4 23:05:54 2001 UTC (22 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

use %ll_ instead of the less standard %q_

Revision 1.16 / (download) - annotate - [select for diffs], Sat Dec 30 16:00:33 2000 UTC (22 years, 2 months ago) by hubertf
Branch: MAIN
Changes since 1.15: +12 -8 lines
Diff to previous 1.15 (colored)

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.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Apr 2 12:46:04 2000 UTC (22 years, 11 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Include -r flag in usage message.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Feb 15 17:08:18 1998 UTC (25 years, 1 month ago) by kleink
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-4
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored)

Add an `-r' flag (which is a no-op) to meet XPG4.2 requirements.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 19 14:06:18 1997 UTC (25 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

fix compile warnings on the alpha.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 18 13:21:51 1997 UTC (25 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.11: +12 -11 lines
Diff to previous 1.11 (colored)

WARNSify, fix .Nm usage, getopt returns -1 not EOF

Revision 1.11 / (download) - annotate - [select for diffs], Fri Oct 18 07:20:35 1996 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.10: +18 -7 lines
Diff to previous 1.10 (colored)

Implement a -c (Grand Total) option, a'la GNU du(1).
From Luke Mewburn <lukem@telstra.com.au>, PR #2805.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 28 06:19:56 1995 UTC (27 years, 5 months ago) by perry
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.9: +6 -5 lines
Diff to previous 1.9 (colored)

Sync with 4.4BSD-Lite2

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 28 17:50:18 1995 UTC (27 years, 11 months ago) by glass
Branch: MAIN
Changes since 1.8: +78 -41 lines
Diff to previous 1.8 (colored)

Merged with 4.4lite

Revision 1.8 / (download) - annotate - [select for diffs], Wed Mar 30 03:08:45 1994 UTC (28 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

fix usage, and printing of size/name for files

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 27 20:32:37 1994 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.6: +6 -36 lines
Diff to previous 1.6 (colored)

get rid of local err(); convert to err() and warn() as appropriate

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 25 20:25:36 1994 UTC (29 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

new definition of getbsize

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 13 18:34:03 1993 UTC (29 years, 5 months ago) by jtc
Branch: MAIN
Changes since 1.4: +7 -6 lines
Diff to previous 1.4 (colored)

#include <unistd.h>, so getopt(), optarg, opterr, optind, and optopt
declarations can be removed from <stdlib.h>.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 6 17:10:02 1993 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +63 -26 lines
Diff to previous 1.3 (colored)

Incorporate new version using getbsize(), with -k flag added.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Aug 6 01:36:45 1993 UTC (29 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +8 -8 lines
Diff to previous 1.2 (colored)

because of fts library update

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 1 18:16:53 1993 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Add RCS identifiers.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (30 years ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>