/third_party/ltp/testcases/open_posix_testsuite/functional/semaphores/ |
D | sem_sleepingbarber.c | 147 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()
|
D | sem_conpro.c | 110 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()
|
D | sem_readerwriter.c | 121 if (-1 == sem_init(&r_lock, shared, r_value)) { in main() 125 if (-1 == sem_init(&w_lock, shared, w_value)) { in main()
|
D | sem_philosopher.c | 131 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/ |
D | pthread_once-deadlock.c | 59 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()
|
D | pthread_cancel-sem_wait.c | 55 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/ |
D | sem_init.c | 30 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()
|
D | pthread_cancel-points.c | 25 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/ |
D | 3-1.c | 288 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()
|
D | 5-1.c | 195 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/ |
D | 7-1.c | 105 ret = sem_init(&sems[i], 0, 0); in main() 123 ret = sem_init(&sem_last, 0, 1); in main()
|
D | 3-1.c | 60 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/ |
D | 3-1.c | 39 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/ |
D | multi_con_pro.c | 175 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/ |
D | synccall.c | 63 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/ |
D | 3-3.c | 245 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/ |
D | 8-1.c | 244 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/ |
D | 2-1.c | 221 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/ |
D | 6-1.c | 260 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/ |
D | 5-1.c | 227 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/ |
D | 6-3.c | 205 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/ |
D | 18-1.c | 259 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/ |
D | 3-2.c | 196 if ((ret = sem_init(&semA, 0, 0))) { in main() 199 if ((ret = sem_init(&semB, 0, 0))) { in main()
|
D | 1-2.c | 203 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/ |
D | 4-2.c | 256 if (sem_init(&semsig1, 0, 1)) { in main() 259 if (sem_init(&semsig2, 0, 1)) { in main()
|