35extern int sem_init (
sem_t *__sem,
int __pshared,
unsigned int __value);
60# ifndef __USE_TIME_BITS64
61extern int sem_timedwait (
sem_t *__restrict __sem,
62 const struct timespec *__restrict __abstime);
65extern int __REDIRECT (sem_timedwait,
66 (
sem_t *__restrict __sem,
67 const struct timespec *__restrict __abstime),
70# define sem_timedwait __sem_timedwait64
76# ifndef __USE_TIME_BITS64
77extern int sem_clockwait (
sem_t *__restrict __sem,
79 const struct timespec *__restrict __abstime);
82extern int __REDIRECT (sem_clockwait,
83 (
sem_t *__restrict __sem,
85 const struct timespec *__restrict __abstime),
88# define sem_clockwait __sem_clockwait64
int sem_init(sem_t *__sem, int __pshared, unsigned int __value)
Definition semaphore_lib.c:17
sem_t * sem_open(const char *__name, int __oflag,...)
int sem_trywait(sem_t *__sem)
int sem_wait(sem_t *__sem)
int sem_post(sem_t *__sem)
Definition semaphore_lib.c:88
int sem_close(sem_t *__sem)
int sem_unlink(const char *__name)
int sem_destroy(sem_t *__sem)
Definition semaphore_lib.c:104
int sem_getvalue(sem_t *__restrict __sem, int *__restrict __sval)
Definition semaphore.h:25
int __count
Definition semaphore.h:27
int __init
Definition semaphore.h:28
int __lock
Definition semaphore.h:26
unsigned int __waiters
Definition semaphore.h:30
int clockid_t
Definition time.h:29
clock_t clock(void)
Definition time.c:105