summaryrefslogtreecommitdiff
path: root/src/time/nanosleep.c
blob: bc9f7895fa0878be08bdfc01634eede6cbcf81b1 (plain)
1
2
3
4
5
6
7
#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));
}