6#ifndef ZEPHYR_INCLUDE_POSIX_SEMAPHORE_H_
7#define ZEPHYR_INCLUDE_POSIX_SEMAPHORE_H_
16#define SEM_FAILED ((sem_t *) 0)
struct k_sem sem_t
Definition posix_types.h:106
sem_t * sem_open(const char *name, int oflags,...)
int sem_trywait(sem_t *semaphore)
int sem_init(sem_t *semaphore, int pshared, unsigned int value)
int sem_post(sem_t *semaphore)
int sem_wait(sem_t *semaphore)
int sem_destroy(sem_t *semaphore)
int sem_close(sem_t *sem)
int sem_unlink(const char *name)
int sem_timedwait(sem_t *ZRESTRICT semaphore, struct timespec *ZRESTRICT abstime)
int sem_getvalue(sem_t *ZRESTRICT semaphore, int *ZRESTRICT value)
Definition _timespec.h:22