projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add pivot_root syscall wrapper
[oweals/musl.git]
/
src
/
ipc
/
semop.c
diff --git
a/src/ipc/semop.c
b/src/ipc/semop.c
index 48d8a6546666ea5eff4e1a3a2b6fd99f8b061a7a..15453406d39a45563f932473e53fe2a558376349 100644
(file)
--- a/
src/ipc/semop.c
+++ b/
src/ipc/semop.c
@@
-5,8
+5,8
@@
int semop(int id, struct sembuf *buf, size_t n)
{
#ifdef __NR_semop
int semop(int id, struct sembuf *buf, size_t n)
{
#ifdef __NR_semop
- return syscall
3(__NR_semop, id, (long)
buf, n);
+ return syscall
(SYS_semop, id,
buf, n);
#else
#else
- return syscall
5(__NR_ipc, IPCOP_semop, id, n, 0, (long)
buf);
+ return syscall
(SYS_ipc, IPCOP_semop, id, n, 0,
buf);
#endif
}
#endif
}