summaryrefslogblamecommitdiff
path: root/src/ipc/msgctl.c
blob: 7c84291c2f63c33ddb9ba42f22148aafef5769f0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                           
#include <sys/msg.h>
#include "syscall.h"
#include "ipc.h"

int msgctl(int q, int cmd, struct msqid_ds *buf)
{
#ifdef __NR_msgctl
	return syscall(SYS_msgctl, q, cmd, buf);
#else
	return syscall(SYS_ipc, IPCOP_msgctl, q, cmd, buf);
#endif
}