Commit Graph
5378 Commits
Author SHA1 Message Date
Jim Meyering 2fa2315d0c (usage): Undocument deprecated --idle (-i) option. 2005-10-15 15:01:22 +00:00
Jim Meyering b54de31c76 . 2005-10-15 10:21:39 +00:00
Jim Meyering 15e97882ff (main): Remove --link -l options.
You can use --dereference (-L) instead.
2005-10-15 10:15:48 +00:00
Jim Meyering f90df192b4 (parse_options): Remove --allow-missing option.
You can use --retry instead.
2005-10-15 10:15:34 +00:00
Jim Meyering 69dc13717a (usage): Document -m, once again.
(main): Warn about use of deprecated long options: --kilobytes and --megabytes.
2005-10-15 10:14:13 +00:00
Jim Meyering 4ecdd8ce4c (decode_switches): Warn about the deprecated --kilobytes option. 2005-10-15 09:56:21 +00:00
Jim Meyering 9624dcd0ee (main): Warn about the deprecated --kilobytes option. 2005-10-15 09:56:03 +00:00
Paul Eggert 4778617abc (sortlines_temp): Redo previous change, since I'm no longer confident
that the m4/stdbool.m4 patch suffices.
2005-10-07 18:48:28 +00:00
Paul Eggert 38ffebe4ac (sortlines_temp): Undo previous change, since
today's change to m4/stdbool.m4 should catch it.
2005-10-06 16:40:13 +00:00
Jim Meyering 132aaa2eac Add a comment to go with the last change. 2005-10-05 18:56:29 +00:00
Jim Meyering 111bac9943 (sortlines_temp): Declare temporary as `int' rather
than `bool' to work around AIX 5.3 compiler bug in 64-bit mode.
2005-10-05 18:53:55 +00:00
Jim Meyering c7676c0b6b (MAX_N_FACTORS): Define in terms of sizeof (uintmax_t)
rather than hard-coding to 128.  From Thomas M.Ott.
2005-10-03 12:12:14 +00:00
Jim Meyering adcbbb9946 . 2005-10-01 09:51:00 +00:00
Jim Meyering 157712c3cb (main): Don't stop processing arguments upon the first invalid one. 2005-10-01 08:01:25 +00:00
Jim Meyering 5664caead1 . 2005-10-01 07:44:04 +00:00
Paul Eggert 86b4df4f0d (main): Don't assume size_t has the same width
as unsigned long.  Problem reported by Eric Blake.
2005-09-30 05:07:11 +00:00
Jim Meyering a28944042e . 2005-09-29 17:26:44 +00:00
Jim Meyering abeaf74fcb . 2005-09-29 17:17:28 +00:00
Jim Meyering 9ac64b8013 . 2005-09-29 17:10:23 +00:00
Jim Meyering c060bb702a . 2005-09-29 13:14:33 +00:00
Paul Eggert d6897a1553 * src/system.h (LONGEST_MODIFIER): Use ULONG_MAX_LT_ULLONG_MAX
instead of ULLONG_MAX, as the latter doesn't work with GCC 2.7.2.1.
2005-09-28 22:11:06 +00:00
Paul Eggert 2f897e7258 (touch): Handle "touch -c - >&-" by checking for EBADF
and ENOSYS.
Do not pass "-" to futimens; pass NULL instead.
If close (STDIN_FILENO) fails, report the error separately instead
of letting the 'close' pollute errno.
2005-09-26 23:02:14 +00:00
Paul Eggert e3513e1895 (touch): "touch -" now touches standard output.
(usage): Document this.
2005-09-25 06:12:21 +00:00
Paul Eggert 7fc308db7e (HAVE_FCHMOD, HAVE_FCHOWN): Define to 0 if not defined.
(copy_reg): New args CHOWN_SUCCEDED and DST_SB.  All callers changed.
Add a "goto close_src_and_dst_desc;" that was missing in the
previous patch.
(copy_reg) [HAVE_FCHOWN]: Prefer fchown to chown.
(copy_reg) [HAVE_FCHMOD]: Prefer fchmod to chmod.
(copy_internal): Don't invoke chown if fchown worked,
and likewise for chmod and fchmod.
2005-09-25 03:07:33 +00:00
Jim Meyering 8daf4759f4 Use #ifdef HAVE_CONFIG_H', not #if HAVE_CONFIG_H', for consistency with gnulib. 2005-09-24 13:40:37 +00:00
Paul Eggert 8e4680db2f (install_file_in_file): Be more conservative about the previous patch:
set time stamps on all non-regular files.
2005-09-23 20:50:49 +00:00
Paul Eggert 63b77aac44 (change_timestamps): First arg is source
struct stat, not file name.  All uses changed.
(install_file_in_file): Stat the source file if necessary.
Don't try to change time stamps if copy_file did it.
2005-09-23 20:39:04 +00:00
Paul Eggert 35044438af (copy_reg): Preserve time stamps if
x->preserve_timestamps is set, using futimens so that
we needn't resolve the path again.
(copy_internal): Don't preserve time stamps if copy_reg did it
already.
2005-09-23 20:38:34 +00:00
Paul Eggert 2c4a088886 Don't include utime.h; not needed.
(struct utimbuf) [!defined HAVE_STRUCT_UTIMBUF]: Remove; not needed.
2005-09-23 20:35:41 +00:00
Jim Meyering a40376f4c5 . 2005-09-23 20:14:20 +00:00
Jim Meyering d3e8a40be3 Use `verify' to ensure that our hard-coded
bytes_to_*_digits arrays are long enough.  Of course, 17+-byte
integral types aren't on the near horizon, but just in case...
(MAX_INTEGRAL_TYPE_SIZE): Move definition to precede new first use.
(bytes_to_oct_digits, bytes_to_signed_dec_digits):
(bytes_to_unsigned_dec_digits, bytes_to_hex_digits): Change base
type from `char' to the clearer `unsigned int'.
2005-09-23 20:13:49 +00:00
Jim Meyering fc6f1f7f9c . 2005-09-22 09:47:36 +00:00
Paul Eggert 9bbbf30543 Regenerate. 2005-09-22 07:07:36 +00:00
Paul Eggert 211a8d5cb0 Include canon-host.h rather than declaring canon_host ourselves. 2005-09-22 07:01:24 +00:00
Paul Eggert 144c6536d0 Include canon-host.h rather than declaring
canon_host ourselves.
2005-09-22 07:01:07 +00:00
Paul Eggert 3779124b3f Include strcase.h. 2005-09-22 07:00:49 +00:00
Paul Eggert b52d569ca1 (EEXIST, ENOTEMPTY): Remove unused macros. 2005-09-22 06:56:21 +00:00
Paul Eggert 99eda9943e (X2NREALLOC, X2REALLOC): Moved here from
../lib/xalloc.h, with args properly parenthesized, and using
verify_expr rather than the old VERIFY_EXPR.
2005-09-22 06:33:40 +00:00
Jim Meyering 08c07f2a1c . 2005-09-21 17:07:09 +00:00
Jim Meyering 3ed1ba12da . 2005-09-21 16:43:17 +00:00
Jim Meyering d6b83b2f9b (write_protected_non_symlink): Change comment to agree with the code. 2005-09-20 17:48:02 +00:00
Jim Meyering a9d57e3f26 (remove_dir): Return RM_ERROR, not `1',
when attempting to remove `/' with --preserve-root.
2005-09-19 13:34:47 +00:00
Jim Meyering f721f10682 (remove_cwd_entries): Syntactic tweak: move an
assignment out of an if-expression.
2005-09-19 06:47:47 +00:00
Jim Meyering 609d835a06 (usage): Request that additions be sent to bug-coreutils@gnu.org, too. 2005-09-17 09:14:48 +00:00
Jim Meyering 27747f4a66 (main): When failing to truncate, mention both the seek block count
and the block size, in case the block size is very large.
2005-09-16 09:35:47 +00:00
Jim Meyering d5eda08be3 Include fprintftime.h.
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-16 08:08:32 +00:00
Jim Meyering 4fdd25e012 (show_date): Correct comment: this function no longer handles a
NULL format string.
2005-09-16 08:08:00 +00:00
Jim Meyering d5763af839 (show_date): Remove now-spurious braces. 2005-09-16 07:59:20 +00:00
Paul Eggert 96971b59be Regenerate. 2005-09-16 07:58:03 +00:00
Paul Eggert 158d982669 Include stat-time.h, and use its functions instead of the obsolete
TIMESPEC_NS macro.
2005-09-16 07:50:33 +00:00