diff options
Diffstat (limited to 'lib/libc/time/clock_nanosleep.c')
| -rw-r--r-- | lib/libc/time/clock_nanosleep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/time/clock_nanosleep.c b/lib/libc/time/clock_nanosleep.c new file mode 100644 index 00000000..63190d06 --- /dev/null +++ b/lib/libc/time/clock_nanosleep.c @@ -0,0 +1,8 @@ +#include <time.h> +#include <syscall.h> + +int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, + struct timespec *rmtp) +{ + return __syscall(nanosleep, clock_id, flags, rqtp, rmtp) * -1; +} |
