summaryrefslogtreecommitdiff
path: root/lib/nanosleep.c
AgeCommit message (Collapse)Author
2005-04-09(rpl_nanosleep): Include "timespec.h" before macrosPaul Eggert
that might redefine system include files. (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro. (my_usleep): Use NULL rather than (void *) 0. (rpl_nanosleep) [!defined SA_NOCLDSTOP]: Use siginterrupt to specify that system calls should be interrupted. (rpl_nanosleep): Move initialization of suspended closer to call of my_usleep.
2004-08-02nanosleep.c (errno): Remove decl; we now assume C89 or better.Paul Eggert
Include stdbool.h. (rpl_nanosleep): Usee bool for booleans.
2004-04-20(suspended): Change its type from int to sig_atomic_t volatile.Jim Meyering
(first_call): Make it private to rpl_nanosleep, and have it be zero initially as that's a bit faster. (my_usleep): Round up fractional times instead of truncating them, as this is the usual meaning for 'sleep'.
2002-03-01Reflect renaming: nanosleep.h -> timespec.h.Jim Meyering
2000-07-02(SIGCONT): Define if not already defined.Jim Meyering
2000-03-07tweak indentationJim Meyering
2000-02-10#undef nanosleep.Jim Meyering
(rpl_nanosleep): Rename from nanosleep.
2000-01-18(nanosleep):Jim Meyering
Don't use SA_INTERRUPT to decide whether to call sigaction, as POSIX.1 doesn't require SA_INTERRUPT and some systems (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; it's been part of POSIX.1 since day 1 (in 1988).
2000-01-05Include nanosleep.h.Jim Meyering
Don't include time.h or sys/time.h here.
1999-12-27*** empty log message ***Jim Meyering
1999-12-26*** empty log message ***Jim Meyering
1999-12-26*** empty log message ***Jim Meyering
1999-12-26*** empty log message ***Jim Meyering
1999-12-25*** empty log message ***Jim Meyering