Home
last modified time | relevance | path

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

12

/dflybsd-src/include/
H A Dsemaphore.h46 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 Dcommon.c54 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 Dcommon.h50 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 Dinterbench.h7 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 Dinterbench.c127 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 Dthr_sem.c102 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 Dosunixxf.c882 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 Dsem_d.c50 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 Domp-lock.h21 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 Domp-lock.h21 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 Dcreate_unnamed_semaphore.c5 sem_t id; in main()
/dflybsd-src/test/testcases/posixipc/close_unnamed_semaphore/
H A Dclose_unnamed_semaphore.c6 sem_t id; in main()
/dflybsd-src/test/testcases/posixipc/open_named_semaphore/
H A Dopen_named_semaphore.c5 sem_t *id; in main()
/dflybsd-src/test/testcases/posixipc/trywait_unlocked/
H A Dtrywait_unlocked.c5 sem_t id; in main()
/dflybsd-src/test/testcases/posixipc/destroy_named_semaphore/
H A Ddestroy_named_semaphore.c6 sem_t *id; in main()
/dflybsd-src/test/testcases/posixipc/trywait_locked/
H A Dtrywait_locked.c5 sem_t id; in main()
/dflybsd-src/test/testcases/posixipc/create_excl_existing_sem/
H A Dcreate_excl_existing_sem.c6 sem_t *id; in main()
/dflybsd-src/test/testcases/posixipc/open_after_unlink/
H A Dopen_after_unlink.c6 sem_t *id; in main()
/dflybsd-src/test/testcases/posixipc/post_test/
H A Dpost_test.c5 sem_t id; in main()
/dflybsd-src/test/testcases/posixipc/timedwait_unlocked/
H A Dtimedwait_unlocked.c5 sem_t id; in main()
/dflybsd-src/test/testcases/posixipc/wait_unlocked/
H A Dwait_unlocked.c5 sem_t id; in main()
/dflybsd-src/test/testcases/posixipc/timedwait_expired/
H A Dtimedwait_expired.c5 sem_t id; in main()
/dflybsd-src/test/testcases/posixipc/max_value/
H A Dmax_value.c5 sem_t id; in main()
/dflybsd-src/test/testcases/posixipc/file_test/
H A Dfile_test.c6 sem_t *id; in main()
/dflybsd-src/test/testcases/posixipc/wait_locked/
H A Dwait_locked.c5 sem_t *id; in main()

12