projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
more cancellation points: tcdrain, clock_nanosleep
[oweals/musl.git]
/
src
/
time
/
clock_nanosleep.c
1
#define SYSCALL_RETURN_ERRNO
2
#include <time.h>
3
#include "syscall.h"
4
#include "libc.h"
5
6
int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem)
7
{
8
int ret;
9
CANCELPT_BEGIN;
10
ret = syscall4(__NR_clock_nanosleep, clk, flags, (long)req, (long)rem);
11
CANCELPT_END;
12
return ret;
13
}