721e7941b558bc0d93260242fc76bee901894043
[musl] / src / time / clock_nanosleep.c
1 #include <time.h>
2 #include "syscall.h"
3 #include "libc.h"
4
5 int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem)
6 {
7         int ret;
8         CANCELPT_BEGIN;
9         ret = -__syscall(__NR_clock_nanosleep, clk, flags, req, rem);
10         CANCELPT_END;
11         return ret;
12 }