mirror of
https://github.com/fluencelabs/musl
synced 2025-06-30 23:21:56 +00:00
fix IPC_64 in msgctl too
This commit is contained in:
@ -10,3 +10,5 @@ struct ipc_perm
|
|||||||
long __pad1;
|
long __pad1;
|
||||||
long __pad2;
|
long __pad2;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define IPC_64 0
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
int msgctl(int q, int cmd, struct msqid_ds *buf)
|
int msgctl(int q, int cmd, struct msqid_ds *buf)
|
||||||
{
|
{
|
||||||
#ifdef SYS_msgctl
|
#ifdef SYS_msgctl
|
||||||
return syscall(SYS_msgctl, q, cmd | 0x100, buf);
|
return syscall(SYS_msgctl, q, cmd | IPC_64, buf);
|
||||||
#else
|
#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
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
#include "syscall.h"
|
#include "syscall.h"
|
||||||
#include "ipc.h"
|
#include "ipc.h"
|
||||||
|
|
||||||
#ifndef IPC_64
|
|
||||||
#define IPC_64 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int semctl(int id, int num, int cmd, ...)
|
int semctl(int id, int num, int cmd, ...)
|
||||||
{
|
{
|
||||||
long arg;
|
long arg;
|
||||||
|
Reference in New Issue
Block a user