Home
last modified time | relevance | path

Searched refs:sem_getvalue (Results 1 – 25 of 69) sorted by relevance

123

/third_party/NuttX/drivers/pipes/
Dpipe_common.c220 while (sem_getvalue(&dev->d_rdsem, &sval) == 0 && sval == 0) in pipecommon_open()
316 while (sem_getvalue(&dev->d_rdsem, &sval) == 0 && sval == 0) in pipecommon_close()
470 while (sem_getvalue(&dev->d_wrsem, &sval) == 0 && sval == 0) in pipecommon_read()
498 while (sem_getvalue(&dev->d_rdsem, &sval) == 0 && sval != 0) in pipecommon_read()
520 while (sem_getvalue(&dev->d_wrsem, &sval) == 0 && sval == 0) in pipecommon_read()
632 while (sem_getvalue(&dev->d_rdsem, &sval) == 0 && sval == 0) in pipecommon_write()
655 while (sem_getvalue(&dev->d_rdsem, &sval) == 0 && sval == 0) in pipecommon_write()
682 while (sem_getvalue(&dev->d_wrsem, &sval) == 0 && sval != 0) in pipecommon_write()
/third_party/musl/libc-test/src/functional/
Dsem_open.c33 TEST(sem_getvalue(sem, &val) == 0, "failed to get sem value\n"); in main()
41 TEST(sem_getvalue(sem2, &val) == 0, "%s\n", strerror(errno)); in main()
49 TEST(sem_getvalue(sem2, &val) == 0, "%s\n", strerror(errno)); in main()
Dsem_init.c38 T(sem_getvalue(s, &r)); in many_waiters()
47 T(sem_getvalue(s+1, &r)); in many_waiters()
62 T(sem_getvalue(&s, &r)); in single_thread()
/third_party/ltp/testcases/open_posix_testsuite/stress/semaphores/
Dmulti_con_pro.c53 if (-1 == sem_getvalue(&buf->full, &full_value)) { in producer()
80 if (-1 == sem_getvalue(&buf->full, &full_value)) { in producer()
134 if (-1 == sem_getvalue(&buf->full, &full_value)) { in consumer()
179 if (-1 == sem_getvalue(&buf->full, &full_value)) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/
D5-1.c43 if (sem_getvalue(mysemp, &val) == -1) { in main()
53 if (sem_getvalue(mysemp, &val) == -1) { in main()
D4-1.c43 if (sem_getvalue(mysemp, &val) != 0) { in main()
D1-1.c44 if (sem_getvalue(mysemp, &val) == -1) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/
D6-1.c134 ret = sem_getvalue(sem1, &value); in main()
145 ret = sem_getvalue(sem2, &value); in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/sem_getvalue/
Dstress.c177 ret = sem_getvalue(named, &value); in main()
190 ret = sem_getvalue(&unnamed, &value); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_post/
D8-1.c187 sem_getvalue(sem_1, &val); in main()
208 sem_getvalue(sem_1, &val); in main()
/third_party/musl/src/thread/
Dsem_getvalue.c3 int sem_getvalue(sem_t *restrict sem, int *restrict valp) in sem_getvalue() function
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
D1-1.c35 if (sem_getvalue(&mysemp, &val) == -1) { in main()
D2-2.c41 if (sem_getvalue(&mysemp, &val) < 0) { in main()
D2-1.c41 if (sem_getvalue(&mysemp, &val) < 0) { in main()
/third_party/musl/libc-test/src/api/
Dsemaphore.c7 {int(*p)(sem_t*restrict,int*restrict) = sem_getvalue;} in f()
/third_party/musl/porting/liteos_m/user/include/
Dsemaphore.h23 int sem_getvalue(sem_t *__restrict, int *__restrict);
/third_party/musl/porting/liteos_m/kernel/include/
Dsemaphore.h23 int sem_getvalue(sem_t *__restrict, int *__restrict);
/third_party/musl/include/
Dsemaphore.h23 int sem_getvalue(sem_t *__restrict, int *__restrict);
/third_party/musl/porting/uniproton/kernel/include/
Dsemaphore.h23 int sem_getvalue(sem_t *__restrict, int *__restrict);
/third_party/musl/porting/liteos_a_newlib/kernel/include/
Dsemaphore.h22 int sem_getvalue(sem_t *__restrict, int *__restrict);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
Dsemaphore.h23 int sem_getvalue(sem_t *__restrict, int *__restrict);
/third_party/musl/porting/liteos_a/kernel/include/
Dsemaphore.h25 int sem_getvalue(sem_t *__restrict, int *__restrict);
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/
D1-1.c50 if (sem_getvalue(&mysemp, &val) == -1) { in main()
D2-2.c53 if (sem_getvalue(&mysemp, &val) == -1) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/
D1-1.c48 if (sem_getvalue(mysemp, &val) == -1) { in main()

123