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

int msgsnd(int q, const void *m, size_t len, int flag)
{
#ifndef SYS_ipc
	return syscall_cp(SYS_msgsnd, q, m, len, flag);
#else
	return syscall_cp(SYS_ipc, IPCOP_msgsnd, q, len, flag, m);
#endif
}