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
/
semget.c
1
#include <sys/sem.h>
2
#include "syscall.h"
3
#include "ipc.h"
4
5
int semget(key_t key, int n, int fl)
6
{
7
#ifdef __NR_semget
8
return syscall3(__NR_semget, key, n, fl);
9
#else
10
return syscall4(__NR_ipc, IPCOP_semget, key, n, fl);
11
#endif
12
}