summaryrefslogtreecommitdiff
path: root/lib
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 /lib
parent3178b01865775a0428941986d40f9e9b29118004 (diff)
downloadcoreutils-10ca18d561e8ad7d33927499368c68df0b5a154b.tar.xz
Describe recent changes to use realtime clocks if available,
when appropriate; also, gettime now returns void.
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog16
1 files changed, 16 insertions, 0 deletions
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