2 asmlinkage long sys_recv(int fd, void __user *ubuf, size_t size,
7 #include <sys/socket.h>
11 struct syscallentry syscall_recv
= {
17 .arg2type
= ARG_ADDRESS
,
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
},
35 * SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, ubuf, size_t, size,
36 unsigned, flags, struct sockaddr __user *, addr,
37 int __user *, addr_len)
39 struct syscallentry syscall_recvfrom
= {
45 .arg2type
= ARG_ADDRESS
,
52 .values
= { MSG_OOB
, MSG_PEEK
, MSG_DONTROUTE
, MSG_CTRUNC
,
53 MSG_PROBE
, MSG_TRUNC
, MSG_DONTWAIT
, MSG_EOR
,
54 MSG_WAITALL
, MSG_FIN
, MSG_SYN
, MSG_CONFIRM
,
55 MSG_RST
, MSG_ERRQUEUE
, MSG_NOSIGNAL
, MSG_MORE
,
56 MSG_WAITFORONE
, MSG_FASTOPEN
, MSG_CMSG_CLOEXEC
, MSG_CMSG_COMPAT
},
59 .arg5type
= ARG_SOCKADDR
,
60 .arg6name
= "addr_len",
61 .arg6type
= ARG_SOCKADDRLEN
,
67 * SYSCALL_DEFINE3(recvmsg, int, fd, struct msghdr __user *, msg, unsigned int, flags)
69 struct syscallentry syscall_recvmsg
= {
75 .arg2type
= ARG_ADDRESS
,
80 .values
= { MSG_OOB
, MSG_PEEK
, MSG_DONTROUTE
, MSG_CTRUNC
,
81 MSG_PROBE
, MSG_TRUNC
, MSG_DONTWAIT
, MSG_EOR
,
82 MSG_WAITALL
, MSG_FIN
, MSG_SYN
, MSG_CONFIRM
,
83 MSG_RST
, MSG_ERRQUEUE
, MSG_NOSIGNAL
, MSG_MORE
,
84 MSG_WAITFORONE
, MSG_CMSG_CLOEXEC
, MSG_FASTOPEN
, MSG_CMSG_COMPAT
},
90 * SYSCALL_DEFINE5(recvmmsg, int, fd, struct mmsghdr __user *, mmsg,
91 unsigned int, vlen, unsigned int, flags,
92 struct timespec __user *, timeout)
94 struct syscallentry syscall_recvmmsg
= {
100 .arg2type
= ARG_ADDRESS
,
104 .arg4type
= ARG_LIST
,
107 .values
= { MSG_OOB
, MSG_PEEK
, MSG_DONTROUTE
, MSG_CTRUNC
,
108 MSG_PROBE
, MSG_TRUNC
, MSG_DONTWAIT
, MSG_EOR
,
109 MSG_WAITALL
, MSG_FIN
, MSG_SYN
, MSG_CONFIRM
,
110 MSG_RST
, MSG_ERRQUEUE
, MSG_NOSIGNAL
, MSG_MORE
,
111 MSG_WAITFORONE
, MSG_CMSG_CLOEXEC
, MSG_FASTOPEN
, MSG_CMSG_COMPAT
},
113 .arg5name
= "timeout",
114 .arg5type
= ARG_ADDRESS
,