Searched refs:sem (Results 1 – 5 of 5) sorted by relevance
87 #define SEM_GET_SHARED(sem) ((sem)->count & SEMCOUNT_SHARED_MASK) argument90 int sem_init(sem_t *sem, int pshared, unsigned int value) in sem_init() argument92 if (sem == NULL) { in sem_init()103 sem->count = SEMCOUNT_FROM_VALUE(value); in sem_init()105 sem->count |= SEMCOUNT_SHARED_MASK; in sem_init()111 int sem_destroy(sem_t *sem) in sem_destroy() argument115 if (sem == NULL) { in sem_destroy()119 count = SEMCOUNT_TO_VALUE(sem->count); in sem_destroy()124 sem->count = 0; in sem_destroy()139 int sem_close(sem_t *sem) in sem_close() argument[all …]
41 extern int sem_init(sem_t *sem, int pshared, unsigned int value);54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
40 struct sem *sem_base;
114 struct semaphore sem; member189 struct semaphore sem; member
4 <sys/sem.h> /* SysV semaphores */31 #include <sys/sem.h>