Home
last modified time | relevance | path

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

/Zephyr-latest/include/zephyr/posix/
Dsemaphore.h16 #define SEM_FAILED ((sem_t *) 0)
18 int sem_destroy(sem_t *semaphore);
19 int sem_getvalue(sem_t *ZRESTRICT semaphore, int *ZRESTRICT value);
20 int sem_init(sem_t *semaphore, int pshared, unsigned int value);
21 int sem_post(sem_t *semaphore);
22 int sem_timedwait(sem_t *ZRESTRICT semaphore, struct timespec *ZRESTRICT abstime);
23 int sem_trywait(sem_t *semaphore);
24 int sem_wait(sem_t *semaphore);
25 sem_t *sem_open(const char *name, int oflags, ...);
27 int sem_close(sem_t *sem);
Dposix_types.h106 typedef struct k_sem sem_t; typedef
/Zephyr-latest/lib/posix/options/
Dsemaphore.c17 sem_t sem;
84 int sem_destroy(sem_t *semaphore) in sem_destroy()
105 int sem_getvalue(sem_t *semaphore, int *value) in sem_getvalue()
121 int sem_init(sem_t *semaphore, int pshared, unsigned int value) in sem_init()
144 int sem_post(sem_t *semaphore) in sem_post()
160 int sem_timedwait(sem_t *semaphore, struct timespec *abstime) in sem_timedwait()
199 int sem_trywait(sem_t *semaphore) in sem_trywait()
214 int sem_wait(sem_t *semaphore) in sem_wait()
221 sem_t *sem_open(const char *name, int oflags, ...) in sem_open()
237 return (sem_t *)SEM_FAILED; in sem_open()
[all …]
/Zephyr-latest/tests/posix/semaphores/src/
Dmain.c18 sem_t *sem = (sem_t *)p1; in child_func()
24 static void semaphore_test(sem_t *sem) in semaphore_test()
94 sem_t sema; in ZTEST()
111 int nsem_get_ref_count(sem_t *sem);
130 sem_t *sem = (sem_t *)p; in nsem_close_func()
148 sem_t *sem1, *sem2, *different_sem1; in ZTEST()
192 sem_t *new_sem1, *new_sem2; in ZTEST()
/Zephyr-latest/tests/posix/common/src/
Dpthread.c34 static sem_t main_sem;