diff options
Diffstat (limited to 'src/time/clock_nanosleep.c')
-rw-r--r-- | src/time/clock_nanosleep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/time/clock_nanosleep.c b/src/time/clock_nanosleep.c new file mode 100644 index 00000000..c5646de3 --- /dev/null +++ b/src/time/clock_nanosleep.c @@ -0,0 +1,8 @@ +#define SYSCALL_RETURN_ERRNO +#include <time.h> +#include "syscall.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); +} |