summaryrefslogtreecommitdiff
path: root/accel-pppd/triton/timerfd.c
blob: b026258f2e1d9704c6090ef32176d8b2b6470d41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <fcntl.h>
#include <unistd.h>
#include <sys/syscall.h>

#include "timerfd.h"

int timerfd_create (clockid_t __clock_id, int __flags)
{
	return syscall(SYS_timerfd_create, __clock_id, __flags);
}


int timerfd_settime (int __ufd, int __flags,
			    __const struct itimerspec *__utmr,
			    struct itimerspec *__otmr)
{
	return syscall(SYS_timerfd_settime, __ufd, __flags, __utmr, __otmr);
}