summaryrefslogtreecommitdiff
path: root/src/du.c
AgeCommit message (Collapse)Author
2004-09-21(main): Remove unused "case 0".Paul Eggert
(long_options): Standardize on NULL vs 0.
2004-08-02(fts_debug, opt_all, apparent_size, opt_count_all,Paul Eggert
print_grand_total, opt_separate_dirs, hash_ins, process_file, main): Use bool for booleans. (max_depth): Now size_t, not int, to avoid an arbitrary limit of INT_MAX on depth. (G_fail): Remove: no longer needed, now that the relevant functions return bool. (process_file): Use return value to signal success rather than setting a global. Remove first_call static var; not needed, since we can look at n_alloc. Use size_t for depths. Remove FIXME about size_t casts, as it's now fixed. Use xnrealloc rather than the obsolescent XREALLOC. Don't bother to check whether reallocation is needed unless level > prev_level. (du_files): Invert sense of result, for consistency with other coreutils code. All callers changed. (main): Allow --max-depth values up to SIZE_MAX.
2004-06-30(usage, main): Output "file system" rather than "filesystem".Jim Meyering
2004-06-21(main): Standardize on the diagnostics given when someone givesJim Meyering
too few operands ("missing operand after `xxx'") or too many operands ("extra operand `xxx'"). Include "quote.h" and/or "error.h" if it wasn't already being included.
2004-04-27(opt_nul_terminate_output): Declare `static'.Jim Meyering
2004-04-27(G_fail): Declare `static'.Jim Meyering
2004-03-28Minor optimization:Jim Meyering
(process_file): Don't record dev/inode for directories. Under some circumstances, without -c, du would mistakenly count the space of hard-linked files, not just the first one it encountered. Reported by Anthony Thyssen. (du_files): Don't ever clear the set of `seen' dev/inodes.
2004-03-27(print_grand_total): Rename global from `print_totals'.Jim Meyering
2004-03-27(main): Rearrange filtering loop to be a tiny bit more efficient.Jim Meyering
2004-03-25(main): Remove now-unused declaration of `i'.Jim Meyering
2004-03-25(main): Filter out file names of length zero beforeJim Meyering
invoking fts, so that they don't cause fatal errors.
2004-03-24(EXPECTED_BYTES_PER_FILE_NAME, DEFAULT_PROJECTED_N_FILES):Jim Meyering
Remove: not used. (usage): Say "NUL-terminated", not "NUL-separated". (main): Check for I/O error when istream is closed. Allow --files0-from=F even if F is empty; this specifies no files. (du_files): Now that we allow the list of files to be empty, handle that case.
2004-03-23(main): Free the hash table, too.Jim Meyering
2004-03-22(du_files): Return bool, rather than int.Jim Meyering
(main): Call readtokens0_free.
2004-03-22Include "readtokens0.h" rather than "readtokens.h".Jim Meyering
(main): Use readtoken0 functions rather than readtokens. Don't use errno when diagnosing readtokens0 failure.
2004-03-21(main): whoops. don't use errno for this diagnostic:Jim Meyering
_("no files specified in %s"),
2004-03-21du accepts a new option --from0-file=FILE, where FILE containsJim Meyering
a list of NUL-separated file names. Include "readtokens.h". (usage): Describe the new option, and adjust the `Usage': with this option, no FILE may be specified on the command line. (main): Handle the new option.
2004-02-22(usage): Separate -H and --si. Say that the meaningJim Meyering
of -H will soon change to that of --dereference-args (-D).
2004-01-21(usage): Use EXIT_SUCCESS, not 0, for clarity.Jim Meyering
2004-01-04(usage): Mention that, with its current meaning, -H is deprecated.Jim Meyering
2003-12-20Accept new option (-0, --null) that makes it so eachJim Meyering
output line is NUL-terminated rather than newline-terminated.
2003-12-19(FTS_CROSS_CHECK, DEBUG_OPT): Define.Jim Meyering
(main): Make fts use FTS_TIGHT_CYCLE_CHECK. (main) [DU_DEBUG]: Accept -d option.
2003-10-25(entry_hash): Adjust to reflectJim Meyering
type changes (unsigned int -> size_t) in hash.c.
2003-10-18Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS changeJim Meyering
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-10-17(main): Simply assign to bit_flags.Jim Meyering
Don't bother with bit arithmetic.
2003-10-17Include "xfts.h".Jim Meyering
(du_files): Use xfts_open, rather than fts_open.
2003-10-17tweak commentJim Meyering
2003-10-09tweak commentsJim Meyering
2003-10-05s/nftw/fts/g in a commentJim Meyering
2003-10-05(du_files): Mark diagnostic for translation.Jim Meyering
2003-10-04(du_files): Ignore any failure of fts_close.Jim Meyering
2003-10-04(du_files): Give better diagnostics for failed fts_open.Jim Meyering
2003-10-04(MAX_N_DESCRIPTORS): Remove now-unused definition.Jim Meyering
2003-10-04(enum) [HUMAN_SI_OPTION]: New member.Jim Meyering
[long_options]: Use HUMAN_SI_OPTION, not 'H'. (main): Warn that the meaning of -H will soon change.
2003-10-03Accept --no-dereference (-P).Jim Meyering
2003-10-02Include "fts_.h", not ftw.h.Jim Meyering
(opt_dereference_arguments, arg_length, suffix_length): Remove globals. (IS_FTW_DIR_TYPE): Remove definition. (IS_DIR_TYPE): Define. (is_symlink_to_dir): Remove now-unnecessary function. (process_file, du_files): Rewrite to use fts.
2003-09-19`du -D symlink-to-dir' would mistakenly omit the slash inJim Meyering
lines like this: 24 symlink-to-dir/subdir (process_file): Fix offset calculation. Reported by Jeff Sheinberg as Debian bug #211591; http://bugs.debian.org/205251
2003-09-19(process_file): Remove useless disjunct.Jim Meyering
2003-09-18(WRITTEN_BY): Rename from AUTHORS.Jim Meyering
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable.
2003-09-18revert previous changeJim Meyering
2003-09-18Update AUTHORS definition to be a comma-separated list of strings and/or updateJim Meyering
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-09-03(AUTHORS): Remove Larry McVoy's name, since the relativelyJim Meyering
small amount of code from him was first moved to lib/human.c, and was subsequently rewritten entirely.
2003-06-17(main): Call initialize_main.Jim Meyering
2003-05-14(usage): Don't use `,' as the thousands separatorJim Meyering
in e.g. 1,000,000 and 1,048,576. Instead, do this: `SIZE may be ..., MB 1000*1000, M 1024*1024 and so on...'
2003-05-10Handle argc < optind.Jim Meyering
2003-04-11Remove SPC in SPC-TAB sequence.Jim Meyering
2003-04-11Remove anachronistic casts of xmalloc,Jim Meyering
xrealloc, and xcalloc return values and of xrealloc's first argument.
2003-03-08(process_file): If a file's size is not being countedJim Meyering
e.g., because it's a hard link to a file we've already counted, then don't print a line for it.
2003-03-08`du -S' didn't workJim Meyering
Revert most of the `reorganization' change of 2003-02-20, and make the two-array approach work.
2003-03-07Remove everything associated with mmap-stack.c.Jim Meyering
This reverts the change of 2003-02-19.