diff options
Diffstat (limited to 'src/ipc/msgctl.c')
-rw-r--r-- | src/ipc/msgctl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ipc/msgctl.c b/src/ipc/msgctl.c new file mode 100644 index 00000000..7c84291c --- /dev/null +++ b/src/ipc/msgctl.c @@ -0,0 +1,12 @@ +#include <sys/msg.h> +#include "syscall.h" +#include "ipc.h" + +int msgctl(int q, int cmd, struct msqid_ds *buf) +{ +#ifdef __NR_msgctl + return syscall(SYS_msgctl, q, cmd, buf); +#else + return syscall(SYS_ipc, IPCOP_msgctl, q, cmd, buf); +#endif +} |