Commit Graph
20245 Commits
Author SHA1 Message Date
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
Jim Meyering 2b972d584b *** empty log message *** 2005-02-20 16:33:11 +00:00
Jim Meyering 84c616fa90 (xgethostname): Check for ENOMEM, which is
returned by OSX/Darwin if the specified buffer is not large
enough for the hostname.
2005-02-20 16:33:03 +00:00
Jim Meyering c922e787b4 update from gnulib 2005-02-20 14:10:28 +00:00
Jim Meyering 7849e2b8e0 *** empty log message *** 2005-02-20 12:25:52 +00:00
Jim Meyering 0acdf67e2d (libfetish_a_SOURCES): Remove linebuffer.[ch] and stripslash.c. 2005-02-20 12:25:43 +00:00
Jim Meyering 173bc2ea67 *** empty log message *** 2005-02-20 12:24:52 +00:00
Jim Meyering f78bf85485 *** empty log message *** 2005-02-20 12:23:33 +00:00
Jim Meyering 384e3830bc . 2005-02-17 20:28:22 +00:00
Jim Meyering b32308597f *** empty log message *** 2005-02-15 12:33:35 +00:00
Jim Meyering bc9a87005f *** empty log message *** 2005-02-15 12:29:47 +00:00
Jim Meyering 4e49c3974f regenerate 2005-02-15 12:29:22 +00:00
Jim Meyering 3695d0212a (human_fstype): Add case/definition for S_MAGIC_JFS
so that file systems of type `jfs' are recognized as such.
2005-02-15 12:23:40 +00:00
Jim Meyering b353489b18 regen for XFS 2005-02-15 09:01:34 +00:00