summaryrefslogtreecommitdiff
path: root/src/du.c
AgeCommit message (Collapse)Author
2006-05-20(main): Rename local, s/symlink_deref_bit/symlink_deref_bits/Jim Meyering
and arrange for -D to set fts' FTS_PHYSICAL bit as well as FTS_COMFOLLOW. Spotted by Justin Pryzby.
2006-05-19(main): Don't let -D, -L, or -P turn off the internalJim Meyering
FTS_TIGHT_CYCLE_CHECK directory traversal option. Reported by Justin Pryzby in http://bugs.debian.org/367691
2005-11-04(process_file): Don't overflow for files of size >= 2^31Jim Meyering
on systems with stat.st_blocks of a signed 32-bit type. This bug causes trouble on some AIX 5.1 systems. Report and trivial patch from Paul Townsend: <http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00033.html>
2005-10-15(usage): Document -m, once again.Jim Meyering
(main): Warn about use of deprecated long options: --kilobytes and --megabytes.
2005-09-16Include fprintftime.h.Jim Meyering
Don't include strftime.h or xanstrftime.h -- no longer needed. (show_date): Use new fprintftime function rather than xanstrftime. Correct comment: this function no longer handles a NULL format string.
2005-09-16Include stat-time.h, and use its functions instead of the obsoletePaul Eggert
TIMESPEC_NS macro.
2005-09-07(time_args): Use NULL in place of 0.Jim Meyering
2005-08-27Go ahead and leave the patch in (i.e., revertJim Meyering
today's change). It doesn't cause a problem after all, since --exclude-from=- is always handled before --files0-from=F.
2005-08-27Revert the du.c part of the change from 2005-07-02:Jim Meyering
That change (to reopen stdin on F for --files0-from=F) made it so --exclude-from=- and --files0-from=F would not work together.
2005-08-21(time_style): Add `const' attribute.Jim Meyering
(tot_dui): Remove unnecessary (and too-short) initializer list.
2005-08-02Include "xanstrftime.h".Jim Meyering
(show_date): Use xanstrftime instead of open-coding it.
2005-07-03(main): Reuse stdin rather than opening a new stream.Paul Eggert
This saves a file descriptor.
2005-06-30Add uses of ARGMATCH_VERIFY to ensure thatJim Meyering
corresponding option string and value arrays are consistent. Remove a harmless trailing `, 0' from a value list.
2005-06-30Add uses of ARGMATCH_VERIFY to ensure thatJim Meyering
corresponding option string and value arrays are consistent. Remove a harmless trailing `, 0' from a value list.
2005-06-29(show_date): Use X2REALLOC rather than x2realloc.Jim Meyering
2005-06-28(show_date): Use x2realloc on 1-byte base types, not x2nrealloc.Jim Meyering
2005-06-23Do not include hard-locale.h.Paul Eggert
(struct duinfo): Remove 'valid' member. All uses changed to use negative nsec instead. (DUIINFO_INI, DUINFO_SET, DUINFO_ADD): Remove. (duinfo_init, duinfo_set, duinfo_add): New functions, taking the role of the removed macros. (opt_time): Renamed from opt_last_time. All uses changed. (TIME_OPTION): Renamed from LAST_TIME_OPTION. All uses changed. (long_options, usage): Rename --last-time to --time. (locale_time_style): Remove. (time_style_args, time_style_types, usage): Remove support for --time-style=locale. (show_date): Now returns void, since nobody looked at the result. Assume FORMAT is not null. An empty FORMAT now outputs an empty time. Simplify nstrftime invocation. (main): Put in ls compatibility workarounds only for TIME_STYLE, not for --time-style. Omit unnecessary space in iso time style.
2005-06-23(time_format): Add `const' attribute.Jim Meyering
2005-06-23(show_date): Add a FIXME comment.Jim Meyering
2005-06-23(show_date): Rename local `time_format' so as not toJim Meyering
shadow the file-scoped global by that name.
2005-06-23(usage): Tweak formatting to maintain more or less constant indentation.Jim Meyering
2005-06-23Include hard-locale.h and strftime.h.Jim Meyering
(DUINFO_INI, DUINFO_SET, DUINFO_ADD): Enclose body in `do {...} while (0)', not just `{...}'. Adjust uses (add semicolons). Adjust formatting, indentation.
2005-06-232005-06-14 William Brendling <wbrendling@gmail.com>Jim Meyering
* src/du.c: Add --last-time and --time-style options.
2005-06-02Don't use "path" or "filename".Paul Eggert
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-14Update FSF postal mail address.Jim Meyering
2005-01-05(process_file): Evaluate exclusion rules againstJim Meyering
the entire file name, not just the last component.
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.