remove [64] cleanup TODO
[trinity.git] / syscalls / recvfrom.c
blob767c34e7f9ee500ffd1a19c68f5385d186c6e633
1 /*
2 * SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, ubuf, size_t, size,
3 unsigned, flags, struct sockaddr __user *, addr,
4 int __user *, addr_len)
5 */
6 #include <sys/types.h>
7 #include <sys/socket.h>
8 #include "compat.h"
9 #include "sanitise.h"
11 struct syscallentry syscall_recvfrom = {
12 .name = "recvfrom",
13 .num_args = 6,
14 .arg1name = "fd",
15 .arg1type = ARG_FD,
16 .arg2name = "ubuf",
17 .arg2type = ARG_ADDRESS,
18 .arg3name = "size",
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_FASTOPEN, MSG_CMSG_CLOEXEC, MSG_CMSG_COMPAT },
30 .arg5name = "addr",
31 .arg5type = ARG_SOCKADDR,
32 .arg6name = "addr_len",
33 .arg6type = ARG_SOCKADDRLEN,
34 .flags = NEED_ALARM,