platform/upstream/coreutils.git
19 years agoInclude intprops.h instead of limits.h.
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.

19 years ago(LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000.
Paul Eggert [Wed, 9 Mar 2005 19:22:21 +0000 (19:22 +0000)]
(LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000.

19 years agoInclude intprops.h.
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.

19 years agoInclude intprops.h instead of limits.h.
Paul Eggert [Wed, 9 Mar 2005 19:21:43 +0000 (19:21 +0000)]
Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND): Remove.

19 years ago* lib/fts.c: Include intprops.h.
Paul Eggert [Wed, 9 Mar 2005 19:21:20 +0000 (19:21 +0000)]
* lib/fts.c: Include intprops.h.
(TYPE_SIGNED): Remove.

19 years agoInitial revision.
Paul Eggert [Wed, 9 Mar 2005 19:20:59 +0000 (19:20 +0000)]
Initial revision.

19 years ago*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 10:27:16 +0000 (10:27 +0000)]
*** empty log message ***

19 years agoRemove entry about named pipes. It was fixed in 5.3.0.
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.

19 years ago* argmatch.m4, cycle-check.m4: New files.
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.

19 years ago.
Jim Meyering [Wed, 9 Mar 2005 10:17:51 +0000 (10:17 +0000)]
.

19 years ago.
Jim Meyering [Wed, 9 Mar 2005 10:17:30 +0000 (10:17 +0000)]
.

19 years agoMore migration to AC_LIBSOURCES/AC_LIBOBJ.
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.

