Paul Eggert
2d0c5eefd0
Sync from gnulib.
2005-09-22 06:05:39 +00:00
Paul Eggert
00fdbcc4af
* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
...
declares only 'struct timespec;' (!).
2005-07-01 17:25:56 +00:00
Jim Meyering
116e6fb244
Update FSF postal mail address.
2005-05-14 07:58:06 +00:00
Paul Eggert
09aa89fc35
Include intprops.h.
...
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:25:34 +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
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
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
a86c457f64
Merge from gnulib.
2004-08-07 07:16:54 +00:00
Paul Eggert
126d5f9437
Include limits.h, stdbool.h.
...
(CHAR_BIT): Remove.
(timespec_subtract, xnanosleep): Use bool for booleans.
2004-08-02 23:00:15 +00:00
Jim Meyering
955a2340ea
Don't include xstrtod.h; it's not needed.
2003-11-27 07:42:03 +00:00
Jim Meyering
de261015e8
(timespec_subtract): Don't modify the 2nd arg.
...
Work even if X-Y overflows when subtracting. Make explicit the
assumption that tv_nsec must be in range.
(clock_get_realtime): Remove. All callers changed to invoke gettime,
for simplicity.
(xnanosleep): Check for gettime failure every time.
2003-05-08 09:26:34 +00:00
Jim Meyering
f197628cb2
(clock_get_realtime): Use gettime.c's gettime function,
...
rather than an inferior, open-coded version that would fail on
AIX systems due to clock_gettime failing with errno == ENOSYS.
2003-05-08 06:26:00 +00:00
Jim Meyering
eff5758aaf
Don't use `defined' in a #define directive.
2003-03-08 14:26:48 +00:00
Jim Meyering
ff4e2725a7
(initialized): Remove declaration now that it's unused.
2002-10-13 12:23:25 +00:00
Jim Meyering
bd9e754992
There's no need to futz with the rounding mode,
...
since the code should work properly even in the default rounding mode.
(<fenv.h>): Do not include.
(#pragma STDC FENV_ACCESS ON): Remove.
(xnanosleep): Don't futz with rounding state.
2002-10-13 12:22:26 +00:00
Jim Meyering
ec317bd993
(xnanosleep): Return -1 on failure, not 1, for consistency with nanosleep.
...
Check errno after nanosleep returns -1.
2002-09-15 06:52:29 +00:00
Jim Meyering
079eb6b3d1
New files, factored out of sleep.c.
2002-09-11 11:34:20 +00:00