summaryrefslogtreecommitdiff
path: root/src/du.c
AgeCommit message (Collapse)Author
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
2003-01-31ditto for invalid optionsJim Meyering
2003-01-31(main): Upon processing a bad --exclude-from or --max-depthJim Meyering
option argument, don't exit right away, in case there are others. Rather record the failure and exit after processing other options.
2003-01-31Rewrite to perform directory traversal using nftw.Jim Meyering
Include "dirname.h", "ftw.h", and "quotearg.h". (AUTHORS): Add self. (opt_one_file_system): Move global into `main'. (path, xstat, exit_status): Remove declarations. (arg_length, suffix_length): New globals. (G_fail): New global, sort of like the old `exit_status'. (IS_FTW_DIR_TYPE): Define. (print_only_size): New function. (process_file): New function. (str_init, ensure_space, str_copyc, str_concatc): Remove functions. (str_trunc, pop_dir, count_entry): Likewise. (du_files): Rewrite to use nftw.
2003-01-04remove blank lineJim Meyering
2003-01-04(count_entry) [S_ISLNK]: Don't define.Jim Meyering
It's already defined in sys2.h.
2002-12-08(lstat) [! LSTAT_FOLLOWS_SLASHED_SYMLINK]:Jim Meyering
Define to rpl_lstat, so that even on systems like Solaris 5.8, du honors (per POSIX) the trailing slash on an argument referring to a symlink-to-directory.
2002-11-24More clean-up, not that / means /.Jim Meyering
2002-11-24(du_files): Don't strip any trailing slash.Jim Meyering
Rewrite so that `/' is no longer represented internally as the empty string. (count_entry): When appending a file name component, account for the fact that the current path may end in `/'. François Pinard reported that `du symlink-to-dir/' was not equivalent to `du symlink-to-dir/.'. Now it is.