remove no-longer-needed unblocking of signals in pthread_create
[musl] / src / ipc / semctl.c
index 7ada116..a210e20 100644 (file)
@@ -10,9 +10,9 @@ int semctl(int id, int num, int cmd, ...)
        va_start(ap, cmd);
        arg = va_arg(ap, long);
        va_end(ap);
-#ifdef __NR_semctl
-       return syscall4(__NR_semctl, id, num, cmd, arg);
+#ifdef SYS_semctl
+       return syscall(SYS_semctl, id, num, cmd | 0x100, arg);
 #else
-       return syscall5(__NR_ipc, IPCOP_semctl, id, num, cmd | 0x100, (long)&arg);
+       return syscall(SYS_ipc, IPCOP_semctl, id, num, cmd | 0x100, &arg);
 #endif
 }