add new renameat2 syscall
[trinity.git] / syscalls / msgctl.c
blob7e837929dd98db57cc4aae13ab77a4f479943524
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"
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 },
20 .arg3name = "buf",
21 .arg3type = ARG_ADDRESS,