merge setuid variants
[trinity.git] / syscalls / recvmmsg.c
blob3bd5be8eb924105587441a649b2a6b2dca95cb66
1 /*
2 * SYSCALL_DEFINE5(recvmmsg, int, fd, struct mmsghdr __user *, mmsg,
3 unsigned int, vlen, unsigned int, flags,
4 struct timespec __user *, timeout)
5 */
7 #include <sys/socket.h>
8 #include "compat.h"
9 #include "sanitise.h"
11 struct syscallentry syscall_recvmmsg = {
12 .name = "recvmmsg",
13 .num_args = 5,
14 .arg1name = "fd",
15 .arg1type = ARG_FD,
16 .arg2name = "mmsg",
17 .arg2type = ARG_ADDRESS,
18 .arg3name = "vlen",
19 .arg3type = ARG_LEN,
20 .arg4name = "flags",
21 .arg4type = ARG_LIST,
22 .arg4list = {
23 .num = 20,
24 .values = { MSG_OOB, MSG_PEEK, MSG_DONTROUTE, MSG_CTRUNC,
25 MSG_PROBE, MSG_TRUNC, MSG_DONTWAIT, MSG_EOR,
26 MSG_WAITALL, MSG_FIN, MSG_SYN, MSG_CONFIRM,
27 MSG_RST, MSG_ERRQUEUE, MSG_NOSIGNAL, MSG_MORE,
28 MSG_WAITFORONE, MSG_CMSG_CLOEXEC, MSG_FASTOPEN, MSG_CMSG_COMPAT },
30 .arg5name = "timeout",
31 .arg5type = ARG_ADDRESS,
32 .flags = NEED_ALARM,