blob: b44f9d680a75ad430e12d857d7b9314bc3089fd9 [file] [log] [blame]
#include <sys/shm.h>
#include <stdint.h>
#include "syscall.h"
#include "ipc.h"
int shmget(key_t key, size_t size, int flag)
{
if (size > PTRDIFF_MAX) size = SIZE_MAX;
#ifdef SYS_shmget
return syscall(SYS_shmget, key, size, flag);
#else
return syscall(SYS_ipc, IPCOP_shmget, key, size, flag);
#endif
}