summaryrefslogtreecommitdiff
path: root/lib/xnanosleep.c
AgeCommit message (Collapse)Author
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