note a leak that needs fixing eventually
[trinity.git] / syscalls / msgsnd.c
blob7d16aa7a40523b860f5459be777ce3a0956ff995
1 /*
2 * SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, int, msgflg)
3 */
4 #include <sys/types.h>
5 #include <linux/msg.h>
6 #include "compat.h"
7 #include "sanitise.h"
9 struct syscallentry syscall_msgsnd = {
10 .name = "msgsnd",
11 .num_args = 4,
12 .arg1name = "msqid",
13 .arg2name = "msgp",
14 .arg2type = ARG_ADDRESS,
15 .arg3name = "msgsz",
16 .arg3type = ARG_LEN,
17 .arg4name = "msgflg",
18 .arg4type = ARG_LIST,
19 .arg4list = {
20 .num = 4,
21 .values = { MSG_NOERROR, MSG_EXCEPT, MSG_COPY, IPC_NOWAIT },