/* * SYSCALL_DEFINE5(msgrcv, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, long, msgtyp, int, msgflg) */ #include #include #include "compat.h" #include "sanitise.h" struct syscallentry syscall_msgrcv = { .name = "msgrcv", .num_args = 5, .arg1name = "msqid", .arg2name = "msgp", .arg2type = ARG_ADDRESS, .arg3name = "msgsz", .arg3type = ARG_LEN, .arg4name = "msgtyp", .arg5name = "msgflg", .arg5type = ARG_LIST, .arg5list = { .num = 4, .values = { MSG_NOERROR, MSG_EXCEPT, MSG_COPY, IPC_NOWAIT }, }, .flags = IGNORE_ENOSYS, }; .