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

int semget(key_t key, int n, int fl)
{
#ifdef __NR_semget
	return syscall3(__NR_semget, key, n, fl);
#else
	return syscall4(__NR_ipc, IPCOP_semget, key, n, fl);
#endif
}