Home
last modified time | relevance | path

Searched refs:sem_init (Results 1 – 25 of 152) sorted by relevance

1234567

/third_party/ltp/testcases/open_posix_testsuite/functional/semaphores/
Dsem_sleepingbarber.c147 if (-1 == sem_init(&print, shared, 1)) { in main()
155 if (-1 == sem_init(&customer, shared, customer_value)) { in main()
159 if (-1 == sem_init(&barber, shared, barber_value)) { in main()
163 if (-1 == sem_init(&lock, shared, lock_value)) { in main()
Dsem_conpro.c110 if (-1 == sem_init(&buf.occupied, shared, occupied_value)) { in main()
114 if (-1 == sem_init(&buf.empty, shared, empty_value)) { in main()
118 if (-1 == sem_init(&buf.lock, shared, lock_value)) { in main()
Dsem_readerwriter.c121 if (-1 == sem_init(&r_lock, shared, r_value)) { in main()
125 if (-1 == sem_init(&w_lock, shared, w_value)) { in main()
Dsem_philosopher.c131 if (-1 == sem_init(&ph[i], shared, ph_value)) { in main()
137 if (-1 == sem_init(&lock, shared, lock_value)) { in main()
/third_party/musl/libc-test/src/regression/
Dpthread_once-deadlock.c59 E(sem_init(&s1,0,0)); in main()
60 E(sem_init(&s2,0,0)); in main()
61 E(sem_init(&s3,0,0)); in main()
Dpthread_cancel-sem_wait.c55 TESTR(r, sem_init(&sem1, 0, 0), "creating semaphore"); in main()
56 TESTR(r, sem_init(&sem2, 0, 1), "creating semaphore"); in main()
/third_party/musl/libc-test/src/functional/
Dsem_init.c30 T(sem_init(s, 0, 0)); in many_waiters()
31 T(sem_init(s+1, 0, 0)); in many_waiters()
60 T(sem_init(&s, 0, 1)); in single_thread()
Dpthread_cancel-points.c25 TESTR(sem_init(&sem_test, 0, (long)arg), "creating semaphore"); in prepare_sem()
127 TESTR(sem_init(&sem_seq, 0, 0), "creating semaphore"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/
D3-1.c288 if ((sem_init(&semsig1, 0, 1))) { in main()
291 if ((sem_init(&semsig2, 0, 1))) { in main()
296 if ((sem_init(&semsync, 0, 0))) { in main()
300 if ((sem_init(&semsync2, 0, 0))) { in main()
D5-1.c195 if (sem_init(&semsig, 0, 1)) { in main()
198 if (sem_init(&semstart, 0, 0)) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
D7-1.c105 ret = sem_init(&sems[i], 0, 0); in main()
123 ret = sem_init(&sem_last, 0, 1); in main()
D3-1.c60 if (sem_init(&csem, 0, 0) < 0) { in main()
64 if (sem_init(&psem, 0, 1) < 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_destroy/
D3-1.c39 if (sem_init(&csem, 0, 0) < 0) { in main()
43 if (sem_init(&psem, 0, 1) < 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/semaphores/
Dmulti_con_pro.c175 if (-1 == sem_init(&buf->full, shared, full_value)) { in main()
184 if (-1 == sem_init(&buf->empty, shared, empty_value)) { in main()
188 if (-1 == sem_init(&buf->lock, shared, lock_value)) { in main()
/third_party/musl/src/thread/
Dsynccall.c63 sem_init(&target_sem, 0, 0); in __synccall()
64 sem_init(&caller_sem, 0, 0); in __synccall()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/
D3-3.c245 if (sem_init(&semsig1, 0, 1)) { in main()
249 if (sem_init(&semsig2, 0, 1)) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/
D8-1.c244 if (sem_init(&semsig1, 0, 1)) { in main()
248 if (sem_init(&semsig2, 0, 1)) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/
D2-1.c221 if (sem_init(&semsig1, 0, 1)) { in main()
224 if (sem_init(&semsig2, 0, 1)) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/
D6-1.c260 if (sem_init(&semsig1, 0, 1)) { in main()
264 if (sem_init(&semsig2, 0, 1)) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/
D5-1.c227 if (sem_init(&semsig1, 0, 1)) { in main()
231 if (sem_init(&semsig2, 0, 1)) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/
D6-3.c205 if (sem_init(&semsig1, 0, 1)) in main()
208 if (sem_init(&semsig2, 0, 1)) in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/
D18-1.c259 if (sem_init(&semsig1, 0, 1)) { in main()
263 if (sem_init(&semsig2, 0, 1)) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/
D3-2.c196 if ((ret = sem_init(&semA, 0, 0))) { in main()
199 if ((ret = sem_init(&semB, 0, 0))) { in main()
D1-2.c203 if ((ret = sem_init(&semA, 0, 0))) { in main()
206 if ((ret = sem_init(&semB, 0, 0))) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
D4-2.c256 if (sem_init(&semsig1, 0, 1)) { in main()
259 if (sem_init(&semsig2, 0, 1)) { in main()

1234567