Home
last modified time | relevance | path

Searched refs:sem (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/bionic/
Dsemaphore.c87 #define SEM_GET_SHARED(sem) ((sem)->count & SEMCOUNT_SHARED_MASK) argument
90 int sem_init(sem_t *sem, int pshared, unsigned int value) in sem_init() argument
92 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() argument
115 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 …]
/bionic/libc/include/
Dsemaphore.h41 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);
/bionic/libc/kernel/common/linux/
Dsem.h40 struct sem *sem_base;
Ddevice.h114 struct semaphore sem; member
189 struct semaphore sem; member
/bionic/libc/docs/
DSYSV-IPC.TXT4 <sys/sem.h> /* SysV semaphores */
31 #include <sys/sem.h>