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

int shmget(key_t key, size_t size, int flag)
{
#ifdef __NR_shmget
	return syscall3(__NR_shmget, key, size, flag);
#else
	return syscall4(__NR_ipc, IPCOP_shmget, key, size, flag);
#endif
}