summaryrefslogtreecommitdiffstats
path: root/usr/klibc/nanosleep.c
blob: 11412196a5dbe183656ad1800ba489fa4a3e8d82 (plain)
1
2
3
4
5
6
7
8
#include <time.h>
#include <sys/time.h>
#include <sys/syscall.h>

int nanosleep(const struct timespec *request, struct timespec *remain)
{
	return clock_nanosleep(CLOCK_MONOTONIC, 0, request, remain) ? -1 : 0;
}