summaryrefslogtreecommitdiff
path: root/src/du.c
AgeCommit message (Collapse)Author
1998-08-30(long_options): Use corresponding short-option characterJim Meyering
in place of `1', and `NULL' in place of opt_* pointer in initialization.
1998-08-30Don't assume ASCII.Jim Meyering
1998-06-29revert back to using lower case _unlocked wrapper namesJim Meyering
1998-06-29(human_readable_base, output_units): Remove;Jim Meyering
replace with new variable output_block_size. All uses changed. (long_options, usage, main): Add --block-size. (main, decode_switches): Use new human_block_size function to initialize output block size consistently with other programs. From Paul Eggert.
1998-06-29Change all uses of unlocked-wrapped functions to their upper case wrapper names.Jim Meyering
1998-04-14Use STREQ in string equality tests, not strcmp.Jim Meyering
1998-01-04(main, usage): Check for write error to stdout before exiting.Jim Meyering
Include "closeout.h".
1997-12-29(usage): Replace TABs with spaces in --help message.Jim Meyering
1997-12-25(S_ISLNK): Define this instead of S_ISDIR.Jim Meyering
1997-12-21Include exclude.h.Jim Meyering
(exclude): New static var. (long_options, usage, main): Add --exclude and --exclude-from or -X. (count_entry): Skip excluded entries.
1997-12-21Include exclude.h.Jim Meyering
(exclude): New static var. (long_options, usage, main): Add --exclude and --exclude-from or -X. (count_entry): Skip excluded entries.
1997-12-16s/__P/PARAMS/gJim Meyering
1997-12-06Separate struct dcl and typedef.Jim Meyering
(String *): Rename from parameter-shadowed `string'. (stringstruct): Remove typedef.
1997-11-30remove trailing blankJim Meyering
1997-11-30(<inttypes.h>): Include if HAVE_INTTYPES_H.Jim Meyering
("human.h"): Include. (LONGEST_HUMAN_READABLE, enum Output_units): Remove. (count_entry): Now returns uintmax_t, not long. (human_readable_base): Renamed from opt_human_readable; value is now zero or positive integer, not just zero or nonzero. (output_units): Now an integer giving output size. (tot_size): Now uintmax_t, not long. (long_options, usage): Add --si or -H. (main): Adjust to renamed option variables. Use -H if BLOCKSIZE is SI. Add -H. (human_readable): Remove; rewritten and now in lib/human.c. (print_size): Rewrite in terms of human_readable. Accept extra arg to be printed after size; all callers changed.
1997-10-25Remove old-style xmalloc and xrealloc decls.Jim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-10-04Remove old-style savedir dcl.Jim Meyering
Include savedir.h for prototype.
1997-05-25Remove global variable opt_human_readable.Jim Meyering
(enum Output_units): Rename from output_size. Rename size_* to Unit_*. Add Unit_variable to correspond to --human-readable. (convert_blocks): Remove now-unused definition. (human_readable): Rename paramater n_bytes to n_blocks. Adjust conversions to reflect fact that input is now number of 512-byte blocks, not bytes. (print_size): New function. (du_files): Use print_size instead of open coding it. (count_entry): Always count in units of 512-byte blocks to delay. This lets du accumulate totals corresponding to a terabyte before overflowing 32-bit long int. Use print_size instead of open coding it.
1997-05-25(convert_blocks): Remove now-unnecessary #undef.Jim Meyering
(du_files): Pass output_size unchanged to convert_blocks. No need to test output_size for size_bytes, convert_blocks handles that correctly. (count_entry): Likewise.
1997-05-25(main): Implement new --max-depth=N option.Jim Meyering
Based on the idea and a patch from Torbjorn Lindgren. (du_files): Likewise. (count_entry): Likewise. [AIX]: Remove unused #pragma alloca.
1997-03-27(main): Implement new --max-depth=N option.Jim Meyering
Based on the idea and a patch from Torbjorn Lindgren. (du_files): Likewise. (count_entry): Likewise.
1997-02-09update copyrights for 1997Jim Meyering
1997-02-02(hash_insert2): Rename local HTAB to HT to avoid shadowing global.Jim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1997-01-26(count_entry): Fix blatant bug (typo?) that madeJim Meyering
--megabytes report numbers in units of kilobytes. Reported by Galen Hazelwood.
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-05(main): update --version output to conform to coding standardJim Meyering
1996-10-04(main): update --version output to conform to coding standardJim Meyering
1996-08-31(usage): remove spurious trailing \n in puts.Jim Meyering
1996-08-29(usage): Tell where to report bugs.Jim Meyering
1996-07-14(usage): Sort option descriptions in dictionary order.Jim Meyering
1996-04-24(usage): The long-named arg is --human-readable, not --human.Jim Meyering
1996-04-24update Copyright years for 1996Jim Meyering
1996-03-24Update FSF's address.Jim Meyering
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-12(main): Initialize for internationalized message support: call setlocale,Jim Meyering
bindtextdomain, and textdomain.
1996-02-01Remove comma after last item in enum.Jim Meyering
(human_readable): Fix off-by-one error that converted 1024*1024 to 1024K rather than 1G. Describe the function.
1996-01-20Tweak usage.Jim Meyering
1996-01-20(main): New options --human-readable (-h) and --megabytes (-m).Jim Meyering
(human_readable): New function. From Larry McVoy (lm@sgi.com).
1995-11-29Mark all translatable strings using po-mode.el.Jim Meyering
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-11-15Break long lines.Jim Meyering
1995-11-10Remove bogus __P junk on xstat dcl.Jim Meyering
1995-11-09Protect prototypes with __P.Jim Meyering
1995-11-09Protoize.Jim Meyering
1995-10-01Declare stat, xstat.Jim Meyering