/dflybsd-src/include/ |
H A D | semaphore.h | 46 typedef struct sem *sem_t; typedef 48 #define SEM_FAILED ((sem_t *)0) 52 int sem_init(sem_t *, int, unsigned int); 53 int sem_destroy(sem_t *); 54 sem_t *sem_open(const char *, int, ...); 55 int sem_close(sem_t *); 57 int sem_wait(sem_t *); 58 int sem_trywait(sem_t *); 59 int sem_timedwait(sem_t * __restrict, const struct timespec * __restrict); 60 int sem_post(sem_t *); [all …]
|
/dflybsd-src/test/testcases/posixipc/common/ |
H A D | common.c | 54 sem_t *alarm_id = SEM_FAILED; 59 checkvalue(sem_t *id, int expected) in checkvalue() 75 sem_t * 78 sem_t *id = mmap(NULL, sizeof(sem_t), PROT_READ|PROT_WRITE, in construct_shared_unnamed_sem() 87 munmap(id, sizeof(sem_t)); in construct_shared_unnamed_sem() 95 destruct_shared_unnamed_sem(sem_t *id) in destruct_shared_unnamed_sem() 100 if (munmap(id, sizeof(sem_t)) < 0) in destruct_shared_unnamed_sem() 105 testwait(sem_t *id, u_int *delta) in testwait() 136 schedule_post(sem_t *id, u_int msec) in schedule_post() 248 sem_t *id; in wait_twoproc_child() [all …]
|
H A D | common.h | 50 extern sem_t *alarm_id; 59 int checkvalue(sem_t *, int); 60 sem_t *construct_shared_unnamed_sem(unsigned int); 61 void destruct_shared_unnamed_sem(sem_t *); 62 int testwait(sem_t *, u_int *); 63 int timedwait(sem_t *, u_int, u_int *, int); 64 int schedule_post(sem_t *, u_int); 71 int sem_destroy_should_fail(sem_t *, int); 72 int sem_close_should_fail(sem_t *, int);
|
/dflybsd-src/test/interbench/ |
H A D | interbench.h | 7 extern inline void post_sem(sem_t *s); 8 extern inline void wait_sem(sem_t *s); 9 extern inline int trywait_sem(sem_t *s); 15 sem_t ready; 16 sem_t start; 17 sem_t stop; 18 sem_t complete; 19 sem_t stopchild;
|
H A D | interbench.c | 127 void init_sem(sem_t *sem); 317 inline void post_sem(sem_t *s) in post_sem() 327 inline void wait_sem(sem_t *s) in wait_sem() 337 inline int trywait_sem(sem_t *s) in trywait_sem() 487 sem_t *s = &th->sem.stop; in emulate_none() 497 sem_t *s = &th->sem.stop; in emulate_audio() 517 sem_t *s = &th->sem.stop; in emulate_video() 538 sem_t *s = &th->sem.stop; in emulate_x() 568 sem_t *s = &th->sem.stop; in emulate_game() 599 sem_t *s; in burn_thread() [all …]
|
/dflybsd-src/lib/libthread_xu/thread/ |
H A D | thr_sem.c | 102 sem_t sem; 170 sem_check_validity(sem_t *sem) in sem_check_validity() 181 static sem_t 184 sem_t sem; in sem_alloc() 192 static __thread sem_t sem_base; in sem_alloc() 224 _sem_init(sem_t *sem, int pshared, unsigned int value) in _sem_init() 238 _sem_destroy(sem_t *sem) in _sem_destroy() 262 _sem_getvalue(sem_t * __restrict sem, int * __restrict sval) in _sem_getvalue() 274 _sem_trywait(sem_t *sem) in _sem_trywait() 297 _sem_wait(sem_t *sem) in _sem_wait() [all …]
|
/dflybsd-src/sys/contrib/dev/acpica/source/os_specific/service_layers/ |
H A D | osunixxf.c | 882 sem_t *Sem; in AcpiOsCreateSemaphore() 907 Sem = AcpiOsAllocate (sizeof (sem_t)); in AcpiOsCreateSemaphore() 941 sem_t *Sem = (sem_t *) Handle; in AcpiOsDeleteSemaphore() 986 sem_t *Sem = (sem_t *) Handle; in AcpiOsWaitSemaphore() 1121 sem_t *Sem = (sem_t *)Handle; in AcpiOsSignalSemaphore()
|
/dflybsd-src/test/libpthread/ |
H A D | sem_d.c | 50 sem_t * sem = (sem_t *) a_arg; in entry() 61 sem_t sem_a, sem_b; in main()
|
/dflybsd-src/contrib/gcc-4.7/libgomp/config/posix/ |
H A D | omp-lock.h | 21 typedef sem_t omp_lock_t; 22 typedef struct { sem_t lock; int count; void *owner; } omp_nest_lock_t;
|
/dflybsd-src/contrib/gcc-8.0/libgomp/config/posix/ |
H A D | omp-lock.h | 21 typedef sem_t omp_lock_t; 22 typedef struct { sem_t lock; int count; void *owner; } omp_nest_lock_t;
|
/dflybsd-src/test/testcases/posixipc/create_unnamed_semaphore/ |
H A D | create_unnamed_semaphore.c | 5 sem_t id; in main()
|
/dflybsd-src/test/testcases/posixipc/close_unnamed_semaphore/ |
H A D | close_unnamed_semaphore.c | 6 sem_t id; in main()
|
/dflybsd-src/test/testcases/posixipc/open_named_semaphore/ |
H A D | open_named_semaphore.c | 5 sem_t *id; in main()
|
/dflybsd-src/test/testcases/posixipc/trywait_unlocked/ |
H A D | trywait_unlocked.c | 5 sem_t id; in main()
|
/dflybsd-src/test/testcases/posixipc/destroy_named_semaphore/ |
H A D | destroy_named_semaphore.c | 6 sem_t *id; in main()
|
/dflybsd-src/test/testcases/posixipc/trywait_locked/ |
H A D | trywait_locked.c | 5 sem_t id; in main()
|
/dflybsd-src/test/testcases/posixipc/create_excl_existing_sem/ |
H A D | create_excl_existing_sem.c | 6 sem_t *id; in main()
|
/dflybsd-src/test/testcases/posixipc/open_after_unlink/ |
H A D | open_after_unlink.c | 6 sem_t *id; in main()
|
/dflybsd-src/test/testcases/posixipc/post_test/ |
H A D | post_test.c | 5 sem_t id; in main()
|
/dflybsd-src/test/testcases/posixipc/timedwait_unlocked/ |
H A D | timedwait_unlocked.c | 5 sem_t id; in main()
|
/dflybsd-src/test/testcases/posixipc/wait_unlocked/ |
H A D | wait_unlocked.c | 5 sem_t id; in main()
|
/dflybsd-src/test/testcases/posixipc/timedwait_expired/ |
H A D | timedwait_expired.c | 5 sem_t id; in main()
|
/dflybsd-src/test/testcases/posixipc/max_value/ |
H A D | max_value.c | 5 sem_t id; in main()
|
/dflybsd-src/test/testcases/posixipc/file_test/ |
H A D | file_test.c | 6 sem_t *id; in main()
|
/dflybsd-src/test/testcases/posixipc/wait_locked/ |
H A D | wait_locked.c | 5 sem_t *id; in main()
|