Commit Graph
17812 Commits
Author SHA1 Message Date
Jim Meyering c9736bdff0 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.
2004-02-07 16:00:28 +00:00
Jim Meyering a70f51f2b0 . 2004-02-07 15:32:55 +00:00
Jim Meyering 0985b818a0 . 2004-02-07 14:04:23 +00:00
Jim Meyering d90a114a8d . 2004-02-07 13:49:13 +00:00
Jim Meyering ab049a7857 (gnu_ftp_host-alpha, etc.): Un-factor .gnu.org suffix,
so that emit_upload_commands can use these variables, too.
2004-02-07 13:49:03 +00:00
Jim Meyering c5a8961c5b (emit_upload_commands): new target
(alpha beta major): `$(MAKE)' it.
2004-02-07 13:47:41 +00:00
Jim Meyering 25a8abf2ee . 2004-02-07 12:04:24 +00:00
Jim Meyering 7fb035efd1 . 2004-02-07 11:47:01 +00:00
Jim Meyering 5aa31e74c3 add missing quote 2004-02-07 11:46:00 +00:00
Jim Meyering 27f63a17c6 . 2004-02-07 10:05:30 +00:00
Jim Meyering ccc8453c41 *** empty log message *** 2004-02-07 09:49:54 +00:00
Jim Meyering 70932c5e23 *** empty log message *** 2004-02-06 16:47:52 +00:00
Jim Meyering 9af79ee204 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.
2004-02-06 16:47:07 +00:00
Jim Meyering 4b43b0ccae remove stray `done' diagnostic 2004-02-06 16:45:09 +00:00
Jim Meyering 5d1b8226e2 *** empty log message *** 2004-02-06 15:26:15 +00:00
Jim Meyering 26470e56d9 (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.
2004-02-06 15:26:12 +00:00
Jim Meyering 9a70dde66b *** empty log message *** 2004-02-06 10:39:01 +00:00
Jim Meyering ca97db17ea (signatures): Remove definition.
Now, automake's gnupload handles this.
(%.sig: %): Remove now-unused rule.
(rel-files): Use automake's $(DIST_ARCHIVES), rather than
`$(distdir).tar.bz2 $(distdir).tar.gz'.
(emit-upload-commands): Adjust to use gnupload.
2004-02-06 10:38:57 +00:00
Jim Meyering 5937c873e6 (human_time): Correct merge problem. 2004-02-05 13:46:41 +00:00
Jim Meyering 8b2ed3ed95 *** empty log message *** 2004-02-05 09:52:30 +00:00
Jim Meyering 6589ff97d5 *** empty log message *** 2004-02-05 09:51:54 +00:00
Jim Meyering ad669dfe92 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.
2004-02-05 09:51:49 +00:00
Jim Meyering c904b0cae6 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.
2004-02-05 09:50:18 +00:00
Jim Meyering adc816c05a 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.
2004-02-05 09:47:01 +00:00
Jim Meyering b5cfd989df *** empty log message *** 2004-02-05 09:35:02 +00:00
Jim Meyering e32369feb8 (human_time): Accept time rather than pointer-to-const-time parameter,
for clarity.  All callers changed.
2004-02-05 09:34:33 +00:00
Jim Meyering b13975e227 (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
(ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
From coreutils' system.h.
2004-02-05 09:28:22 +00:00
Jim Meyering 3c22aefe80 *** empty log message *** 2004-02-05 09:26:56 +00:00
Jim Meyering 143799aecc (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.
2004-02-05 09:26:52 +00:00
Jim Meyering f37f61b461 Don't include timespec.h, now that system.h does it. 2004-02-05 09:24:05 +00:00
Jim Meyering 816174d119 *** empty log message *** 2004-02-05 09:08:52 +00:00
Jim Meyering 54da1d6493 *** empty log message *** 2004-02-04 09:46:10 +00:00
Jim Meyering 0b28b559f4 *** empty log message *** 2004-02-03 20:57:40 +00:00
Jim Meyering 3c365a2f32 *** empty log message *** 2004-02-03 18:40:30 +00:00
Jim Meyering e8416c5e12 (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.
2004-02-03 18:40:25 +00:00
Jim Meyering c19b38ed34 *** empty log message *** 2004-02-02 17:41:52 +00:00
Jim Meyering 3b1d58cb3f *** empty log message *** 2004-02-02 17:35:56 +00:00
Jim Meyering 9323d8baed *** empty log message *** 2004-02-02 17:33:35 +00:00
Jim Meyering fa377fd8c1 (do_stat): Remove extra trailing newline from default formats. 2004-02-02 17:33:11 +00:00
Jim Meyering 258e4f3a5b . 2004-02-02 15:00:32 +00:00
Jim Meyering 16c721f762 *** empty log message *** 2004-02-02 13:20:55 +00:00
Jim Meyering a61d512f4c (nice invocation): Add examples.
Prompted by suggestion from Dan Jacobson.
(factor invocation): Add an example.
Update timing numbers for a more modern CPU.
2004-02-02 13:20:52 +00:00
Jim Meyering e562fd7057 *** empty log message *** 2004-02-02 13:12:51 +00:00
Jim Meyering eaa7370746 *** empty log message *** 2004-02-02 08:08:09 +00:00
Jim Meyering ca6973a9a9 *** empty log message *** 2004-02-02 08:05:36 +00:00
Jim Meyering c057bb50b5 Print actual fractional seconds in time stamps, not just `.00000000'.
(human_time): Add and use new parameter, t_ns.
(print_stat): Update callers.
2004-02-02 07:59:58 +00:00
Jim Meyering dd42ad9e9c (TIMESPEC_NS): Define here, instead, now that stat.c also uses this macro. 2004-02-02 07:59:35 +00:00
Jim Meyering 19b1ba88d5 (TIMESPEC_NS): Remove definition. 2004-02-02 07:59:23 +00:00
Jim Meyering 206610bd6c . 2004-01-29 20:42:25 +00:00
Jim Meyering 641c7269f7 *** empty log message *** 2004-01-29 20:41:22 +00:00