merge newfstat variants
[trinity.git] / syscalls / shutdown.c
blob374ca1d0f194eee1e80d5e8342209971a38326ce
1 /*
2 * SYSCALL_DEFINE2(shutdown, int, fd, int, how)
3 */
4 #include <sys/socket.h>
5 #include "sanitise.h"
7 struct syscallentry syscall_shutdown = {
8 .name = "shutdown",
9 .num_args = 2,
10 .arg1name = "fd",
11 .arg1type = ARG_FD,
12 .arg2name = "how",
13 .arg2type = ARG_LIST,
14 .arg2list = {
15 .num = 3,
16 .values = { SHUT_RD, SHUT_WR, SHUT_RDWR },
18 .flags = NEED_ALARM,