projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make pthread_create return EAGAIN on resource failure, as required by POSIX
[oweals/musl.git]
/
src
/
ipc
/
shmget.c
1
#include <sys/shm.h>
2
#include "syscall.h"
3
#include "ipc.h"
4
5
int shmget(key_t key, size_t size, int flag)
6
{
7
#ifdef __NR_shmget
8
return syscall3(__NR_shmget, key, size, flag);
9
#else
10
return syscall4(__NR_ipc, IPCOP_shmget, key, size, flag);
11
#endif
12
}