Jim Meyering [Tue, 17 Feb 2004 10:52:49 +0000 (10:52 +0000)]
(usage) [-u]: Add punctuation so that the description in
the help2man-generated (line-joined) man page is more readable.
Reported by Tim Waugh.
[-T]: Add a semicolon, for the same reason.
Jim Meyering [Tue, 10 Feb 2004 08:17:33 +0000 (08:17 +0000)]
(dist-hook): New target, to ensure that config/install-sh
is executable. Otherwise, on systems that lack a suitable install
binary, `make install' would fail, because of the way this script
is invoked (without `$SHELL ' prefix).
Jim Meyering [Sat, 7 Feb 2004 16:01:20 +0000 (16:01 +0000)]
(re_protect): Use `XSTAT (x, ...)' in place of `*(x->xstat) (...)'.
(do_copy): Declare/use local xstat rather than x->xstat.
(main): Remove code that set x.xstat.
Jim Meyering [Sat, 7 Feb 2004 16:01:02 +0000 (16:01 +0000)]
Remove xstat function pointer member. The way it was used was not
portable, since some systems (OSF V5.1, Solaris 2.5.1) provide static
inline `stat' and `lstat' functions, thus making the tests of
`xstat == lstat' in copy.c always fail.
(struct cp_options) [xstat]: Remove member.
(XSTAT): New macro.
Jim Meyering [Sat, 7 Feb 2004 16:00:28 +0000 (16:00 +0000)]
Remove xstat function pointer member. The way it was used was not
portable, since some systems (OSF V5.1, Solaris 2.5.1) provide static
inline `stat' and `lstat' functions, thus making the tests of
`xstat == lstat' in copy.c always fail.
(copy_dir): Set `.dereference' member, not .xstat.
(copy_internal): Use `XSTAT (x, ...)' in place of `*(x->xstat) (...)'.
Use `x->dereference == DEREF_NEVER' in place of `x->xstat == lstat'.
(valid_options): Remove now-obsolete FIXME comments.
Jim Meyering [Fri, 6 Feb 2004 16:47:07 +0000 (16:47 +0000)]
Remove `du' stack space test.
Apparently, `ulimit -s N' isn't portable enough.
This test will be restored (with a guard against losing ulimit)
in its own file later.
Jim Meyering [Fri, 6 Feb 2004 15:26:12 +0000 (15:26 +0000)]
(deep): Remove progress-style diagnostics,
since this test doesn't take long enough to merit them.
Run du on $tmp (the containing dir), not $deep, the full path to leaf.
Jim Meyering [Thu, 5 Feb 2004 09:51:49 +0000 (09:51 +0000)]
Don't dump core if localtime returns NULL (possible on
hosts with 64-bit time_t and 32-bit int).
Print "??" if the current clock can't
be converted by localtime. This won't happen until the year
2*31 + 1900, but we don't want to dump core even if the current
clock has the wrong value.
Jim Meyering [Thu, 5 Feb 2004 09:50:18 +0000 (09:50 +0000)]
Don't dump core if localtime returns NULL (possible on
hosts with 64-bit time_t and 32-bit int).
Include "inttostr.h".
(batch_convert, main):
If time conversion fails, exit with nonzero status.
(show_date): Return int to report conversion failure.
Print the time as an int if localtime fails.
Jim Meyering [Thu, 5 Feb 2004 09:47:01 +0000 (09:47 +0000)]
Include "inttostr.h".
(human_time): Print the date/time as a number of seconds since the
epoch if it can't be converted by localtime. This is better than
just saying "invalid", and is consistent with what "ls" does.
Don't dump core if the year has more than 48 digits; this isn't
possible on any contemporary host, but we might as well do it right.
Jim Meyering [Thu, 5 Feb 2004 09:26:52 +0000 (09:26 +0000)]
(ST_TIME_CMP_NS, ST_TIME_CMP): Remove definitions.
(ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
Now, those are all defined in timespec.h.
Include timespec.h.
Jim Meyering [Tue, 3 Feb 2004 18:40:25 +0000 (18:40 +0000)]
(print_numbers): Use 'double' for loop index, not
'int', to avoid problems with integer overflow. On almost all
machines 'double' works in every case where 'int' works, and
it works on other cases besides.
Jim Meyering [Mon, 2 Feb 2004 13:20:52 +0000 (13:20 +0000)]
(nice invocation): Add examples.
Prompted by suggestion from Dan Jacobson.
(factor invocation): Add an example.
Update timing numbers for a more modern CPU.
Jim Meyering [Tue, 27 Jan 2004 12:53:24 +0000 (12:53 +0000)]
Separate `Synopses' section into three examples.
Clarify first paragraph. @w{}-protect an expression.1
Use @option{--option}, rather than @code{--option}.