aboutsummaryrefslogtreecommitdiff
path: root/src/time/nanosleep.c
blob: ab800ae4591beb1115fd79f469291724bd2a9296 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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));
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif