Jim Meyering [Tue, 1 Mar 2005 12:27:47 +0000 (12:27 +0000)]
(copy_internal): Change test of source type from !S_ISREG to S_ISLNK.
Reported by Paul Eggert in
http://lists.gnu.org/archive/html/bug-coreutils/2004-10/msg00050.html.
Paul Eggert [Sat, 26 Feb 2005 07:37:49 +0000 (07:37 +0000)]
(VASNPRINTF) [!USE_SNPRINTF]: Correct the test for
integer overflow again. Actually, neither this nor the 2005-01-23
change fixes any bug on any plausible platform; it's more of a
code-clarity thing.
Paul Eggert [Thu, 24 Feb 2005 00:27:44 +0000 (00:27 +0000)]
(Time directives): Say that %k, %l, and %P are
GNU extensions.
For %p and %P, mention handling of noon and midnight.
For %s, use ISO 8601, and mention handling of leap seconds.
For %S, clarify mention of leap seconds.
For %T, say that it's the same as %H:%M:%S.
For %X, don't say that it must be the same as %H:%M:%S.
For %z and %Z, clarify which time zones are used. These options
are now affected by --date, so don't claim that they're not.
(Date directives): %C is now all but the last two chars of %Y.
For %D, say that it's equivalent to %m/%d/%y.
For %e, use blank in example.
For %h, use @code for %b.
For %Y, mention what happens with outlandish years.
(Padding and other flags): Renamed from Padding.
Mention that the flags are GNU extensions.
Mention the 0 and ^ flags.
Mention field widths an modifiers.
(Examples of date): - is a flag, not a modifier.
Paul Eggert [Thu, 24 Feb 2005 00:26:55 +0000 (00:26 +0000)]
Include <stdbool.h>. Use bool where appropriate, instead of int.
(my_strftime): Do not mishandle years close to INT_MAX, by doing
the right thing even if adding 1900 would overflow. Similarly
for tm_mon + 1 and tm_yday + 1.
Make %Y always equivalent to %C%y, and similarly for %G and %g.
(DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
(DO_SIGNED_NUMBER): New macro.
(my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
Paul Eggert [Tue, 22 Feb 2005 07:09:13 +0000 (07:09 +0000)]
(gl_PREREQ_GETHRXTIME): Require gl_CLOCK_TIME,
gl_USE_SYSTEM_EXTENSIONS. Check whether CLOCK_MONOTONIC is
defined, and set LIB_GETHRXTIME accordingly. This is needed
for newer GNU/Linux systems that have clock_gettime, so that they
link in the appropriate library for it when needed.
Paul Eggert [Mon, 21 Feb 2005 08:10:47 +0000 (08:10 +0000)]
Include xtime.h and gethrxtime.h, not xalloc.h.
(timespec_subtract): Remove.
(NANOSLEEP_BUG_WORKAROUND): New constant.
(xnanosleep): Use gethrxtime rather than gettime; this simplifies
things considerably. Use it only on GNU/Linux hosts, since the
workaround shouldn't be needed elsewhere.
Paul Eggert [Mon, 21 Feb 2005 08:09:30 +0000 (08:09 +0000)]
(gettime) Return void, since it always
succeeds now. All uses changed.
[HAVE_NANOTIME]: Prefer nanotime.
Assume gettimeofday succeeds, as POSIX requires.
Assime time () succeeds, since other code already does.
Paul Eggert [Tue, 8 Feb 2005 21:38:53 +0000 (21:38 +0000)]
(STATFS_FRSIZE): New macro.
(print_statfs): Use it to implement %S.
(do_statfs): Change default formats to include %S.
(usage): Document %S (versus %s).
Paul Eggert [Tue, 8 Feb 2005 20:46:52 +0000 (20:46 +0000)]
* doc/coreutils.texi (stat invocation): Match stat --usage better.
* src/stat.c (usage): Match doc better.
Say that %s is the "Fundamental block size".
Paul Eggert [Tue, 8 Feb 2005 20:45:03 +0000 (20:45 +0000)]
(usage): Normalize terminology, capitalization, and sort order to
match manual. Say that %s is the "Fundamental block size", since that
is what POSIX says.
Paul Eggert [Tue, 8 Feb 2005 20:44:28 +0000 (20:44 +0000)]
(stat invocation): Normalize terminology,
capitalization, and sort order to match --help output. Mention %c
for file systems. Say that %s is the "Fundamental block size",
since that is what POSIX says.
Jim Meyering [Mon, 7 Feb 2005 16:47:39 +0000 (16:47 +0000)]
(libfetish_a_SOURCES): Remove fts.c, fts_.h, and
getcwd.h now that they're mentioned in AC_LIBSOURCES and AC_LIBOBJ
uses in the corresponding ../m4/*.m4.