diff options
Diffstat (limited to 'libc/misc/sysvipc/sem.c')
-rw-r--r-- | libc/misc/sysvipc/sem.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libc/misc/sysvipc/sem.c b/libc/misc/sysvipc/sem.c index a3eaca7be..1cc39e7bd 100644 --- a/libc/misc/sysvipc/sem.c +++ b/libc/misc/sysvipc/sem.c @@ -44,7 +44,7 @@ static inline _syscall4(int, __semctl, int, semid, int, semnum, int, cmd, union int semctl(int semid, int semnum, int cmd, ...) { union semun arg; - va_list ap; + va_list ap; /* Get the argument. */ va_start (ap, cmd); @@ -53,24 +53,24 @@ int semctl(int semid, int semnum, int cmd, ...) #ifdef __NR_semctl return __semctl(semid, semnum, cmd, &arg); #else - return __ipc(IPCOP_semctl, semid, semnum, cmd, &arg); + return __syscall_ipc(IPCOP_semctl, semid, semnum, cmd, &arg); #endif -} +} #endif #ifdef L_semget /* for definition of NULL */ -#include <stdlib.h> +#include <stdlib.h> #ifdef __NR_semget _syscall3(int, semget, key_t, key, int, nsems, int, semflg); #else -/* Return identifier for array of NSEMS semaphores associated +/* Return identifier for array of NSEMS semaphores associated * with KEY. */ int semget (key_t key, int nsems, int semflg) { - return __ipc(IPCOP_semget, key, nsems, semflg, NULL); + return __syscall_ipc(IPCOP_semget, key, nsems, semflg, NULL); } #endif #endif @@ -84,7 +84,7 @@ _syscall3(int, semop, int, semid, struct sembuf *, sops, size_t, nsops); /* Perform user-defined atomical operation of array of semaphores. */ int semop (int semid, struct sembuf *sops, size_t nsops) { - return __ipc(IPCOP_semop, semid, (int) nsops, 0, sops); + return __syscall_ipc(IPCOP_semop, semid, (int) nsops, 0, sops); } #endif #endif |