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

int shmdt(const void *addr)
{
#ifdef __NR_shmdt
	return syscall(SYS_shmdt, addr);
#else
	return syscall(SYS_ipc, IPCOP_shmdt, addr);
#endif
}