summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-02-21 08:20:15 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-02-21 08:20:15 +0000
commit10ca18d561e8ad7d33927499368c68df0b5a154b (patch)
treeb36642e4cea6606e0f9ef840d5d295bc0455cf11
parent3178b01865775a0428941986d40f9e9b29118004 (diff)
downloadcoreutils-10ca18d561e8ad7d33927499368c68df0b5a154b.tar.xz
Describe recent changes to use realtime clocks if available,
when appropriate; also, gettime now returns void.
-rw-r--r--ChangeLog25
-rw-r--r--lib/ChangeLog16
-rw-r--r--m4/ChangeLog7
3 files changed, 47 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f09e1b2a1..ea85b978d 100644
--- 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.
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 79032d570..5fa2f782e 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -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
diff --git a/m4/ChangeLog b/m4/ChangeLog
index a9faafab2..0e3804ce6 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -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.