summaryrefslogblamecommitdiff
path: root/src/ipc/shmget.c
blob: 9b14f8d37c064a0addd4ba652eabf10030381785 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                            
                                                    
     
                                                               

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

int shmget(key_t key, size_t size, int flag)
{
#ifdef __NR_shmget
	return syscall(SYS_shmget, key, size, flag);
#else
	return syscall(SYS_ipc, IPCOP_shmget, key, size, flag);
#endif
}