summaryrefslogtreecommitdiff
path: root/src/du.c
AgeCommit message (Collapse)Author
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.
2003-03-05(process_file): Sizes must all be of type uintmax_t.Jim Meyering
Otherwise, for files or totals that are too big, numbers would be truncated. Patch mostly by Michael Stone.
2003-03-04(MAX_N_DESCRIPTORS): Use 3 * UTILS_OPEN_MAX / 4.Jim Meyering
2003-02-21New option: --apparent-size.Jim Meyering
(enum) [APPARENT_SIZE_OPTION]: New member. (long_options): Add it. (usage): Describe it. (main): Handle it. ['b']: Set apparent_size.
2003-02-21(apparent_size): New global.Jim Meyering
(print_only_size): Reflect the fact that we're printing byte counts, not ST_NBLOCKSIZE-byte-block counts. (print_size): Call print_only_size rather than duplicating its code. (process_file): Accumulate byte counts, rather than block counts.
2003-02-21(process_file): Always reset size_to_propagate_to_parent forJim Meyering
--separate-dirs (-S).
2003-02-20(process_file): Reorganize the code to use onlyJim Meyering
one `sum' array, and change how -S works back to the way it was before 2003-01-31. Patch by Bruno Haible.
2003-02-20(process_file): Set info->skip before any possible return.Jim Meyering
Report correct usage for directories, not 0. (process_file): Return for `file_type == FTW_DPRE' _before_ recording the dev/ino of a directory.
2003-02-19Include "mmap-stack.h".Jim Meyering
(du_files): Add prototype with ATTRIBUTE_NORETURN. Exit from this function, not from... (main): ...here. Instead, if possible, invoke du_files through a macro that runs it with a large, mmap'd stack.
2003-02-06(process_file): Don't return early for excluded filesJim Meyering
or for files whose dev/inode we've already seen.
2003-02-01Don't put decl after non-decl.Jim Meyering
2003-02-01(MAX_N_DESCRIPTORS): Define.Jim Meyering