Symbol: sem_init
include/semaphore.h
52
int sem_init(sem_t *, int, unsigned int);
lib/libc/gen/_pthread_stubs.c
189
WR(stub_zero, sem_init);
lib/libthread_xu/thread/thr_sem.c
751
__strong_reference(_sem_init, sem_init);
test/interbench/interbench.c
1210
if (sem_init(sem, 0, 0))
test/libpthread/sem_d.c
103
assert(0 == sem_init(&sem_a, 0, 0));
test/libpthread/sem_d.c
69
assert(-1 == sem_init(&sem_b, 1, 0));
test/libpthread/sem_d.c
73
assert(0 == sem_init(&sem_b, 0, 0));
test/testcases/posixipc/close_unnamed_semaphore/close_unnamed_semaphore.c
8
if (sem_init(&id, 0, 1) < 0) {
test/testcases/posixipc/common/common.c
322
if (sem_init(&id, 0, value) >= 0) {
test/testcases/posixipc/common/common.c
85
if (sem_init(id, 1, count) < 0) {
test/testcases/posixipc/create_unnamed_semaphore/create_unnamed_semaphore.c
7
if (sem_init(&id, 0, 1) < 0) {
test/testcases/posixipc/max_value/max_value.c
8
if (sem_init(&id, 0, SEM_VALUE_MAX) < 0) {
test/testcases/posixipc/post_test/post_test.c
7
if (sem_init(&id, 0, 1) < 0) {
test/testcases/posixipc/timedwait_expired/timedwait_expired.c
8
if (sem_init(&id, 0, 0) < 0) {
test/testcases/posixipc/timedwait_unlocked/timedwait_unlocked.c
8
if (sem_init(&id, 0, 1) < 0) {
test/testcases/posixipc/trywait_locked/trywait_locked.c
7
if (sem_init(&id, 0, 0) < 0) {
test/testcases/posixipc/trywait_unlocked/trywait_unlocked.c
7
if (sem_init(&id, 0, 1) < 0) {
test/testcases/posixipc/wait_unlocked/wait_unlocked.c
8
if (sem_init(&id, 0, 1) < 0) {
usr.bin/sort/file.c
130
sem_init(&tmp_files_sem, 0, 1);
usr.bin/sort/file.c
1557
sem_init(&mtsem, 0, 0);
usr.bin/sort/radixsort.c
663
sem_init(&mtsem, 0, 0);