Symbol: sem_t
include/semaphore.h
48
#define SEM_FAILED ((sem_t *)0)
include/semaphore.h
52
int sem_init(sem_t *, int, unsigned int);
include/semaphore.h
53
int sem_destroy(sem_t *);
include/semaphore.h
54
sem_t *sem_open(const char *, int, ...);
include/semaphore.h
55
int sem_close(sem_t *);
include/semaphore.h
57
int sem_wait(sem_t *);
include/semaphore.h
58
int sem_trywait(sem_t *);
include/semaphore.h
59
int sem_timedwait(sem_t * __restrict, const struct timespec * __restrict);
include/semaphore.h
60
int sem_post(sem_t *);
include/semaphore.h
61
int sem_getvalue(sem_t * __restrict, int * __restrict);
lib/libthread_xu/thread/thr_sem.c
102
sem_t sem;
lib/libthread_xu/thread/thr_sem.c
170
sem_check_validity(sem_t *sem)
lib/libthread_xu/thread/thr_sem.c
181
static sem_t
lib/libthread_xu/thread/thr_sem.c
184
sem_t sem;
lib/libthread_xu/thread/thr_sem.c
192
static __thread sem_t sem_base;
lib/libthread_xu/thread/thr_sem.c
224
_sem_init(sem_t *sem, int pshared, unsigned int value)
lib/libthread_xu/thread/thr_sem.c
238
_sem_destroy(sem_t *sem)
lib/libthread_xu/thread/thr_sem.c
262
_sem_getvalue(sem_t * __restrict sem, int * __restrict sval)
lib/libthread_xu/thread/thr_sem.c
274
_sem_trywait(sem_t *sem)
lib/libthread_xu/thread/thr_sem.c
297
_sem_wait(sem_t *sem)
lib/libthread_xu/thread/thr_sem.c
338
_sem_timedwait(sem_t * __restrict sem, const struct timespec * __restrict abstime)
lib/libthread_xu/thread/thr_sem.c
389
_sem_post(sem_t *sem)
lib/libthread_xu/thread/thr_sem.c
436
static sem_t *
lib/libthread_xu/thread/thr_sem.c
463
static sem_t *
lib/libthread_xu/thread/thr_sem.c
464
sem_add_mapping(ino_t inode, dev_t dev, sem_t sem, int fd)
lib/libthread_xu/thread/thr_sem.c
487
sem_close_mapping(sem_t *sem)
lib/libthread_xu/thread/thr_sem.c
509
sem_t *
lib/libthread_xu/thread/thr_sem.c
517
sem_t *sem;
lib/libthread_xu/thread/thr_sem.c
518
sem_t semtmp;
lib/libthread_xu/thread/thr_sem.c
649
semtmp = (sem_t) mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE,
lib/libthread_xu/thread/thr_sem.c
704
_sem_close(sem_t *sem)
test/interbench/interbench.c
1208
void init_sem(sem_t *sem)
test/interbench/interbench.c
127
void init_sem(sem_t *sem);
test/interbench/interbench.c
317
inline void post_sem(sem_t *s)
test/interbench/interbench.c
327
inline void wait_sem(sem_t *s)
test/interbench/interbench.c
337
inline int trywait_sem(sem_t *s)
test/interbench/interbench.c
487
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
497
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
517
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
538
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
568
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
599
sem_t *s;
test/interbench/interbench.c
618
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
636
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
683
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
748
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
771
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
810
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
850
sem_t *s = &th->sem.stop;
test/interbench/interbench.c
868
sem_t *s = &th->sem.stop;
test/interbench/interbench.h
15
sem_t ready;
test/interbench/interbench.h
16
sem_t start;
test/interbench/interbench.h
17
sem_t stop;
test/interbench/interbench.h
18
sem_t complete;
test/interbench/interbench.h
19
sem_t stopchild;
test/interbench/interbench.h
7
extern inline void post_sem(sem_t *s);
test/interbench/interbench.h
8
extern inline void wait_sem(sem_t *s);
test/interbench/interbench.h
9
extern inline int trywait_sem(sem_t *s);
test/libpthread/sem_d.c
50
sem_t * sem = (sem_t *) a_arg;
test/libpthread/sem_d.c
61
sem_t sem_a, sem_b;
test/testcases/posixipc/close_unnamed_semaphore/close_unnamed_semaphore.c
6
sem_t id;
test/testcases/posixipc/common/common.c
100
if (munmap(id, sizeof(sem_t)) < 0)
test/testcases/posixipc/common/common.c
105
testwait(sem_t *id, u_int *delta)
test/testcases/posixipc/common/common.c
136
schedule_post(sem_t *id, u_int msec)
test/testcases/posixipc/common/common.c
248
sem_t *id;
test/testcases/posixipc/common/common.c
261
timedwait(sem_t *id, u_int msec, u_int *delta, int error)
test/testcases/posixipc/common/common.c
299
sem_t *id;
test/testcases/posixipc/common/common.c
320
sem_t id;
test/testcases/posixipc/common/common.c
357
sem_destroy_should_fail(sem_t *id, int error)
test/testcases/posixipc/common/common.c
374
sem_close_should_fail(sem_t *id, int error)
test/testcases/posixipc/common/common.c
54
sem_t *alarm_id = SEM_FAILED;
test/testcases/posixipc/common/common.c
59
checkvalue(sem_t *id, int expected)
test/testcases/posixipc/common/common.c
75
sem_t *
test/testcases/posixipc/common/common.c
78
sem_t *id = mmap(NULL, sizeof(sem_t), PROT_READ|PROT_WRITE,
test/testcases/posixipc/common/common.c
87
munmap(id, sizeof(sem_t));
test/testcases/posixipc/common/common.c
95
destruct_shared_unnamed_sem(sem_t *id)
test/testcases/posixipc/common/common.h
50
extern sem_t *alarm_id;
test/testcases/posixipc/common/common.h
59
int checkvalue(sem_t *, int);
test/testcases/posixipc/common/common.h
60
sem_t *construct_shared_unnamed_sem(unsigned int);
test/testcases/posixipc/common/common.h
61
void destruct_shared_unnamed_sem(sem_t *);
test/testcases/posixipc/common/common.h
62
int testwait(sem_t *, u_int *);
test/testcases/posixipc/common/common.h
63
int timedwait(sem_t *, u_int, u_int *, int);
test/testcases/posixipc/common/common.h
64
int schedule_post(sem_t *, u_int);
test/testcases/posixipc/common/common.h
71
int sem_destroy_should_fail(sem_t *, int);
test/testcases/posixipc/common/common.h
72
int sem_close_should_fail(sem_t *, int);
test/testcases/posixipc/create_excl_existing_sem/create_excl_existing_sem.c
6
sem_t *id;
test/testcases/posixipc/create_unnamed_semaphore/create_unnamed_semaphore.c
5
sem_t id;
test/testcases/posixipc/destroy_named_semaphore/destroy_named_semaphore.c
6
sem_t *id;
test/testcases/posixipc/file_test/file_test.c
6
sem_t *id;
test/testcases/posixipc/max_value/max_value.c
5
sem_t id;
test/testcases/posixipc/open_after_unlink/open_after_unlink.c
6
sem_t *id;
test/testcases/posixipc/open_named_semaphore/open_named_semaphore.c
5
sem_t *id;
test/testcases/posixipc/post_test/post_test.c
5
sem_t id;
test/testcases/posixipc/timedwait_expired/timedwait_expired.c
5
sem_t id;
test/testcases/posixipc/timedwait_locked/timedwait_locked.c
5
sem_t *id;
test/testcases/posixipc/timedwait_unlocked/timedwait_unlocked.c
5
sem_t id;
test/testcases/posixipc/trywait_locked/trywait_locked.c
5
sem_t id;
test/testcases/posixipc/trywait_unlocked/trywait_unlocked.c
5
sem_t id;
test/testcases/posixipc/use_after_unlink/use_after_unlink.c
5
sem_t *id;
test/testcases/posixipc/wait_locked/wait_locked.c
5
sem_t *id;
test/testcases/posixipc/wait_two_proc/wait_two_proc.c
5
sem_t *id;
test/testcases/posixipc/wait_unlocked/wait_unlocked.c
5
sem_t id;
usr.bin/sort/file.c
116
static sem_t tmp_files_sem;
usr.bin/sort/file.c
1298
static sem_t mtsem;
usr.bin/sort/radixsort.c
94
static sem_t mtsem;