12 int semctl(int id, int num, int cmd, ...)
14 union semun arg = {0};
17 case SETVAL: case GETALL: case SETALL: case IPC_STAT: case IPC_SET:
18 case IPC_INFO: case SEM_INFO: case SEM_STAT:
20 arg = va_arg(ap, union semun);
24 return syscall(SYS_semctl, id, num, cmd | IPC_64, arg.buf);
26 return syscall(SYS_ipc, IPCOP_semctl, id, num, cmd | IPC_64, &arg.buf);