summaryrefslogtreecommitdiff
path: root/libc/misc/sysvipc/sem.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-01-21 23:27:48 +0000
committerEric Andersen <andersen@codepoet.org>2004-01-21 23:27:48 +0000
commit6334e558ab33ee1e54ed33740881a2798c5915c2 (patch)
tree5d3253d5928343d2a37cc55be7a9c35244b4ab42 /libc/misc/sysvipc/sem.c
parent9bafaa6fe7ded400aac87526ce615f1875ce2673 (diff)
Split up syscalls.c, since it had grown to be quite large and ugly.
-Erik
Diffstat (limited to 'libc/misc/sysvipc/sem.c')
-rw-r--r--libc/misc/sysvipc/sem.c14
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