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

int msgget(key_t k, int flag)
{
#ifdef __NR_msgget
	return syscall(SYS_msgget, k, flag);
#else
	return syscall(SYS_ipc, IPCOP_msgget, k, flag);
#endif
}