2 * Copyright 2008, Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Salvatore Benedetto <salvatore.benedetto@gmail.com>
18 #include <errno_private.h>
19 #include <posix/xsi_semaphore_defs.h>
20 #include <syscall_utils.h>
25 semget(key_t key
, int numSems
, int semFlags
)
27 RETURN_AND_SET_ERRNO(_kern_xsi_semget(key
, numSems
, semFlags
));
32 semctl(int semID
, int semNum
, int command
, ...)
43 RETURN_AND_SET_ERRNO(_kern_xsi_semctl(semID
, semNum
, command
, 0));
50 va_start(args
, command
);
51 arg
= va_arg(args
, union semun
);
53 RETURN_AND_SET_ERRNO(_kern_xsi_semctl(semID
, semNum
, command
,
63 semop(int semID
, struct sembuf
*semOps
, size_t numSemOps
)
65 RETURN_AND_SET_ERRNO(_kern_xsi_semop(semID
, semOps
, numSemOps
));