19 years ago*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 09:41:38 +0000 (09:41 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 09:41:17 +0000 (09:41 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 09:40:56 +0000 (09:40 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Wed, 9 Mar 2005 08:56:50 +0000 (08:56 +0000)]
.

19 years agoDon't include "xalloc.h". It's not used.
Jim Meyering [Wed, 9 Mar 2005 08:54:48 +0000 (08:54 +0000)]
Don't include "xalloc.h".  It's not used.

19 years ago* src/date.c (usage): Redo to match recent documentation changes.
Paul Eggert [Tue, 8 Mar 2005 22:20:24 +0000 (22:20 +0000)]
* src/date.c (usage): Redo to match recent documentation changes.

19 years ago(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.

19 years agoImprove "date invocation" again.
Paul Eggert [Tue, 8 Mar 2005 22:19:54 +0000 (22:19 +0000)]
Improve "date invocation" again.

19 years ago(date invocation): Use an example that makes it
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.

19 years ago*** empty log message ***
Jim Meyering [Sun, 6 Mar 2005 19:34:46 +0000 (19:34 +0000)]
*** empty log message ***

19 years agoFactor out column-count processing.
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.

19 years ago*** empty log message ***
Jim Meyering [Sun, 6 Mar 2005 16:34:40 +0000 (16:34 +0000)]
*** empty log message ***

19 years agoRemove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:34:01 +0000 (16:34 +0000)]
Remove `register' keyword.

19 years agoRemove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:33:20 +0000 (16:33 +0000)]
Remove `register' keyword.

19 years agoRemove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:31:51 +0000 (16:31 +0000)]
Remove `register' keyword.

19 years agoRemove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:30:45 +0000 (16:30 +0000)]
Remove `register' keyword.

19 years agoRemove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:26:38 +0000 (16:26 +0000)]
Remove `register' keyword.

19 years agoRemove `register' keyword.
Jim Meyering [Sun, 6 Mar 2005 16:25:26 +0000 (16:25 +0000)]
Remove `register' keyword.

19 years agoRemove register keyword.
Jim Meyering [Sun, 6 Mar 2005 16:23:27 +0000 (16:23 +0000)]
Remove register keyword.

19 years agoRemove register keyword.
Jim Meyering [Sun, 6 Mar 2005 16:20:43 +0000 (16:20 +0000)]
Remove register keyword.

19 years agoRemove register keyword.
Jim Meyering [Sun, 6 Mar 2005 16:19:44 +0000 (16:19 +0000)]
Remove register keyword.

19 years agoRemove workaround for nanosleep bug in Linux kernel 2.6.8 or thereabouts.
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.

19 years ago.
Jim Meyering [Tue, 1 Mar 2005 20:50:35 +0000 (20:50 +0000)]
.

19 years ago.
Jim Meyering [Tue, 1 Mar 2005 20:27:24 +0000 (20:27 +0000)]
.

19 years ago* src/Makefile.am (nanosec_libs): Remove $(LIB_XANOSLEEP).
Paul Eggert [Tue, 1 Mar 2005 17:29:12 +0000 (17:29 +0000)]
* src/Makefile.am (nanosec_libs): Remove $(LIB_XANOSLEEP).

19 years ago(nanosec_libs): Remove $(LIB_XANOSLEEP); no longer needed.
Paul Eggert [Tue, 1 Mar 2005 17:28:49 +0000 (17:28 +0000)]
(nanosec_libs): Remove $(LIB_XANOSLEEP); no longer needed.

19 years ago* xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
Paul Eggert [Tue, 1 Mar 2005 17:26:29 +0000 (17:26 +0000)]
* xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
to detect nanosleep bug.

19 years ago(gl_XNANOSLEEP): Remove configuration attempting
Paul Eggert [Tue, 1 Mar 2005 17:26:16 +0000 (17:26 +0000)]
(gl_XNANOSLEEP): Remove configuration attempting
to detect nanosleep bug.

19 years agoDon't include gethrxtime.h or xtime.h.
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.

19 years ago*** empty log message ***
Jim Meyering [Tue, 1 Mar 2005 12:27:59 +0000 (12:27 +0000)]
*** empty log message ***

19 years ago(copy_internal): Change test of source type from !S_ISREG to S_ISLNK.
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.

19 years ago*** empty log message ***
Jim Meyering [Mon, 28 Feb 2005 10:19:22 +0000 (10:19 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Mon, 28 Feb 2005 10:18:32 +0000 (10:18 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Mon, 28 Feb 2005 10:03:02 +0000 (10:03 +0000)]
*** empty log message ***

19 years ago(xnanosleep): Work around bug in Linux-2.6.8.1's
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.

19 years agoRegenerate.
Paul Eggert [Sat, 26 Feb 2005 07:42:19 +0000 (07:42 +0000)]
Regenerate.

19 years ago* vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Correct the test for
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.

19 years ago(VASNPRINTF) [!USE_SNPRINTF]: Correct the test for
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.

19 years agoSync from gnulib.
Paul Eggert [Sat, 26 Feb 2005 07:31:20 +0000 (07:31 +0000)]
Sync from gnulib.

19 years ago* coreutils.texi: Adjust to match current strftime.c.
Paul Eggert [Thu, 24 Feb 2005 00:28:16 +0000 (00:28 +0000)]
* coreutils.texi: Adjust to match current strftime.c.

19 years ago(Time directives): Say that %k, %l, and %P are
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.

19 years agostrftime.c cleanup to handle outlandish years.
Paul Eggert [Thu, 24 Feb 2005 00:27:17 +0000 (00:27 +0000)]
strftime.c cleanup to handle outlandish years.

19 years agoInclude <stdbool.h>. Use bool where appropriate, instead of int.
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.

19 years ago(gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's change.
Jim Meyering [Wed, 23 Feb 2005 23:16:59 +0000 (23:16 +0000)]
(gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's change.

19 years ago*** empty log message ***
Jim Meyering [Wed, 23 Feb 2005 13:53:22 +0000 (13:53 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Tue, 22 Feb 2005 14:31:29 +0000 (14:31 +0000)]
*** empty log message ***

19 years ago(gl_USE_SYSTEM_EXTENSIONS): Fix typo: s/ifndef/ifdef/.
Jim Meyering [Tue, 22 Feb 2005 14:31:26 +0000 (14:31 +0000)]
(gl_USE_SYSTEM_EXTENSIONS): Fix typo: s/ifndef/ifdef/.

19 years ago*** empty log message ***
Jim Meyering [Tue, 22 Feb 2005 07:50:20 +0000 (07:50 +0000)]
*** empty log message ***

19 years ago(gl_PREREQ): Require gl_STRIPSLASH and gl_LINEBUFFER.
Jim Meyering [Tue, 22 Feb 2005 07:50:16 +0000 (07:50 +0000)]
(gl_PREREQ): Require gl_STRIPSLASH and gl_LINEBUFFER.

19 years agoRegenerate.
Paul Eggert [Tue, 22 Feb 2005 07:21:57 +0000 (07:21 +0000)]
Regenerate.

19 years agoFix clock_gettime library access problem on recent GNU/Linux systems.
Paul Eggert [Tue, 22 Feb 2005 07:19:43 +0000 (07:19 +0000)]
Fix clock_gettime library access problem on recent GNU/Linux systems.

19 years ago(dd_LDADD, shred_LDADD): Add $(LIB_GETHRXTIME).
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.

19 years ago(gl_PREREQ): Require gl_XNANOSLEEP.
Paul Eggert [Tue, 22 Feb 2005 07:09:37 +0000 (07:09 +0000)]
(gl_PREREQ): Require gl_XNANOSLEEP.

19 years ago(gl_PREREQ_GETHRXTIME): Require gl_CLOCK_TIME,
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.

19 years ago(libfetish_a_SOURCES): Remove xnanosleep.c,
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.

19 years agoInitial revision.
Paul Eggert [Tue, 22 Feb 2005 07:06:47 +0000 (07:06 +0000)]
Initial revision.

19 years agoRegenerate.
Paul Eggert [Mon, 21 Feb 2005 08:26:21 +0000 (08:26 +0000)]
Regenerate.

19 years agoDescribe recent changes to use realtime clocks if available,
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.

19 years ago(time): Remove obsolete decl.
Paul Eggert [Mon, 21 Feb 2005 08:17:00 +0000 (08:17 +0000)]
(time): Remove obsolete decl.
(main): Gettime now returns void.

19 years agoInclude gethrxtime.h.
Paul Eggert [Mon, 21 Feb 2005 08:15:45 +0000 (08:15 +0000)]
Include gethrxtime.h.
(isaac_seed): Use gethrxtime rather than a mishmash.

19 years ago(time): Remove obsolete decl.
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.

19 years agoInclude gethrxtime.h, xtime.h.
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.

19 years ago(main): gettime now returns void.
Paul Eggert [Mon, 21 Feb 2005 08:14:13 +0000 (08:14 +0000)]
(main): gettime now returns void.

19 years ago(dd_LDADD, shred_LDADD, nanosec_libs):
Paul Eggert [Mon, 21 Feb 2005 08:13:12 +0000 (08:13 +0000)]
(dd_LDADD, shred_LDADD, nanosec_libs):
Remove $(LIB_CLOCK_GETTIME).  These functions now use
gethrxtime instead.

19 years ago(gl_PREREQ): Require gl_GETHRXTIME.
Paul Eggert [Mon, 21 Feb 2005 08:12:37 +0000 (08:12 +0000)]
(gl_PREREQ): Require gl_GETHRXTIME.
Require gl_STRIPSLASH and gl_LINEBUFFER.

19 years ago(gl_MACROS): Don't check for gethrtime.
Paul Eggert [Mon, 21 Feb 2005 08:11:54 +0000 (08:11 +0000)]
(gl_MACROS): Don't check for gethrtime.

19 years ago(gl_GETTIME): Check for nanotime.
Paul Eggert [Mon, 21 Feb 2005 08:11:19 +0000 (08:11 +0000)]
(gl_GETTIME): Check for nanotime.

19 years agoInclude xtime.h and gethrxtime.h, not xalloc.h.
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.

19 years ago(gettime): Return void, since it always
Paul Eggert [Mon, 21 Feb 2005 08:10:11 +0000 (08:10 +0000)]
(gettime): Return void, since it always
succeeds now.  All uses changed.

19 years ago(gettime) Return void, since it always
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.

19 years ago(get_date): gettime now returns void, not int.
Paul Eggert [Mon, 21 Feb 2005 08:08:38 +0000 (08:08 +0000)]
(get_date): gettime now returns void, not int.

19 years agodd now uses a real-time clock if available, for transfer statistics.
Paul Eggert [Mon, 21 Feb 2005 08:07:28 +0000 (08:07 +0000)]
dd now uses a real-time clock if available, for transfer statistics.

19 years agoInitial revision.
Paul Eggert [Mon, 21 Feb 2005 08:05:49 +0000 (08:05 +0000)]
Initial revision.

19 years agoDon't assume that the current host supports 64-bit integers.
Paul Eggert [Mon, 21 Feb 2005 07:22:49 +0000 (07:22 +0000)]
Don't assume that the current host supports 64-bit integers.

19 years agoDon't assume that the current host supports integers wider than 32
Paul Eggert [Mon, 21 Feb 2005 07:12:37 +0000 (07:12 +0000)]
Don't assume that the current host supports integers wider than 32
bits.  Fix comment typo.

19 years ago(enum RCH_status): Remove trailing comma,
Paul Eggert [Mon, 21 Feb 2005 06:57:45 +0000 (06:57 +0000)]
(enum RCH_status): Remove trailing comma,
as it's not valid in standard C89.

19 years ago*** empty log message ***
Jim Meyering [Sun, 20 Feb 2005 16:33:43 +0000 (16:33 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sun, 20 Feb 2005 16:33:11 +0000 (16:33 +0000)]
*** empty log message ***

19 years ago(xgethostname): Check for ENOMEM, which is
Jim Meyering [Sun, 20 Feb 2005 16:33:03 +0000 (16:33 +0000)]
(xgethostname): Check for ENOMEM, which is
returned by OSX/Darwin if the specified buffer is not large
enough for the hostname.

19 years agoupdate from gnulib
Jim Meyering [Sun, 20 Feb 2005 14:10:28 +0000 (14:10 +0000)]
update from gnulib

19 years ago*** empty log message ***
Jim Meyering [Sun, 20 Feb 2005 12:25:52 +0000 (12:25 +0000)]
*** empty log message ***

19 years ago(libfetish_a_SOURCES): Remove linebuffer.[ch] and stripslash.c.
Jim Meyering [Sun, 20 Feb 2005 12:25:43 +0000 (12:25 +0000)]
(libfetish_a_SOURCES): Remove linebuffer.[ch] and stripslash.c.

19 years ago*** empty log message ***
Jim Meyering [Sun, 20 Feb 2005 12:24:52 +0000 (12:24 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sun, 20 Feb 2005 12:23:33 +0000 (12:23 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Thu, 17 Feb 2005 20:28:22 +0000 (20:28 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Tue, 15 Feb 2005 12:33:35 +0000 (12:33 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Tue, 15 Feb 2005 12:29:47 +0000 (12:29 +0000)]
*** empty log message ***

19 years agoregenerate
Jim Meyering [Tue, 15 Feb 2005 12:29:22 +0000 (12:29 +0000)]
regenerate