projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fmemopen: fix eof handling, hopefully right this time
[oweals/musl.git]
/
src
/
ipc
/
semctl.c
diff --git
a/src/ipc/semctl.c
b/src/ipc/semctl.c
index df05ec7416f1ef5fd0ecf2fe0e84dba364e64474..a210e20baa12f01e6854b057f5fea96f0f517661 100644
(file)
--- a/
src/ipc/semctl.c
+++ b/
src/ipc/semctl.c
@@
-11,7
+11,7
@@
int semctl(int id, int num, int cmd, ...)
arg = va_arg(ap, long);
va_end(ap);
#ifdef SYS_semctl
- return syscall(SYS_semctl, id, num, cmd, arg);
+ return syscall(SYS_semctl, id, num, cmd
| 0x100
, arg);
#else
return syscall(SYS_ipc, IPCOP_semctl, id, num, cmd | 0x100, &arg);
#endif