]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Describe recent changes to use realtime clocks if available,
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Feb 2005 08:20:15 +0000 (08:20 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Feb 2005 08:20:15 +0000 (08:20 +0000)
when appropriate; also, gettime now returns void.

ChangeLog
lib/ChangeLog
m4/ChangeLog

index f09e1b2a1a11a2681813b187d449e56a3eb32c11..ea85b978d5b0d6d8eeb483281ac03510b13d2ec4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,30 @@
-2005-02-15  Jim Meyering  <jim@meyering.net>
+2005-02-20  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Version 5.3.1.
 
+       * NEWS: Describe user-visible change to dd.
+       * src/Makefile.am (dd_LDADD, shred_LDADD, nanosec_libs):
+       Remove $(LIB_CLOCK_GETTIME).  These functions now use
+       gethrxtime instead.
+       * src/dd.c: Include gethrxtime.h, xtime.h.
+       (start_time): Now of type xtime_t, not struct timespec.
+       (print_stats, main): Use gethrxtime rather than gettime.
+       * src/ls.c (time): Remove obsolete decl.
+       (get_current_time): gettimeofday always returns 0, so don't
+       check its result.
+       * src/shred.c: Include gethrxtime.h.
+       (isaac_seed): Use gethrxtime rather than a mishmash.
+       * src/touch.c (time): Remove obsolete decl.
+
+       * tests/misc/split-fail: Don't assume that the current host
+       supports integers wider than 32 bits.  Fix comment typo.
+       * tests/od/x8: Likewise.
+
+       * src/chown-core.c (enum RCH_status): Remove trailing comma,
+       as it's not valid in standard C89.
+
+2005-02-15  Jim Meyering  <jim@meyering.net>
+
        * src/stat.c (human_fstype): Add case/definition for S_MAGIC_XFS
        so that file systems of type `xfs' are recognized as such.
        * src/fs.h: Regenerate.
index 79032d570e62b64604fe15a3fee3ad5fd7a477bc..5fa2f782ec24982b5bdfee4c9ef8c959ea2cf6c3 100644 (file)
@@ -1,3 +1,19 @@
+2005-02-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * gethrxtime.h, gethrxtime.c, xtime.h: New files.
+       * timespec.h (gettime): Return void, since it always
+       succeeds now.  All uses changed.
+       * gettime.c (gettime) Likewise.
+       [HAVE_NANOTIME]: Prefer nanotime.
+       Assume gettimeofday succeeds, as POSIX requires.
+       Assime time () succeeds, since other code already does.
+       * xnanosleep.c: 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-20  Neil Conway  <neilc@samurai.com>
 
        * xgethostname.c (xgethostname): Check for ENOMEM, which is
index a9faafab2de46e8a44ab7e60be426ee441d44bdc..0e3804ce69306c103651d4d9a07516af21ee00e1 100644 (file)
@@ -1,3 +1,10 @@
+2005-02-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * gethrxtime.m4: New file.
+       * gettime.m4 (gl_GETTIME): Check for nanotime.
+       * jm-macros.m4 (gl_MACROS): Don't check for gethrtime.
+       * prereq.m4 (gl_PREREQ): Require gl_GETHRXTIME.
+
 2005-02-20  Jim Meyering  <jim@meyering.net>
 
        * stripslash.m4: New file.