X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fipc%2Fsemctl.c;h=274e2cf333be25ad206e243f193dde1ff31a3442;hp=df05ec7416f1ef5fd0ecf2fe0e84dba364e64474;hb=cccc13221da78957aa6dc813a325c13f1a930874;hpb=c2cd25bff89c3581780e7eb267262cb8c4da0d38 diff --git a/src/ipc/semctl.c b/src/ipc/semctl.c index df05ec74..274e2cf3 100644 --- a/src/ipc/semctl.c +++ b/src/ipc/semctl.c @@ -11,8 +11,8 @@ int semctl(int id, int num, int cmd, ...) arg = va_arg(ap, long); va_end(ap); #ifdef SYS_semctl - return syscall(SYS_semctl, id, num, cmd, arg); + return syscall(SYS_semctl, id, num, cmd | IPC_64, arg); #else - return syscall(SYS_ipc, IPCOP_semctl, id, num, cmd | 0x100, &arg); + return syscall(SYS_ipc, IPCOP_semctl, id, num, cmd | IPC_64, &arg); #endif }