Home
last modified time | relevance | path

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

123

/external/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.c125 if (sem != SEM_FAILED) { in main()
178 if (sem != SEM_FAILED) { in main()
D1-1.c35 if (mysemp == SEM_FAILED || mysemp == NULL) { in main()
/external/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()
/external/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()
/external/python/cpython2/Modules/_multiprocessing/
Dsemaphore.c31 #define SEM_FAILED NULL macro
203 # undef SEM_FAILED
204 # define SEM_FAILED ((sem_t *)-1) macro
428 SEM_HANDLE handle = SEM_FAILED; in semlock_new()
453 } while ((handle == SEM_FAILED) && (errno == EEXIST) && (++try < 100)); in semlock_new()
456 if (handle == SEM_FAILED || SEM_GET_LAST_ERROR() != 0) in semlock_new()
469 if (handle != SEM_FAILED) in semlock_new()
491 if (self->handle != SEM_FAILED) in semlock_dealloc()
/external/webrtc/modules/desktop_capture/
Dscreen_drawer_lock_posix.cc33 if (semaphore_ == SEM_FAILED) { in ScreenDrawerLockPosix()
42 if (semaphore_ == SEM_FAILED) { in ~ScreenDrawerLockPosix()
/external/python/cpython3/Modules/_multiprocessing/
Dsemaphore.c33 #define SEM_FAILED NULL macro
196 # undef SEM_FAILED
197 # define SEM_FAILED ((sem_t *)-1) macro
435 SEM_HANDLE handle = SEM_FAILED; in semlock_new()
462 if (handle == SEM_FAILED || SEM_GET_LAST_ERROR() != 0) in semlock_new()
475 if (handle != SEM_FAILED) in semlock_new()
505 if (handle == SEM_FAILED) { in semlock_rebuild()
518 if (self->handle != SEM_FAILED) in semlock_dealloc()
/external/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()
D5-1.c40 if ((mysemp == SEM_FAILED) && (errno == EINVAL)) { in main()
D4-1.c41 if ((mysemp == SEM_FAILED) && (errno == EEXIST)) { in main()
D1-4.c35 if (mysemp == SEM_FAILED || mysemp == NULL) { in main()
/external/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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/
D12-1.c35 if (mysemp == SEM_FAILED || mysemp == NULL) { in main()

123