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
add new renameat2 syscall
[trinity.git]
/
syscalls
/
msgctl.c
blob
7e837929dd98db57cc4aae13ab77a4f479943524
1
/*
2
* SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf)
3
*/
4
#include <sys/types.h>
5
#include <sys/ipc.h>
6
#include <sys/msg.h>
7
#include
"sanitise.h"
8
9
struct
syscallentry syscall_msgctl
= {
10
.
name
=
"msgctl"
,
11
.
num_args
=
3
,
12
.
arg1name
=
"msqid"
,
13
.
arg2name
=
"cmd"
,
14
.
arg2type
=
ARG_OP
,
15
.
arg2list
= {
16
.
num
=
6
,
17
.
values
= {
IPC_STAT
,
IPC_SET
,
IPC_RMID
,
IPC_INFO
,
18
MSG_INFO
,
MSG_STAT
},
19
},
20
.
arg3name
=
"buf"
,
21
.
arg3type
=
ARG_ADDRESS
,
22
};