musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/ipc/msgctl.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012年09月22日 08:04:17 -0400
committerRich Felker <dalias@aerifal.cx>2012年09月22日 08:04:17 -0400
commitcccc13221da78957aa6dc813a325c13f1a930874 (patch)
treedfbc4d30a627659f638cfab24563405398f39500 /src/ipc/msgctl.c
parentfce46bf980a82bad9e6c083066cae4813649ebf5 (diff)
downloadmusl-cccc13221da78957aa6dc813a325c13f1a930874.tar.gz
fix IPC_64 in msgctl too
Diffstat (limited to 'src/ipc/msgctl.c')
-rw-r--r--src/ipc/msgctl.c 4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipc/msgctl.c b/src/ipc/msgctl.c
index d1ff7c70..4372c719 100644
--- a/src/ipc/msgctl.c
+++ b/src/ipc/msgctl.c
@@ -5,8 +5,8 @@
int msgctl(int q, int cmd, struct msqid_ds *buf)
{
#ifdef SYS_msgctl
- return syscall(SYS_msgctl, q, cmd | 0x100, buf);
+ return syscall(SYS_msgctl, q, cmd | IPC_64, buf);
#else
- return syscall(SYS_ipc, IPCOP_msgctl, q, cmd | 0x100, 0, buf, 0);
+ return syscall(SYS_ipc, IPCOP_msgctl, q, cmd | IPC_64, 0, buf, 0);
#endif
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月28日 14:26:26 +0000

AltStyle によって変換されたページ (->オリジナル) /