var scope reduction
[trinity.git] / syscalls / sendto.c
blob04d268e0b314ec344fa8962d78f660a4dee32a78
1 /*
2 * SYSCALL_DEFINE6(sendto, int, fd, void __user *, buff, size_t, len,
3 unsigned, flags, struct sockaddr __user *, addr,
4 int, addr_len)
5 */
7 #include <sys/socket.h>
8 #include "compat.h"
9 #include "sanitise.h"
11 struct syscallentry syscall_sendto = {
12 .name = "sendto",
13 .num_args = 6,
14 .arg1name = "fd",
15 .arg1type = ARG_FD,
16 .arg2name = "buff",
17 .arg2type = ARG_ADDRESS,
18 .arg3name = "len",
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,