Paul Eggert
3ecf3fd1e8
(gl_XNANOSLEEP): Remove configuration attempting
...
to detect nanosleep bug.
2005-03-01 17:26:16 +00:00
Paul Eggert
23adaf0bed
Don't include gethrxtime.h or xtime.h.
...
(NANOSLEEP_BUG_WORKAROUND): Remove.
(xnanosleep): Remove the workaround.
2005-03-01 17:25:53 +00:00
Jim Meyering
e9551e2d62
*** empty log message ***
2005-03-01 12:27:59 +00:00
Jim Meyering
4303f04545
(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 .
2005-03-01 12:27:47 +00:00
Jim Meyering
5b67698846
*** empty log message ***
2005-02-28 10:19:22 +00:00
Jim Meyering
9416c94648
*** empty log message ***
2005-02-28 10:18:32 +00:00
Jim Meyering
79ddee707c
*** empty log message ***
2005-02-28 10:03:02 +00:00
Jim Meyering
db042d2022
(xnanosleep): Work around bug in Linux-2.6.8.1's
...
nanosleep whereby it fails without setting errno upon being resumed
after being suspended.
2005-02-28 10:02:58 +00:00
Paul Eggert
9ba7355604
Regenerate.
2005-02-26 07:42:19 +00:00
Paul Eggert
d37169d9c4
* vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Correct the test for
...
integer overflow again.
2005-02-26 07:38:14 +00:00
Paul Eggert
c8d8d339d3
(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.
2005-02-26 07:37:49 +00:00
Paul Eggert
f93ba58756
Sync from gnulib.
2005-02-26 07:31:20 +00:00
Paul Eggert
641ef33fac
* coreutils.texi: Adjust to match current strftime.c.
2005-02-24 00:28:16 +00:00
Paul Eggert
b2265ebeea
(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.
2005-02-24 00:27:44 +00:00
Paul Eggert
157fdac571
strftime.c cleanup to handle outlandish years.
2005-02-24 00:27:17 +00:00
Paul Eggert
3477139eaa
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.
2005-02-24 00:26:55 +00:00
Jim Meyering
f49bb33cff
(gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's change.
2005-02-23 23:16:59 +00:00
Jim Meyering
3ef813f9bc
*** empty log message ***
2005-02-23 13:53:22 +00:00
Jim Meyering
f0e6764404
*** empty log message ***
2005-02-22 14:31:29 +00:00
Jim Meyering
8574504447
(gl_USE_SYSTEM_EXTENSIONS): Fix typo: s/ifndef/ifdef/.
2005-02-22 14:31:26 +00:00
Jim Meyering
c3d9ba45f3
*** empty log message ***
2005-02-22 07:50:20 +00:00
Jim Meyering
8dc2142b92
(gl_PREREQ): Require gl_STRIPSLASH and gl_LINEBUFFER.
2005-02-22 07:50:16 +00:00
Paul Eggert
5677f3f7d9
Regenerate.
2005-02-22 07:21:57 +00:00
Paul Eggert
ff35a3ca2b
Fix clock_gettime library access problem on recent GNU/Linux systems.
2005-02-22 07:19:43 +00:00
Paul Eggert
df066e2695
(dd_LDADD, shred_LDADD): Add $(LIB_GETHRXTIME).
...
(nanosec_libs): Add $(LIB_XNANOSLEEP). Needed for newer GNU/Linux
hosts with clock_gettime.
2005-02-22 07:10:07 +00:00
Paul Eggert
dcf1114082
(gl_PREREQ): Require gl_XNANOSLEEP.
2005-02-22 07:09:37 +00:00
Paul Eggert
55c154ed7d
(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.
2005-02-22 07:09:13 +00:00
Paul Eggert
ba8ad9a1e6
(libfetish_a_SOURCES): Remove xnanosleep.c,
...
xnanosleep.h; now done by ../m4/xnanosleep.m4 automatically.
2005-02-22 07:08:43 +00:00
Paul Eggert
0e1b33afd3
Initial revision.
2005-02-22 07:06:47 +00:00
Paul Eggert
7244117ba2
Regenerate.
2005-02-21 08:26:21 +00:00
Paul Eggert
10ca18d561
Describe recent changes to use realtime clocks if available,
...
when appropriate; also, gettime now returns void.
2005-02-21 08:20:15 +00:00
Paul Eggert
3178b01865
(time): Remove obsolete decl.
...
(main): Gettime now returns void.
2005-02-21 08:17:00 +00:00
Paul Eggert
2ec39c3ada
Include gethrxtime.h.
...
(isaac_seed): Use gethrxtime rather than a mishmash.
2005-02-21 08:15:45 +00:00
Paul Eggert
70c98ff92d
(time): Remove obsolete decl.
...
(get_current_time): gettimeofday always returns 0, so don't
check its result.
2005-02-21 08:15:10 +00:00
Paul Eggert
c339d6843e
Include gethrxtime.h, xtime.h.
...
(start_time): Now of type xtime_t, not struct timespec.
(print_stats, main): Use gethrxtime rather than gettime.
2005-02-21 08:14:40 +00:00
Paul Eggert
1b29344371
(main): gettime now returns void.
2005-02-21 08:14:13 +00:00
Paul Eggert
7fd8ef9cc1
(dd_LDADD, shred_LDADD, nanosec_libs):
...
Remove $(LIB_CLOCK_GETTIME). These functions now use
gethrxtime instead.
2005-02-21 08:13:12 +00:00
Paul Eggert
e26599af0b
(gl_PREREQ): Require gl_GETHRXTIME.
...
Require gl_STRIPSLASH and gl_LINEBUFFER.
2005-02-21 08:12:37 +00:00
Paul Eggert
d7da695796
(gl_MACROS): Don't check for gethrtime.
2005-02-21 08:11:54 +00:00
Paul Eggert
2d229b0a9e
(gl_GETTIME): Check for nanotime.
2005-02-21 08:11:19 +00:00
Paul Eggert
13aa6d899c
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.
2005-02-21 08:10:47 +00:00
Paul Eggert
14d0416864
(gettime): Return void, since it always
...
succeeds now. All uses changed.
2005-02-21 08:10:11 +00:00
Paul Eggert
dfefe8e5de
(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.
2005-02-21 08:09:30 +00:00
Paul Eggert
fa5269cf6f
(get_date): gettime now returns void, not int.
2005-02-21 08:08:38 +00:00
Paul Eggert
2df160349e
dd now uses a real-time clock if available, for transfer statistics.
2005-02-21 08:07:28 +00:00
Paul Eggert
9df4b1d7e4
Initial revision.
2005-02-21 08:05:49 +00:00
Paul Eggert
80cc962bd5
Don't assume that the current host supports 64-bit integers.
2005-02-21 07:22:49 +00:00
Paul Eggert
17103c0976
Don't assume that the current host supports integers wider than 32
...
bits. Fix comment typo.
2005-02-21 07:12:37 +00:00
Paul Eggert
e0cc736489
(enum RCH_status): Remove trailing comma,
...
as it's not valid in standard C89.
2005-02-21 06:57:45 +00:00
Jim Meyering
696a24b227
*** empty log message ***
2005-02-20 16:33:43 +00:00