summaryrefslogtreecommitdiff
path: root/src/ipc/msgrcv.c
blob: 9d1034b145012cd76e2613d5d7e7f55ab0c3787a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <sys/msg.h>
#include "syscall.h"
#include "ipc.h"

ssize_t msgrcv(int q, void *m, size_t len, long type, int flag)
{
#ifndef SYS_ipc
	return syscall_cp(SYS_msgrcv, q, m, len, type, flag);
#else
	return syscall_cp(SYS_ipc, IPCOP_msgrcv, q, len, flag, ((long[]){ (long)m, type }));
#endif
}