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
/
shmctl.c
1
#include <sys/shm.h>
2
#include "syscall.h"
3
#include "ipc.h"
4
5
int shmctl(int id, int cmd, struct shmid_ds *buf)
6
{
7
#ifdef __NR_shmctl
8
return syscall3(__NR_shmctl, id, cmd, (long)buf);
9
#else
10
return syscall4(__NR_ipc, IPCOP_shmctl, id, cmd | IPC_MODERN, (long)buf);
11
#endif
12
}