projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix the definition of struct statvfs to match lsb abi
[musl]
/
src
/
ipc
/
shmctl.c
diff --git
a/src/ipc/shmctl.c
b/src/ipc/shmctl.c
index
da357fa
..
ae6ce69
100644
(file)
--- a/
src/ipc/shmctl.c
+++ b/
src/ipc/shmctl.c
@@
-4,9
+4,9
@@
int shmctl(int id, int cmd, struct shmid_ds *buf)
{
int shmctl(int id, int cmd, struct shmid_ds *buf)
{
-#ifdef
__NR
_shmctl
- return syscall
3(__NR_shmctl, id, cmd, (long)
buf);
+#ifdef
SYS
_shmctl
+ return syscall
(SYS_shmctl, id, cmd | IPC_MODERN,
buf);
#else
#else
- return syscall
4(__NR_ipc, IPCOP_shmctl, id, cmd | IPC_MODERN, (long)buf
);
+ return syscall
(SYS_ipc, IPCOP_shmctl, id, cmd | IPC_MODERN, 0, buf, 0
);
#endif
}
#endif
}