summaryrefslogtreecommitdiff
path: root/lib/xnanosleep.c
AgeCommit message (Collapse)Author
2005-09-22Sync from gnulib.Paul Eggert
2005-07-01* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>Paul Eggert
declares only 'struct timespec;' (!).
2005-05-14Update FSF postal mail address.Jim Meyering
2005-03-09Include intprops.h.Paul Eggert
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-01Don't include gethrxtime.h or xtime.h.Paul Eggert
(NANOSLEEP_BUG_WORKAROUND): Remove. (xnanosleep): Remove the workaround.
2005-02-28(xnanosleep): Work around bug in Linux-2.6.8.1'sJim Meyering
nanosleep whereby it fails without setting errno upon being resumed after being suspended.
2005-02-21Include xtime.h and gethrxtime.h, not xalloc.h.Paul Eggert
(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.
2004-08-07Merge from gnulib.Paul Eggert
2004-08-02Include limits.h, stdbool.h.Paul Eggert
(CHAR_BIT): Remove. (timespec_subtract, xnanosleep): Use bool for booleans.
2003-11-27Don't include xstrtod.h; it's not needed.Jim Meyering
2003-05-08(timespec_subtract): Don't modify the 2nd arg.Jim Meyering
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(clock_get_realtime): Use gettime.c's gettime function,Jim Meyering
rather than an inferior, open-coded version that would fail on AIX systems due to clock_gettime failing with errno == ENOSYS.
2003-03-08Don't use `defined' in a #define directive.Jim Meyering
2002-10-13(initialized): Remove declaration now that it's unused.Jim Meyering
2002-10-13There's no need to futz with the rounding mode,Jim Meyering
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-09-15(xnanosleep): Return -1 on failure, not 1, for consistency with nanosleep.Jim Meyering
Check errno after nanosleep returns -1.
2002-09-11New files, factored out of sleep.c.Jim Meyering