mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
305 B
14 lines
305 B
#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
|
|
}
|
|
|