Home
last modified time | relevance | path

Searched refs:SEM_FAILED (Results 1 – 25 of 84) sorted by relevance

1234

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/
D6-1.c96 if ((sem1 == SEM_FAILED) && (errno == EEXIST)) { in main()
101 if (sem1 == SEM_FAILED) { in main()
115 if (sem2 != SEM_FAILED) { in main()
128 if (sem2 == SEM_FAILED) { in main()
D3-1.c139 if ((sem == SEM_FAILED) && (errno == EEXIST)) { in main()
144 if (sem == SEM_FAILED) { in main()
159 if (sem == SEM_FAILED) { in main()
D2-2.c94 if (sem == SEM_FAILED) { in common()
140 if ((sem == SEM_FAILED) && (errno == EEXIST)) { in main()
145 if (sem == SEM_FAILED) { in main()
D7-1.c111 if ((sem == SEM_FAILED) && (errno == EEXIST)) { in main()
116 if (sem == SEM_FAILED) { in main()
D9-1.c118 if ((sem == SEM_FAILED) && (errno == EEXIST)) { in main()
123 if (sem == SEM_FAILED) { in main()
D5-1.c133 if (sem != SEM_FAILED) { in main()
186 if (sem != SEM_FAILED) { in main()
D1-1.c35 if (mysemp == SEM_FAILED || mysemp == NULL) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_close/
D3-2.c100 if (sem == SEM_FAILED && errno == EEXIST) { in main()
105 if (sem == SEM_FAILED) { in main()
128 if (sem == SEM_FAILED) { in main()
D2-1.c35 if (mysemp == SEM_FAILED) { in main()
48 if (mysemp == SEM_FAILED) { in main()
D1-1.c35 if (mysemp == SEM_FAILED) { in main()
D3-1.c35 if (mysemp == SEM_FAILED) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_post/
D8-1.c87 if (sem == SEM_FAILED) { in child_fn()
93 if (sem_1 == SEM_FAILED) { in child_fn()
130 if (sem == SEM_FAILED) { in main()
138 if (sem_1 == SEM_FAILED) { in main()
/third_party/python/Modules/_multiprocessing/
Dsemaphore.c49 #define SEM_FAILED NULL macro
222 # undef SEM_FAILED
223 # define SEM_FAILED ((sem_t *)-1) macro
486 SEM_HANDLE handle = SEM_FAILED; in _multiprocessing_SemLock_impl()
506 if (handle == SEM_FAILED || SEM_GET_LAST_ERROR() != 0) in _multiprocessing_SemLock_impl()
519 if (handle != SEM_FAILED) in _multiprocessing_SemLock_impl()
558 if (handle == SEM_FAILED) { in _multiprocessing_SemLock__rebuild_impl()
571 if (self->handle != SEM_FAILED) in semlock_dealloc()
/third_party/musl/porting/liteos_a/user/src/thread/
Dsem_open.c46 return SEM_FAILED; in sem_open()
52 return SEM_FAILED; in sem_open()
67 return SEM_FAILED; in sem_open()
163 return SEM_FAILED; in sem_open()
/third_party/musl/src/thread/
Dsem_open.c46 return SEM_FAILED; in sem_open()
52 return SEM_FAILED; in sem_open()
67 return SEM_FAILED; in sem_open()
165 return SEM_FAILED; in sem_open()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/
D2-1.c37 if (mysemp == SEM_FAILED) { in main()
48 if ((mysemp == SEM_FAILED) && (errno == EEXIST)) { in main()
D10-1.c37 if (mysemp == SEM_FAILED) { in main()
48 if (mysemp == SEM_FAILED) { in main()
D15-1.c98 if (sems[i] == SEM_FAILED) { in main()
122 if (sems[i] == SEM_FAILED) { in main()
D6-1.c33 if ((mysemp == SEM_FAILED) && (errno == ENOENT)) { in main()
D1-1.c35 if ((mysemp == SEM_FAILED) || (mysemp == NULL)) { in main()
D4-1.c41 if ((mysemp == SEM_FAILED) && (errno == EEXIST)) { in main()
D5-1.c40 if ((mysemp == SEM_FAILED) && (errno == EINVAL)) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D14-1.c63 if (sem_linked == SEM_FAILED) { in main()
69 if (sem_unlinked == SEM_FAILED) { in main()
/third_party/musl/libc-test/src/functional/
Dsem_open.c25 TEST((sem=sem_open(buf, O_CREAT|O_EXCL, 0700, 1)) != SEM_FAILED, in main()
28 TEST(sem_open(buf, O_CREAT|O_EXCL, 0700, 1) == SEM_FAILED, in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/
D12-1.c35 if (mysemp == SEM_FAILED || mysemp == NULL) { in main()

1234