diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-03-10 11:06:50 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-03-10 11:06:50 -0500 |
commit | 11dbbe9fbac33ede053803ebf7193550ec5cfb48 (patch) | |
tree | d92d978a4cfe5dd5a496dfc7b6e52d5e556a4ac4 /src/time | |
parent | c8c4ef7d4404b94483c68b7479eb98b9b09f996c (diff) | |
download | musl-11dbbe9fbac33ede053803ebf7193550ec5cfb48.tar.gz musl-11dbbe9fbac33ede053803ebf7193550ec5cfb48.tar.bz2 musl-11dbbe9fbac33ede053803ebf7193550ec5cfb48.tar.xz musl-11dbbe9fbac33ede053803ebf7193550ec5cfb48.zip |
more cancellation points: tcdrain, clock_nanosleep
Diffstat (limited to 'src/time')
-rw-r--r-- | src/time/clock_nanosleep.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/time/clock_nanosleep.c b/src/time/clock_nanosleep.c index c5646de3..ffb9a8af 100644 --- a/src/time/clock_nanosleep.c +++ b/src/time/clock_nanosleep.c @@ -1,8 +1,13 @@ #define SYSCALL_RETURN_ERRNO #include <time.h> #include "syscall.h" +#include "libc.h" int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem) { - return syscall4(__NR_clock_nanosleep, clk, flags, (long)req, (long)rem); + int ret; + CANCELPT_BEGIN; + ret = syscall4(__NR_clock_nanosleep, clk, flags, (long)req, (long)rem); + CANCELPT_END; + return ret; } |