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.
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.
Paul Eggert [Mon, 21 Feb 2005 08:12:37 +0000 (08:12 +0000)]
(gl_PREREQ): Require gl_GETHRXTIME.
Require gl_STRIPSLASH and gl_LINEBUFFER.
Paul Eggert [Mon, 21 Feb 2005 08:11:54 +0000 (08:11 +0000)]
(gl_MACROS): Don't check for gethrtime.
Paul Eggert [Mon, 21 Feb 2005 08:11:19 +0000 (08:11 +0000)]
(gl_GETTIME): Check for nanotime.
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:10:11 +0000 (08:10 +0000)]
(gettime): Return void, since it always
succeeds now. All uses changed.
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 [Mon, 21 Feb 2005 08:08:38 +0000 (08:08 +0000)]
(get_date): gettime now returns void, not int.
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.
Paul Eggert [Mon, 21 Feb 2005 08:05:49 +0000 (08:05 +0000)]
Initial revision.
Paul Eggert [Mon, 21 Feb 2005 07:22:49 +0000 (07:22 +0000)]
Don't assume that the current host supports 64-bit integers.
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.
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.
Jim Meyering [Sun, 20 Feb 2005 16:33:43 +0000 (16:33 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 Feb 2005 16:33:11 +0000 (16:33 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 20 Feb 2005 14:10:28 +0000 (14:10 +0000)]
update from gnulib
Jim Meyering [Sun, 20 Feb 2005 12:25:52 +0000 (12:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 Feb 2005 12:25:43 +0000 (12:25 +0000)]
(libfetish_a_SOURCES): Remove linebuffer.[ch] and stripslash.c.
Jim Meyering [Sun, 20 Feb 2005 12:24:52 +0000 (12:24 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 Feb 2005 12:23:33 +0000 (12:23 +0000)]
*** empty log message ***
Jim Meyering [Thu, 17 Feb 2005 20:28:22 +0000 (20:28 +0000)]
.
Jim Meyering [Tue, 15 Feb 2005 12:33:35 +0000 (12:33 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Feb 2005 12:29:47 +0000 (12:29 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Feb 2005 12:29:22 +0000 (12:29 +0000)]
regenerate
Jim Meyering [Tue, 15 Feb 2005 12:23:40 +0000 (12:23 +0000)]
(human_fstype): Add case/definition for S_MAGIC_JFS
so that file systems of type `jfs' are recognized as such.
Jim Meyering [Tue, 15 Feb 2005 09:01:34 +0000 (09:01 +0000)]
regen for XFS
Jim Meyering [Tue, 15 Feb 2005 08:58:05 +0000 (08:58 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Feb 2005 08:57:59 +0000 (08:57 +0000)]
(human_fstype): Add case/definition for S_MAGIC_XFS
so that file systems of type `xfs' are recognized as such.
Jim Meyering [Tue, 15 Feb 2005 08:56:43 +0000 (08:56 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Feb 2005 08:20:55 +0000 (08:20 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Feb 2005 08:20:49 +0000 (08:20 +0000)]
(NZERO) [NZERO == 0]: Undefine and define to 20,
to work around the invalid definition from Darwin 7.7.0.
Jim Meyering [Tue, 15 Feb 2005 08:18:26 +0000 (08:18 +0000)]
*** empty log message ***
Paul Eggert [Mon, 14 Feb 2005 18:15:41 +0000 (18:15 +0000)]
Add James Lemley.
Paul Eggert [Mon, 14 Feb 2005 18:04:43 +0000 (18:04 +0000)]
* src/sort.c (mergefps): Use binary search rather than linear.
Paul Eggert [Mon, 14 Feb 2005 18:04:22 +0000 (18:04 +0000)]
(mergefps): Use binary search rather than linear one
when comparing new line to lines already in main memory.
Jim Meyering [Sun, 13 Feb 2005 08:15:24 +0000 (08:15 +0000)]
.
Jim Meyering [Fri, 11 Feb 2005 20:27:16 +0000 (20:27 +0000)]
(gl_INTTOSTR): Use AC_LIBSOURCES to list the required source files.
Jim Meyering [Fri, 11 Feb 2005 20:27:02 +0000 (20:27 +0000)]
*** empty log message ***
Jim Meyering [Fri, 11 Feb 2005 20:26:57 +0000 (20:26 +0000)]
Remove names of files that are now mentioned in AC_LIBSOURCES
and AC_LIBOBJ uses in inttostr.m4.
(libfetish_a_SOURCES): Remove imaxtostr.c,
offtostr.c, and umaxtostr.c.
(EXTRA_DIST): Remove inttostr.c and inttostr.h.
Jim Meyering [Wed, 9 Feb 2005 09:59:57 +0000 (09:59 +0000)]
*** empty log message ***
Jim Meyering [Wed, 9 Feb 2005 09:59:53 +0000 (09:59 +0000)]
(gl_FUNC_GETCWD_NULL): Use AC_LIBSOURCES to list the required source files.
Jim Meyering [Wed, 9 Feb 2005 09:58:07 +0000 (09:58 +0000)]
.
Jim Meyering [Wed, 9 Feb 2005 09:01:48 +0000 (09:01 +0000)]
*** empty log message ***
Jim Meyering [Wed, 9 Feb 2005 09:01:44 +0000 (09:01 +0000)]
* src/copy.c (valid_options): Add an assertion that
not both hard_link and symbolic_link are set.
Paul Eggert [Tue, 8 Feb 2005 21:39:23 +0000 (21:39 +0000)]
stat -f -c %S.
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 21:38:04 +0000 (21:38 +0000)]
(stat invocation): Document stat -f -c %S (versus %s).
Paul Eggert [Tue, 8 Feb 2005 21:37:26 +0000 (21:37 +0000)]
Document stat -f -c %S, plus changes to default formats.
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 [Tue, 8 Feb 2005 09:56:22 +0000 (09:56 +0000)]
*** empty log message ***
Jim Meyering [Tue, 8 Feb 2005 09:56:15 +0000 (09:56 +0000)]
(libfetish_a_SOURCES): Remove memcasecmp.c and memcasecmp.h.
Jim Meyering [Tue, 8 Feb 2005 09:55:39 +0000 (09:55 +0000)]
Require gl_FUNC_MEMCASECMP.
Jim Meyering [Tue, 8 Feb 2005 09:55:05 +0000 (09:55 +0000)]
*** empty log message ***
Jim Meyering [Tue, 8 Feb 2005 09:55:00 +0000 (09:55 +0000)]
(gl_FUNC_MEMCASECMP): New file and macro.
Jim Meyering [Tue, 8 Feb 2005 09:43:24 +0000 (09:43 +0000)]
remove vestigial `closeout'
Jim Meyering [Mon, 7 Feb 2005 16:54:14 +0000 (16:54 +0000)]
Use AC_REQUIRE where possible, and _ONCE-suffixed versions of macros.
Jim Meyering [Mon, 7 Feb 2005 16:49:58 +0000 (16:49 +0000)]
(vasnprintf) [!USE_SNPRINTF]: Correct the test for integer overflow.
Jim Meyering [Mon, 7 Feb 2005 16:47:49 +0000 (16:47 +0000)]
*** empty log message ***
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.
Jim Meyering [Mon, 7 Feb 2005 16:45:32 +0000 (16:45 +0000)]
*** empty log message ***
Jim Meyering [Mon, 7 Feb 2005 16:45:27 +0000 (16:45 +0000)]
(gl_FUNC_FTS): New file and macro.
Jim Meyering [Mon, 7 Feb 2005 16:45:19 +0000 (16:45 +0000)]
Require gl_FUNC_FTS.
Jim Meyering [Sun, 6 Feb 2005 18:22:47 +0000 (18:22 +0000)]
*** empty log message ***
Jim Meyering [Sun, 6 Feb 2005 18:22:42 +0000 (18:22 +0000)]
(gl_PREREQ_CHDIR_LONG): Depend on gl_FUNC_MEMRCHR.
Jim Meyering [Sun, 6 Feb 2005 18:22:19 +0000 (18:22 +0000)]
(gl_FUNC_MEMRCHR): Check for declaration of memrchr.
Jim Meyering [Sun, 6 Feb 2005 18:19:17 +0000 (18:19 +0000)]
s/MD5 and SHA1 signatures/MD5 and SHA1 checksums/
Paul Eggert [Thu, 3 Feb 2005 21:55:40 +0000 (21:55 +0000)]
Regenerate.
Paul Eggert [Thu, 3 Feb 2005 21:48:35 +0000 (21:48 +0000)]
Define and use new file memrchr.h.
Paul Eggert [Thu, 3 Feb 2005 21:47:43 +0000 (21:47 +0000)]
* memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.