add new renameat2 syscall
[trinity.git] / syscalls / timerfd_settime.c
blob9bee7501933867430d552a1907eef757195d5536
1 /*
2 * SYSCALL_DEFINE4(timerfd_settime, int, ufd, int, flags,
3 const struct itimerspec __user *, utmr,
4 struct itimerspec __user *, otmr)
5 */
6 #include "sanitise.h"
8 #define TFD_CLOEXEC 02000000
9 #define TFD_NONBLOCK 04000
11 struct syscallentry syscall_timerfd_settime = {
12 .name = "timerfd_settime",
13 .num_args = 4,
14 .arg1name = "ufd",
15 .arg1type = ARG_FD,
16 .arg2name = "flags",
17 .arg2type = ARG_LIST,
18 .arg2list = {
19 .num = 2,
20 .values = { TFD_NONBLOCK, TFD_CLOEXEC },
22 .arg3name = "utmr",
23 .arg3type = ARG_ADDRESS,
24 .arg4name = "otmr",
25 .arg4type = ARG_ADDRESS,
26 .flags = NEED_ALARM,