Paul Eggert [Wed, 9 Mar 2005 23:22:14 +0000 (23:22 +0000)]
Add TYPE_ONES_COMPLEMENT and TYPE_SIGNED_MAGNITUDE, and use
less-tricky TYPE_MINIMUM and TYPE_MAXIMUM.
Jim Meyering [Wed, 9 Mar 2005 23:21:10 +0000 (23:21 +0000)]
*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 23:21:00 +0000 (23:21 +0000)]
[!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
so that this module works on systems without fchdir.
Jim Meyering [Wed, 9 Mar 2005 23:16:07 +0000 (23:16 +0000)]
.
Jim Meyering [Wed, 9 Mar 2005 23:12:48 +0000 (23:12 +0000)]
*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 23:11:19 +0000 (23:11 +0000)]
(libfetish_a_SOURCES): Remove xstrtol.c and xstrtol.h.
Jim Meyering [Wed, 9 Mar 2005 23:10:46 +0000 (23:10 +0000)]
*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 23:06:55 +0000 (23:06 +0000)]
(gl_XNANOSLEEP): Add intprops.h.
Jim Meyering [Wed, 9 Mar 2005 23:06:16 +0000 (23:06 +0000)]
(gl_UTIMECMP): Add intprops.h.
Jim Meyering [Wed, 9 Mar 2005 23:05:32 +0000 (23:05 +0000)]
(gl_USERSPEC): Add intprops.h.
Jim Meyering [Wed, 9 Mar 2005 23:04:47 +0000 (23:04 +0000)]
(gl_FUNC_SIG2STR): Add intprops.h.
Jim Meyering [Wed, 9 Mar 2005 23:03:42 +0000 (23:03 +0000)]
(gl_INTTOSTR): Add intprops.h.
Jim Meyering [Wed, 9 Mar 2005 23:02:25 +0000 (23:02 +0000)]
(gl_HUMAN): Add intprops.h.
Jim Meyering [Wed, 9 Mar 2005 23:01:36 +0000 (23:01 +0000)]
(gl_XSTRTOL): Use AC_LIBSOURCES and AC_LIBOBJ to list the required files.
Paul Eggert [Wed, 9 Mar 2005 19:27:23 +0000 (19:27 +0000)]
* src/system.h: Include intprops.h instead of rolling our own.
Paul Eggert [Wed, 9 Mar 2005 19:27:02 +0000 (19:27 +0000)]
Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND): Remove;
they are now defined in intprops.h.
Paul Eggert [Wed, 9 Mar 2005 19:26:36 +0000 (19:26 +0000)]
Factor int-properties macros into a single file, except for
glibc-related files.
Paul Eggert [Wed, 9 Mar 2005 19:25:58 +0000 (19:25 +0000)]
Include xstrtol.h first, to test interface.
Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
Paul Eggert [Wed, 9 Mar 2005 19:25:34 +0000 (19:25 +0000)]
Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
Paul Eggert [Wed, 9 Mar 2005 19:25:14 +0000 (19:25 +0000)]
Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
(utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
instead of rolling our own expressions.
Paul Eggert [Wed, 9 Mar 2005 19:24:37 +0000 (19:24 +0000)]
Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
Paul Eggert [Wed, 9 Mar 2005 19:24:15 +0000 (19:24 +0000)]
Adjust comments to match intprops.h.
Paul Eggert [Wed, 9 Mar 2005 19:23:59 +0000 (19:23 +0000)]
(TYPE_SIGNED): Remove.
(INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
Paul Eggert [Wed, 9 Mar 2005 19:23:35 +0000 (19:23 +0000)]
Include <signal.h>, intprops.h.
(INT_STRLEN_BOUND): Remove.
Paul Eggert [Wed, 9 Mar 2005 19:23:05 +0000 (19:23 +0000)]
(TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
for consistency with intprops.h.
(time_t_is_integer, twos_complement_arithmetic): Use them.
Paul Eggert [Wed, 9 Mar 2005 19:22:48 +0000 (19:22 +0000)]
Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
Paul Eggert [Wed, 9 Mar 2005 19:22:21 +0000 (19:22 +0000)]
(LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000.
Paul Eggert [Wed, 9 Mar 2005 19:22:05 +0000 (19:22 +0000)]
Include intprops.h.
(group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
Paul Eggert [Wed, 9 Mar 2005 19:21:43 +0000 (19:21 +0000)]
Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND): Remove.
Paul Eggert [Wed, 9 Mar 2005 19:21:20 +0000 (19:21 +0000)]
* lib/fts.c: Include intprops.h.
(TYPE_SIGNED): Remove.
Paul Eggert [Wed, 9 Mar 2005 19:20:59 +0000 (19:20 +0000)]
Initial revision.
Jim Meyering [Wed, 9 Mar 2005 10:27:16 +0000 (10:27 +0000)]
*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 10:26:52 +0000 (10:26 +0000)]
Remove entry about named pipes. It was fixed in 5.3.0.
Jim Meyering [Wed, 9 Mar 2005 10:18:43 +0000 (10:18 +0000)]
* argmatch.m4, cycle-check.m4: New files.
* prereq.m4: Require their macros.
Jim Meyering [Wed, 9 Mar 2005 10:17:51 +0000 (10:17 +0000)]
.
Jim Meyering [Wed, 9 Mar 2005 10:17:30 +0000 (10:17 +0000)]
.
Jim Meyering [Wed, 9 Mar 2005 09:41:58 +0000 (09:41 +0000)]
More migration to AC_LIBSOURCES/AC_LIBOBJ.
(libfetish_a_SOURCES): Remove two more pairs of files:
cycle-check.c, cycle-check.h and argmatch.c, argmatch.h.
Jim Meyering [Wed, 9 Mar 2005 09:41:38 +0000 (09:41 +0000)]
*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 09:41:17 +0000 (09:41 +0000)]
*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 09:40:56 +0000 (09:40 +0000)]
*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 08:56:50 +0000 (08:56 +0000)]
.
Jim Meyering [Wed, 9 Mar 2005 08:54:48 +0000 (08:54 +0000)]
Don't include "xalloc.h". It's not used.
Paul Eggert [Tue, 8 Mar 2005 22:20:24 +0000 (22:20 +0000)]
* src/date.c (usage): Redo to match recent documentation changes.
Paul Eggert [Tue, 8 Mar 2005 22:20:11 +0000 (22:20 +0000)]
(usage): Redo to match recent documentation changes.
Don't bother documenting which usages are GNU extensions; the list
wasn't correct, and is better left to the printed manual anyway.
Paul Eggert [Tue, 8 Mar 2005 22:19:54 +0000 (22:19 +0000)]
Improve "date invocation" again.
Paul Eggert [Tue, 8 Mar 2005 22:19:39 +0000 (22:19 +0000)]
(date invocation): Use an example that makes it
clear tha the default date use space-padded day of month.
Replace "directive" with "conversion specifier" to be consistent
with POSIX. All uses changed.
Fix menu RHS to match actual directive lists.
(Time conversion specifiers): Renamed from Time directives.
Use @samp consistently, sometimes instead of @code.
Consistently ention which specifiers are GNU extensions.
Give more examples (in some cases, instead of ranges).
Say why %F is preferred for dates.
(Date conversion specifiers): Renamed from Date directives.
Likewise for other changes.
(Padding and other flags): Correct the description.
Document #. Give an example for %9B.
Jim Meyering [Sun, 6 Mar 2005 19:34:46 +0000 (19:34 +0000)]
*** empty log message ***
Jim Meyering [Sun, 6 Mar 2005 19:34:07 +0000 (19:34 +0000)]
Factor out column-count processing.
Include "inttostr.h".
(parse_column_count): New function.
(main): Use the new function for both old-style, -9, and long,
--columns=-9, options.
Jim Meyering [Sun, 6 Mar 2005 16:34:40 +0000 (16:34 +0000)]
*** empty log message ***
Jim Meyering [Sun, 6 Mar 2005 16:34:01 +0000 (16:34 +0000)]
Remove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:33:20 +0000 (16:33 +0000)]
Remove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:31:51 +0000 (16:31 +0000)]
Remove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:30:45 +0000 (16:30 +0000)]
Remove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:26:38 +0000 (16:26 +0000)]
Remove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:25:26 +0000 (16:25 +0000)]
Remove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:23:27 +0000 (16:23 +0000)]
Remove register keyword.
Jim Meyering [Sun, 6 Mar 2005 16:20:43 +0000 (16:20 +0000)]
Remove register keyword.
Jim Meyering [Sun, 6 Mar 2005 16:19:44 +0000 (16:19 +0000)]
Remove register keyword.
Paul Eggert [Fri, 4 Mar 2005 06:43:08 +0000 (06:43 +0000)]
Remove workaround for nanosleep bug in Linux kernel 2.6.8 or thereabouts.
Jim Meyering [Tue, 1 Mar 2005 20:50:35 +0000 (20:50 +0000)]
.
Jim Meyering [Tue, 1 Mar 2005 20:27:24 +0000 (20:27 +0000)]
.
Paul Eggert [Tue, 1 Mar 2005 17:29:12 +0000 (17:29 +0000)]
* src/Makefile.am (nanosec_libs): Remove $(LIB_XANOSLEEP).
Paul Eggert [Tue, 1 Mar 2005 17:28:49 +0000 (17:28 +0000)]
(nanosec_libs): Remove $(LIB_XANOSLEEP); no longer needed.
Paul Eggert [Tue, 1 Mar 2005 17:26:29 +0000 (17:26 +0000)]
* xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
to detect nanosleep bug.
Paul Eggert [Tue, 1 Mar 2005 17:26:16 +0000 (17:26 +0000)]
(gl_XNANOSLEEP): Remove configuration attempting
to detect nanosleep bug.
Paul Eggert [Tue, 1 Mar 2005 17:25:53 +0000 (17:25 +0000)]
Don't include gethrxtime.h or xtime.h.
(NANOSLEEP_BUG_WORKAROUND): Remove.
(xnanosleep): Remove the workaround.
Jim Meyering [Tue, 1 Mar 2005 12:27:59 +0000 (12:27 +0000)]
*** empty log message ***
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.
Jim Meyering [Mon, 28 Feb 2005 10:19:22 +0000 (10:19 +0000)]
*** empty log message ***
Jim Meyering [Mon, 28 Feb 2005 10:18:32 +0000 (10:18 +0000)]
*** empty log message ***
Jim Meyering [Mon, 28 Feb 2005 10:03:02 +0000 (10:03 +0000)]
*** empty log message ***
Jim Meyering [Mon, 28 Feb 2005 10:02:58 +0000 (10:02 +0000)]
(xnanosleep): Work around bug in Linux-2.6.8.1's
nanosleep whereby it fails without setting errno upon being resumed
after being suspended.
Paul Eggert [Sat, 26 Feb 2005 07:42:19 +0000 (07:42 +0000)]
Regenerate.
Paul Eggert [Sat, 26 Feb 2005 07:38:14 +0000 (07:38 +0000)]
* vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Correct the test for
integer overflow again.
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 [Sat, 26 Feb 2005 07:31:20 +0000 (07:31 +0000)]
Sync from gnulib.
Paul Eggert [Thu, 24 Feb 2005 00:28:16 +0000 (00:28 +0000)]
* coreutils.texi: Adjust to match current strftime.c.
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:27:17 +0000 (00:27 +0000)]
strftime.c cleanup to handle outlandish years.
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.
Jim Meyering [Wed, 23 Feb 2005 23:16:59 +0000 (23:16 +0000)]
(gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's change.
Jim Meyering [Wed, 23 Feb 2005 13:53:22 +0000 (13:53 +0000)]
*** empty log message ***
Jim Meyering [Tue, 22 Feb 2005 14:31:29 +0000 (14:31 +0000)]
*** empty log message ***
Jim Meyering [Tue, 22 Feb 2005 14:31:26 +0000 (14:31 +0000)]
(gl_USE_SYSTEM_EXTENSIONS): Fix typo: s/ifndef/ifdef/.
Jim Meyering [Tue, 22 Feb 2005 07:50:20 +0000 (07:50 +0000)]
*** empty log message ***
Jim Meyering [Tue, 22 Feb 2005 07:50:16 +0000 (07:50 +0000)]
(gl_PREREQ): Require gl_STRIPSLASH and gl_LINEBUFFER.
Paul Eggert [Tue, 22 Feb 2005 07:21:57 +0000 (07:21 +0000)]
Regenerate.
Paul Eggert [Tue, 22 Feb 2005 07:19:43 +0000 (07:19 +0000)]
Fix clock_gettime library access problem on recent GNU/Linux systems.
Paul Eggert [Tue, 22 Feb 2005 07:10:07 +0000 (07:10 +0000)]
(dd_LDADD, shred_LDADD): Add $(LIB_GETHRXTIME).
(nanosec_libs): Add $(LIB_XNANOSLEEP). Needed for newer GNU/Linux
hosts with clock_gettime.
Paul Eggert [Tue, 22 Feb 2005 07:09:37 +0000 (07:09 +0000)]
(gl_PREREQ): Require gl_XNANOSLEEP.
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 [Tue, 22 Feb 2005 07:08:43 +0000 (07:08 +0000)]
(libfetish_a_SOURCES): Remove xnanosleep.c,
xnanosleep.h; now done by ../m4/xnanosleep.m4 automatically.
Paul Eggert [Tue, 22 Feb 2005 07:06:47 +0000 (07:06 +0000)]
Initial revision.
Paul Eggert [Mon, 21 Feb 2005 08:26:21 +0000 (08:26 +0000)]
Regenerate.
Paul Eggert [Mon, 21 Feb 2005 08:20:15 +0000 (08:20 +0000)]
Describe recent changes to use realtime clocks if available,
when appropriate; also, gettime now returns void.
Paul Eggert [Mon, 21 Feb 2005 08:17:00 +0000 (08:17 +0000)]
(time): Remove obsolete decl.
(main): Gettime now returns void.
Paul Eggert [Mon, 21 Feb 2005 08:15:45 +0000 (08:15 +0000)]
Include gethrxtime.h.
(isaac_seed): Use gethrxtime rather than a mishmash.
Paul Eggert [Mon, 21 Feb 2005 08:15:10 +0000 (08:15 +0000)]
(time): Remove obsolete decl.
(get_current_time): gettimeofday always returns 0, so don't
check its result.
Paul Eggert [Mon, 21 Feb 2005 08:14:40 +0000 (08:14 +0000)]
Include gethrxtime.h, xtime.h.
(start_time): Now of type xtime_t, not struct timespec.
(print_stats, main): Use gethrxtime rather than gettime.
Paul Eggert [Mon, 21 Feb 2005 08:14:13 +0000 (08:14 +0000)]
(main): gettime now returns void.