summaryrefslogtreecommitdiff
path: root/src/time/clock_nanosleep.c
blob: c5646de39e7c0a4da66ca17e4167136cb4c10ee5 (plain) (blame)
1
2
3
4
5
6
7
8
#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"

int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem)
{
	return syscall4(__NR_clock_nanosleep, clk, flags, (long)req, (long)rem);
}