about summary refs log tree commit diff
path: root/src/time/clock_nanosleep.c
blob: ffb9a8af0efb144df2915a4edb71bfd703997739 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"
#include "libc.h"

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