repo.or.cz
/
trinity.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
move_pages: just use calloc
[trinity.git]
/
syscalls
/
shutdown.c
blob
374ca1d0f194eee1e80d5e8342209971a38326ce
1
/*
2
* SYSCALL_DEFINE2(shutdown, int, fd, int, how)
3
*/
4
#include <sys/socket.h>
5
#include
"sanitise.h"
6
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
},
17
},
18
.
flags
=
NEED_ALARM
,
19
};