blob: 4372c71939cad44717423282cc6382842ffed1bd [file] [log] [blame]
#include <sys/msg.h>
#include "syscall.h"
#include "ipc.h"
int msgctl(int q, int cmd, struct msqid_ds *buf)
{
#ifdef SYS_msgctl
return syscall(SYS_msgctl, q, cmd | IPC_64, buf);
#else
return syscall(SYS_ipc, IPCOP_msgctl, q, cmd | IPC_64, 0, buf, 0);
#endif
}