summaryrefslogtreecommitdiff
path: root/src/du.c
AgeCommit message (Collapse)Author
2002-11-08(human_output_opts): New var.Jim Meyering
(output_block_size): Now uintmax_t, not int, to handle larger block sizes. All uses changed.
2002-10-13(usage): Tweak description of --dereference-args/-D.Jim Meyering
2002-10-13(count_entry): Also save cwd when dereferencing (via --dereference-args, -D)Jim Meyering
a command-line argument. Reported by Michal Svec. Based on a patch by Andreas Schwab.
2002-10-03Mark translatable string with `N_ (...)'.Jim Meyering
2002-09-22Remove all inclusions of inttypes.h,Jim Meyering
since it's already included from sys2.h via system.h.
2002-08-31Change `exit (0)' to `exit (EXIT_SUCCESS)',Jim Meyering
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-30Change `error (1, ...' to `error (EXIT_FAILURE, ...'.Jim Meyering
2002-07-10update copyrightJim Meyering
2002-07-10(usage) [--exclude]: Use PATTERN rather than PAT.Jim Meyering
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering
2001-12-21(BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'.Jim Meyering
(long_options, usage, main): Add -B. (usage): Deprecate --kilobytes, -m, --megabytes. Document size suffixes.
2001-12-02Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-23(usage): Note that ``Mandatory arguments to long options are mandatoryJim Meyering
for short options too.''
2001-11-23(usage): Split --help output into smaller pieces.Jim Meyering
Use fputs, not printf.
2001-11-23Use opaque type, Hash_table, not `struct hash_table'.Jim Meyering
2001-10-06Convert du.c to use the functions in lib/hash.c, not private,Jim Meyering
slightly-modified copies of those that used to be in cp-hash.c. (struct entry) [coll_link]: Remove member. (struct htab): Remove. (hash_reset, hash_init, hash_insert2, hash_insert): Remove functions. Include hash.h and same.h. (htab): Change type of global to `struct hash'; (entry_hash, entry_compare, hash_ins): New functions. (count_entry): Use hash_ins instead of hash_insert.
2001-08-31(count_entry): Remove st_size argument.Jim Meyering
2001-08-31copyrightJim Meyering
2001-08-31(count_entry, main): Reflect changes to the exclude functions.Jim Meyering
2000-11-18(count_entry): Don't omit the size of a directory entryJim Meyering
merely because we couldn't `chdir' into it. That would give subtly different results in some cases. Reported by Mattias Wadenstein via Michael Stone.
2000-08-20(print_totals): Rename global from opt_combined_arguments.Jim Meyering
2000-08-15(count_entry): Remember the current directory also for `.'Jim Meyering
and `..'. Reported by Stephen Smoogen, based on a patch from H.J. Lu.
2000-07-30Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call.
2000-06-27(count_entry): Don't set errno beforeJim Meyering
invoking savedir, and assume that errno is nonzero if savedir fails.
2000-06-16(print_size): Round disk usage up.Jim Meyering
2000-05-13Arrange to call close_stdout only upon exit.Jim Meyering
2000-04-27(pop_dir): Remove through_symlink arg; use null cwdJim Meyering
for that purpose instead. (count_entry): Also save the directory if we're saving more than one level. Fix file descriptor and memory leak when chdir fails.
2000-02-15(pop_dir): New function.Jim Meyering
(count_entry): Factor out common code (pop_dir), and call the new function instead. Move declaration of global, `stat_buf' into this function. (du_files): Don't stat `.' or call save_cwd, since count_entry never returns with a changed working directory.
2000-01-12(count_entry): Adjust to new calling convention for excluded_filename.Jim Meyering
(main): Likewise, for add_exclude_file.
1999-12-09(BLOCK_SIZE_OPTION, EXCLUDE_OPTION, MAX_DEPTH_OPTION):Jim Meyering
Define these and use them instead of `CHAR_MAX + n'.
1999-08-08(count_entry): Remove cast of savedir arg.Jim Meyering
1999-04-01Remove prototypes and tsort function definitions.Jim Meyering
1999-03-31Don't include closeout.h or version-etc.h explicitly. Now, they're included ↵Jim Meyering
via sys2.h.
1999-03-26No longer include long-options.h.Jim Meyering
Include version-etc.h instead. (PROGRAM_NAME, AUTHORS): Define. [long_options]: Add entries for --help and --version. Remove parse_long_options call. (main) [getopt switch]: Add a case for each of --help and --version.
1999-03-04Include long-options.hJim Meyering
[long_options]: Remove the "help" and "version" entries. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-16update copyright datesJim Meyering
1999-01-16(usage): Don't make it static so that it can be called from libfu.a by ↵Jim Meyering
xargmatch.
1998-09-19update bug-reporting addressJim Meyering
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