Symbol: sem_t
include/semaphore.h
49
#define SEM_FAILED ((sem_t *)0)
include/semaphore.h
56
int sem_clockwait_np(sem_t * __restrict, __clockid_t, int,
include/semaphore.h
59
int sem_close(sem_t *);
include/semaphore.h
60
int sem_destroy(sem_t *);
include/semaphore.h
61
int sem_getvalue(sem_t * __restrict, int * __restrict);
include/semaphore.h
62
int sem_init(sem_t *, int, unsigned int);
include/semaphore.h
63
sem_t *sem_open(const char *, int, ...);
include/semaphore.h
64
int sem_post(sem_t *);
include/semaphore.h
65
int sem_timedwait(sem_t * __restrict, const struct timespec * __restrict);
include/semaphore.h
66
int sem_trywait(sem_t *);
include/semaphore.h
68
int sem_wait(sem_t *);
lib/libc/gen/sem.c
106
static sem_t sem_alloc(unsigned int value, semid_t semid, int system_sem);
lib/libc/gen/sem.c
107
static void sem_free(sem_t sem);
lib/libc/gen/sem.c
124
sem_check_validity(sem_t *sem)
lib/libc/gen/sem.c
136
sem_free(sem_t sem)
lib/libc/gen/sem.c
143
static sem_t
lib/libc/gen/sem.c
146
sem_t sem;
lib/libc/gen/sem.c
153
sem = (sem_t)malloc(sizeof(struct sem));
lib/libc/gen/sem.c
168
_libc_sem_init_compat(sem_t *sem, int pshared, unsigned int value)
lib/libc/gen/sem.c
192
_libc_sem_destroy_compat(sem_t *sem)
lib/libc/gen/sem.c
219
sem_t *
lib/libc/gen/sem.c
222
sem_t *sem;
lib/libc/gen/sem.c
223
sem_t s;
lib/libc/gen/sem.c
257
sem = (sem_t *)malloc(sizeof(*sem));
lib/libc/gen/sem.c
283
_libc_sem_close_compat(sem_t *sem)
lib/libc/gen/sem.c
356
sem_t *sem = arg;
lib/libc/gen/sem.c
364
_libc_sem_timedwait_compat(sem_t * __restrict sem,
lib/libc/gen/sem.c
408
_libc_sem_wait_compat(sem_t *sem)
lib/libc/gen/sem.c
414
_libc_sem_trywait_compat(sem_t *sem)
lib/libc/gen/sem.c
433
_libc_sem_post_compat(sem_t *sem)
lib/libc/gen/sem.c
450
_libc_sem_getvalue_compat(sem_t * __restrict sem, int * __restrict sval)
lib/libc/gen/sem.c
95
#define SEM_FAILED ((sem_t *)0)
lib/libc/gen/sem_new.c
113
sem_check_validity(sem_t *sem)
lib/libc/gen/sem_new.c
123
_sem_init(sem_t *sem, int pshared, unsigned int value)
lib/libc/gen/sem_new.c
131
bzero(sem, sizeof(sem_t));
lib/libc/gen/sem_new.c
138
sem_t *
lib/libc/gen/sem_new.c
145
sem_t *sem, tmp;
lib/libc/gen/sem_new.c
215
if (sb.st_size < sizeof(sem_t)) {
lib/libc/gen/sem_new.c
223
sem = mmap(NULL, sizeof(sem_t), PROT_READ | PROT_WRITE,
lib/libc/gen/sem_new.c
249
munmap(sem, sizeof(sem_t));
lib/libc/gen/sem_new.c
257
_sem_close(sem_t *sem)
lib/libc/gen/sem_new.c
311
_sem_destroy(sem_t *sem)
lib/libc/gen/sem_new.c
326
_sem_getvalue(sem_t * __restrict sem, int * __restrict sval)
lib/libc/gen/sem_new.c
375
_sem_trywait(sem_t *sem)
lib/libc/gen/sem_new.c
391
_sem_clockwait_np(sem_t * __restrict sem, clockid_t clock_id, int flags,
lib/libc/gen/sem_new.c
431
_sem_timedwait(sem_t * __restrict sem,
lib/libc/gen/sem_new.c
440
_sem_wait(sem_t *sem)
lib/libc/gen/sem_new.c
453
_sem_post(sem_t *sem)
lib/libc/gen/sem_new.c
75
sem_t *sem;
lib/libthr/thread/thr_sem.c
105
_sem_timedwait_compat(sem_t * __restrict sem,
lib/libthr/thread/thr_sem.c
112
_sem_post_compat(sem_t *sem)
lib/libthr/thread/thr_sem.c
56
extern int _libc_sem_init_compat(sem_t *sem, int pshared, unsigned int value);
lib/libthr/thread/thr_sem.c
57
extern int _libc_sem_destroy_compat(sem_t *sem);
lib/libthr/thread/thr_sem.c
58
extern int _libc_sem_getvalue_compat(sem_t * __restrict sem, int * __restrict sval);
lib/libthr/thread/thr_sem.c
59
extern int _libc_sem_trywait_compat(sem_t *sem);
lib/libthr/thread/thr_sem.c
60
extern int _libc_sem_wait_compat(sem_t *sem);
lib/libthr/thread/thr_sem.c
61
extern int _libc_sem_timedwait_compat(sem_t * __restrict sem,
lib/libthr/thread/thr_sem.c
63
extern int _libc_sem_post_compat(sem_t *sem);
lib/libthr/thread/thr_sem.c
65
int _sem_init_compat(sem_t *sem, int pshared, unsigned int value);
lib/libthr/thread/thr_sem.c
66
int _sem_destroy_compat(sem_t *sem);
lib/libthr/thread/thr_sem.c
67
int _sem_getvalue_compat(sem_t * __restrict sem, int * __restrict sval);
lib/libthr/thread/thr_sem.c
68
int _sem_trywait_compat(sem_t *sem);
lib/libthr/thread/thr_sem.c
69
int _sem_wait_compat(sem_t *sem);
lib/libthr/thread/thr_sem.c
70
int _sem_timedwait_compat(sem_t * __restrict sem,
lib/libthr/thread/thr_sem.c
72
int _sem_post_compat(sem_t *sem);
lib/libthr/thread/thr_sem.c
75
_sem_init_compat(sem_t *sem, int pshared, unsigned int value)
lib/libthr/thread/thr_sem.c
81
_sem_destroy_compat(sem_t *sem)
lib/libthr/thread/thr_sem.c
87
_sem_getvalue_compat(sem_t * __restrict sem, int * __restrict sval)
lib/libthr/thread/thr_sem.c
93
_sem_trywait_compat(sem_t *sem)
lib/libthr/thread/thr_sem.c
99
_sem_wait_compat(sem_t *sem)
tests/sys/aio/aio_test.c
93
static sem_t completions;
tests/sys/aio/lio_test.c
42
static sem_t completions;
tests/sys/cddl/zfs/tests/txg_integrity/fsync_integrity.c
280
static sem_t chunk_sems[NUM_THREADS - 1][NUM_CHUNKS];
tests/sys/cddl/zfs/tests/txg_integrity/txg_integrity.c
309
static sem_t chunk_sems[NUM_CHUNKS];
tests/sys/fs/fusefs/default_permissions.cc
1492
sem_t sem;
tests/sys/fs/fusefs/destroy.cc
158
sem_t sem;
tests/sys/fs/fusefs/dev_fuse_poll.cc
117
sem_t sem0, sem1;
tests/sys/fs/fusefs/forget.cc
65
sem_t sem;
tests/sys/fs/fusefs/getattr.cc
175
sem_t sem;
tests/sys/fs/fusefs/getattr.cc
273
sem_t sem;
tests/sys/fs/fusefs/interrupt.cc
162
blocked_semaphore = (sem_t*)mmap(NULL, sizeof(*blocked_semaphore),
tests/sys/fs/fusefs/interrupt.cc
288
sem_t sem0, sem1;
tests/sys/fs/fusefs/interrupt.cc
411
sem_t sem0, sem1;
tests/sys/fs/fusefs/interrupt.cc
486
sem_t sem0, sem1;
tests/sys/fs/fusefs/interrupt.cc
56
static sem_t *blocked_semaphore;
tests/sys/fs/fusefs/interrupt.cc
57
static sem_t *signaled_semaphore;
tests/sys/fs/fusefs/interrupt.cc
628
sem_t sem0;
tests/sys/fs/fusefs/interrupt.cc
675
sem_t sem0, sem1;
tests/sys/fs/fusefs/last_local_modify.cc
110
sem_t *sem = (sem_t*) arg;
tests/sys/fs/fusefs/last_local_modify.cc
130
sem_t *sem = (sem_t*) arg;
tests/sys/fs/fusefs/last_local_modify.cc
152
sem_t *sem = (sem_t*) arg;
tests/sys/fs/fusefs/last_local_modify.cc
172
sem_t *sem = (sem_t*) arg;
tests/sys/fs/fusefs/last_local_modify.cc
227
static sem_t sem;
tests/sys/fs/fusefs/last_local_modify.cc
381
static sem_t sem;
tests/sys/fs/fusefs/mknod.cc
259
sem_t sem;
tests/sys/fs/fusefs/open.cc
107
sem_t sem;
tests/sys/fs/fusefs/opendir.cc
85
sem_t sem;
tests/sys/fs/fusefs/pre-init.cc
125
sem_t sem0;
tests/sys/fs/fusefs/pre-init.cc
83
sem_t sem0;
tests/sys/fs/fusefs/read.cc
304
sem_t sem;
tests/sys/fs/fusefs/rmdir.cc
133
sem_t sem;
tests/sys/fs/fusefs/rmdir.cc
150
sem_t sem;
tests/sys/fs/fusefs/rmdir.cc
78
sem_t sem;
tests/sys/fs/fusefs/setattr.cc
777
sem_t sem;
tests/sys/fs/fusefs/statfs.cc
101
sem_t sem;
tests/sys/fs/fusefs/symlink.cc
178
sem_t sem;
tests/sys/fs/fusefs/unlink.cc
198
sem_t sem;
tests/sys/fs/fusefs/utils.cc
250
FuseTest::expect_forget(uint64_t ino, uint64_t nlookup, sem_t *sem)
tests/sys/fs/fusefs/utils.cc
585
sem_t *sem;
tests/sys/fs/fusefs/utils.cc
598
sem = (sem_t*)mmap(NULL, sizeof(*sem), mprot, mflags, -1, 0);
tests/sys/fs/fusefs/utils.hh
144
void expect_forget(uint64_t ino, uint64_t nlookup, sem_t *sem = NULL);
tests/sys/fs/fusefs/xattr.cc
49
static sem_t killer_semaphore;
tests/sys/kern/kcov.c
168
static sem_t sem1, sem2;
tests/sys/kern/ptrace_test.c
2524
static sem_t sigusr1_sem;
tests/sys/netmap/ctrl-api-test.c
1605
sem_t sem;
tests/sys/netmap/ctrl-api-test.c
168
sem_t *sem; /* for thread synchronization */
tools/regression/posixsem2/semtest.c
100
sem_t *s, *s2, *s3;
tools/regression/posixsem2/semtest.c
22
sem_t *s;
tools/regression/posixsem2/semtest.c
27
s = (sem_t *)mmap(NULL, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_ANON|MAP_SHARED,
tools/regression/posixsem2/semtest.c
56
sem_t *s, *s2;
tools/regression/pthread/unwind/sem_wait_cancel.cpp
10
static sem_t sem;
tools/tools/syscall_timing/syscall_timing.c
620
sem_t *buf;
usr.bin/sort/file.c
108
static sem_t tmp_files_sem;
usr.bin/sort/file.c
1185
static sem_t mtsem;
usr.bin/sort/radixsort.c
94
static sem_t mtsem;
usr.sbin/bhyve/pci_nvme.c
340
sem_t iosemlock;
usr.sbin/camdd/camdd.c
414
static sem_t camdd_sem;
usr.sbin/pppctl/pppctl.c
71
static sem_t sem_select; /* select() co-ordination between threads */