summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-04-08New dd conv= symbols nocreat, excl, fdatasync, fsync,Jim Meyering
and new dd options iflag= and oflag=. (usage): Document. (fdatasync) [!HAVE_FDATASYNC]: New macro. (C_NOCREAT, C_EXCL, C_FDATASYNC, C_FSYNC): New macros. (input_flags, output_flags): New vars. (LONGEST_SYMBOL): New macro. (struct symbol_value): Renamed from struct conversion. Members symbol and value renamed from convname and conversion. The symbol value is now an array instead of a pointer; this saves a bit of space and time in practice. All uses changed. (conversions): Add nocreat, excl, fdatasync, fsync. Now const. (flags): New constant array. (iflag_error_msgid, oflag_error_msgid): New constants. (parse_symbols): Renamed from parse_conversion and generalized to handle either conversion or flag symbols. (scanargs): Adjust uses of parse_symbols accodingly. Add support for iflag= and oflag=. Reject attempts to use both excl and nocreat. (set_fd_flags): New function. (dd_copy): Just return X rather than calling quit (X), since our caller invokes quit with the returned value. Add support for fdatasync and fsync. (main): Add support for iflags=, oflags=, and new conv= symbols.
2004-04-08(O_DIRECT, O_DSYNC, O_NDELAY, O_NOFOLLOW, O_RSYNC, O_SYNC):Jim Meyering
Define to 0 if not already defined.
2004-04-07Add support for IUTF8 input flag.Jim Meyering
2004-04-06(makedev) [mkdev && !makedev]: Define makedev to mkdev.Jim Meyering
For Interix.
2004-04-04A specified format is no longer automatically newline terminated.Jim Meyering
If you want a newline at the end of your format, use `\n'. (print_it): Don't print a newline at the end of every format. (do_statfs): Add a newline at end of each default format string.
2004-04-04.Jim Meyering
2004-04-04(main): Adjust to new calling convention for set_cloexec_flag.Jim Meyering
2004-03-31.Jim Meyering
2004-03-31whoops. Remove old code, too, <blush>.Jim Meyering
2004-03-31Specifying an invalid --width=N (-w) or --gap-size=N (-g)Jim Meyering
would not elicit an error. Include "xstrtol.h" and "quotearg.h". (main): Don't use atoi. Use xstrtoul instead.
2004-03-31.Jim Meyering
2004-03-29[HAVE_SETHOSTNAME && !defined sethostname]:Jim Meyering
Declare sethostname, since no Solaris header does it.
2004-03-29Include "vasprintf.h", for asprintf.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-27Don't include savedir.h -- no longer needed.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.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(ds_free): Plug a small leak.Jim Meyering
2004-03-21(main): whoops. don't use errno for this diagnostic:Jim Meyering
_("no files specified in %s"),
2004-03-21.Jim Meyering
2004-03-21(tsort): Reflect changes in use of readtoken.Jim Meyering
2004-03-21(do_stdin): Reflect changes in use of readtoken.Jim Meyering
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-03-18.Jim Meyering
2004-03-17(touch_LDADD): New macro, since `touch' now needs clock_gettime.Jim Meyering
2004-03-17(enum Time_spec): New enum TIME_SPEC_NS.Jim Meyering
(time_spec_string, time_spec, show_date): Support it. (usage): Remove description of -ITIMESPEC, as it's obsolete and confusing. Mention --iso-8601=ns. (batch_convert): getline returns ssize_t, not int.
2004-03-17(newtime): Now an array of two timespecs, oneJim Meyering
for access and one for modification. (ref_stats): Remove. (get_reldate): Use get_date's parameter profile. (touch, main): Adjust to above changes. (main): Work even if tm_year == INT_MAX (so long as long int is wider). Use gettime instead of gettimeofday, for new get_date signature.
2004-03-13(do_copy): Tweak wording in a diagnostic.Jim Meyering
Suggestion from Karl Berry. Include "quoatearg.h". (do_copy): Use quotearg_colon (not quote) for diagnostics that begin with `"%s:'.
2004-03-13(usage): Specify that nl uses _basic_ regular expressions.Jim Meyering
2004-03-12(src_to_dest_lookup): Add prototype.Jim Meyering
2004-03-12(src_to_dest_lookup): New function.Jim Meyering
2004-03-12Sometimes, when source and destination partition are different,Jim Meyering
mv mistakenly fails to preserve a hard link. Reported by IIDA Yosiaki. When moving a set of N hard-linked files between partitions, via two or more command line arguments where the command line argument containing the Nth link contains no other link to that same file, mv would mistakenly copy the file, rather than hard-linking it to the other(s). That happens because when the final link is processed, its link count has been reduced to 1 since the other links have been `copied' to the destination partition and the source links have been removed. (copy_internal): When in move mode, use the source dev/inode pair to look up destination name even when st_nlink == 1.
2004-03-11.Jim Meyering
2004-03-10`join -1 x' would give a misleading diagnosticJim Meyering
(string_to_join_field): Report that a non-numeric field number is invalid, rather than `so large that it is not representable'.
2004-03-06cp --sparse=always sparse-image-file.img /dev/hda1 couldJim Meyering
produce an invalid copy on the destination device. (copy_reg): Even with --sparse=always, try to make `holes' only if the destination is a regular file. Reported by Szakacsits Szabolcs.
2004-03-04.Jim Meyering
2004-03-04(main): Don't invoke set_cloexec_flag with a file descriptor of -1.Jim Meyering
2004-03-03Include "cloexec.h".Jim Meyering
(main): Set the copy of stderr to close on exec.
2004-03-02.Jim Meyering
2004-02-23(usage): Remove stray space after \n in --help output.Jim Meyering
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-02-22(eval, eval7, eval6, eval5, eval4, eval3, eval2, eval1):Jim Meyering
Accept a bool argument specifying whether to evaluate the expression. This is to allow short-circuit evaluation. All callers changed. (null): Report that a string is zero even if it has a form like "-0" or "00". (eval1, eval): Use short-circuit evaluation for | and &. (eval): Return 0 if both arguments are null or zero, instead of returning the first argument.
2004-02-21(usage): Tell what comm does when there are no options.Jim Meyering
Reword in terms of FILE1 and FILE2 rather than `left file' and `right file'. Suggestion from Dan Jacobson.