/third_party/ltp/testcases/open_posix_testsuite/functional/semaphores/ |
D | sem_sleepingbarber.c | 37 sem_wait(&print); \ 57 if (-1 == sem_wait(&lock)) { in barbers() 69 if (-1 == sem_wait(&customer)) { in barbers() 73 if (-1 == sem_wait(&lock)) { in barbers() 104 if (-1 == sem_wait(&lock)) { in customers() 121 if (-1 == sem_wait(&barber)) { in customers()
|
D | sem_conpro.c | 44 if (-1 == sem_wait(&buf->occupied)) { in producer() 48 if (-1 == sem_wait(&buf->lock)) { in producer() 74 if (-1 == sem_wait(&buf->empty)) { in consumer() 78 if (-1 == sem_wait(&buf->lock)) { in consumer()
|
D | sem_readerwriter.c | 51 if (-1 == sem_wait(&r_lock)) { in reader() 58 if (-1 == sem_wait(&w_lock)) { in reader() 69 if (-1 == sem_wait(&r_lock)) { in reader() 95 if (-1 == sem_wait(&w_lock)) { in writer()
|
D | sem_philosopher.c | 78 if (-1 == sem_wait(&lock)) { in philosopher() 88 if (-1 == sem_wait(&ph[PhID])) { in philosopher() 94 if (-1 == sem_wait(&lock)) { in philosopher()
|
/third_party/musl/src/thread/ |
D | synccall.c | 29 sem_wait(&target_sem); in handler() 36 sem_wait(&target_sem); in handler() 89 sem_wait(&caller_sem); in __synccall() 98 sem_wait(&caller_sem); in __synccall() 112 sem_wait(&caller_sem); in __synccall()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/semaphores/ |
D | multi_con_pro.c | 49 if (-1 == sem_wait(&buf->full)) { in producer() 58 if (-1 == sem_wait(&buf->lock)) { in producer() 76 if (-1 == sem_wait(&buf->full)) { in producer() 85 if (-1 == sem_wait(&buf->lock)) { in producer() 114 if (-1 == sem_wait(&buf->empty)) { in consumer() 118 if (-1 == sem_wait(&buf->lock)) { in consumer()
|
/third_party/NuttX/drivers/pipes/ |
D | pipe_common.c | 86 ret = sem_wait(sem); in pipecommon_semtake() 185 ret = sem_wait(&dev->d_bfsem); in pipecommon_open() 254 ret = sem_wait(&dev->d_rdsem); in pipecommon_open() 402 ret = sem_wait(&dev->d_bfsem); in pipecommon_read() 431 ret = sem_wait(&dev->d_rdsem); in pipecommon_read() 433 if (ret < 0 || (ret = sem_wait(&dev->d_bfsem)) < 0) in pipecommon_read() 500 sem_wait(&dev->d_rdsem); in pipecommon_read() 505 ret = sem_wait(&dev->d_rdsem); in pipecommon_read() 511 ret = sem_wait(&dev->d_bfsem); in pipecommon_read() 591 ret = sem_wait(&dev->d_bfsem); in pipecommon_write()
|
D | pipe.c | 119 ret = sem_wait(&g_pipesem); in pipe_free() 174 (void)sem_wait(&g_pipesem); in pipe_unlink() 254 ret = sem_wait(&g_pipesem); in pipe() 342 (void)sem_wait(&g_pipesem); in pipe()
|
/third_party/musl/libc-test/src/functional/ |
D | sem_init.c | 35 T(sem_wait(s)); in many_waiters() 36 T(sem_wait(s)); in many_waiters() 37 T(sem_wait(s)); in many_waiters() 61 T(sem_wait(&s)); in single_thread()
|
D | pthread_cancel-points.c | 35 TESTR(sem_wait(&sem_test), "waiting on semaphore in the canceled thread"); in execute_sem_wait() 50 while (sem_wait(&sem_test)); in run_test() 117 while (sem_wait(&sem_seq)); in run_execute()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_post/ |
D | 8-1.c | 101 sem_wait(sem_1); in child_fn() 103 if (sem_wait(sem) == -1) { in child_fn() 152 if (sem_wait(sem) == -1) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/ |
D | 7-1.c | 49 if (sem_wait(mysemp) == -1) { in main() 69 sem_wait(mysemp); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/ |
D | 3-2.c | 155 if ((ret = sem_wait(&semB))) { in unlock_issue() 235 if ((ret = sem_wait(&semA))) { in main() 287 if ((ret = sem_wait(&semA))) { in main()
|
D | 1-2.c | 149 if ((ret = sem_wait(&semB))) { in unlock_issue() 242 if ((ret = sem_wait(&semA))) { in main() 294 if ((ret = sem_wait(&semA))) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/ |
D | 3-1.c | 36 sem_wait(&psem); in producer() 48 sem_wait(&csem); in consumer()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_destroy/ |
D | 3-1.c | 73 sem_wait(&psem); in producer() 85 sem_wait(&csem); in consumer()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/ |
D | 3-1.c | 109 if ((ret = sem_wait(thearg->sem))) { in sendsig() 266 ret = sem_wait(&semsync); in threaded() 311 ret = sem_wait(&semsync2); in main()
|
D | 4-1.c | 196 if ((ret = sem_wait(&sem))) { in main() 209 if ((ret = sem_wait(&sem))) { in main()
|
/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages03.c | 101 if (sem_wait(&sem[SEM_PARENT_TEST]) == -1) in child() 162 if (sem_wait(&sem[SEM_CHILD_SETUP]) == -1) in main()
|
D | move_pages11.c | 102 if (sem_wait(&sem[SEM_PARENT_TEST]) == -1) in child() 164 if (sem_wait(&sem[SEM_CHILD_SETUP]) == -1) in main()
|
D | move_pages05.c | 102 if (sem_wait(&sem[SEM_PARENT_TEST]) == -1) in child() 169 if (sem_wait(&sem[SEM_CHILD_SETUP]) == -1) in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/templates/ |
D | template_16-1.in | 28 * The test fails if the sem_wait function returns EINTR 31 This test uses sem_wait to check if EINTR is returned. As the function is not required to 107 ret = sem_wait( &sem ); 117 UNRESOLVED( errno, "sem_wait failed" );
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/ |
D | 2-3.c | 125 ret = sem_wait(&(data.semB)); in clnp2() 368 ret = sem_wait(&(data.semA)); in main() 397 ret = sem_wait(&(data.semA)); in main()
|
/third_party/musl/libc-test/src/regression/ |
D | pthread_cancel-sem_wait.c | 20 while (sem_wait(&sem1)); in wait_cancel() 28 sem_wait(&sem2); in start_sem_wait()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
D | 2-6.c | 102 ret = sem_wait(&(data.semB)); in clnp2() 365 ret = sem_wait(&(data.semA)); in main() 394 ret = sem_wait(&(data.semA)); in main()
|