musl-tcc/src/time/nanosleep.c

8 lines
180 B
C
Raw Permalink Normal View History

2022-03-20 08:48:53 +00:00
#include <time.h>
#include "syscall.h"
int nanosleep(const struct timespec *req, struct timespec *rem)
{
return __syscall_ret(-__clock_nanosleep(CLOCK_REALTIME, 0, req, rem));
}