/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_setpshared/ |
D | 1-1.c | 27 int pshared; in main() local 49 if (pthread_rwlockattr_getpshared(&rwla, &pshared) != 0) { in main() 54 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 57 pshared); in main() 69 if (pthread_rwlockattr_getpshared(&rwla, &pshared) != 0) { in main() 74 if (pshared != PTHREAD_PROCESS_SHARED) { in main() 77 pshared); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_setpshared/ |
D | 1-1.c | 32 int pshared = PTHREAD_PROCESS_SHARED; in main() local 43 rc = pthread_barrierattr_setpshared(&ba, pshared); in main() 50 if (pthread_barrierattr_getpshared(&ba, &pshared) != 0) { in main() 55 if (pshared != PTHREAD_PROCESS_SHARED) { in main() 57 pshared); in main() 76 pshared); in main()
|
D | 2-1.c | 35 int pshared = PTHREAD_PROCESS_PRIVATE + 1; in main() local 39 if (pshared == PTHREAD_PROCESS_SHARED) { in main() 40 pshared += 1; in main() 50 rc = pthread_barrierattr_setpshared(&ba, pshared); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setpshared/ |
D | 1-2.c | 45 int ret, i, pshared; in main() local 66 if (pthread_condattr_getpshared(&attr[i], &pshared) != 0) { in main() 69 pshared); in main() 73 if (pshared != PTHREAD_PROCESS_SHARED) { in main() 75 pshared); in main()
|
D | 1-1.c | 45 int ret, i, pshared; in main() local 66 if (pthread_condattr_getpshared(&attr[i], &pshared) != 0) { in main() 69 pshared); in main() 73 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 75 pshared); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
D | 4-1.c | 35 static int pshared; variable 42 rc = pthread_spin_init(&spinlock, pshared); in fn_chld() 59 pshared = PTHREAD_PROCESS_PRIVATE; in main() 61 pshared = -1; in main() 66 rc = pthread_spin_init(&spinlock, pshared); in main()
|
D | 1-1.c | 35 int pshared; in main() local 38 pshared = PTHREAD_PROCESS_PRIVATE; in main() 40 pshared = -1; in main() 43 rc = pthread_spin_init(&spinlock, pshared); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getpshared/ |
D | 1-1.c | 34 int pshared; in main() local 43 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { in main() 49 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 51 pshared); in main()
|
D | 1-3.c | 37 int pshared; in main() local 54 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { in main() 60 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 61 printf("Test FAILED: Incorrect pshared value: %d\n", pshared); in main()
|
D | 1-2.c | 37 int pshared; in main() local 54 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { in main() 60 if (pshared != PTHREAD_PROCESS_SHARED) { in main() 61 printf("Test FAILED: Incorrect pshared value: %d\n", pshared); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/ |
D | 1-2.c | 34 int pshared; in main() local 43 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { in main() 50 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 52 pshared); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/ |
D | 2-1.c | 34 int pshared; in main() local 43 if (pthread_condattr_getpshared(&attr, &pshared) != 0) { in main() 49 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 51 pshared); in main()
|
D | 1-2.c | 38 int ret, i, pshared; in main() local 59 if (pthread_condattr_getpshared(&attr[i], &pshared) != 0) { in main() 65 if (pshared != PTHREAD_PROCESS_SHARED) { in main() 67 pshared); in main()
|
D | 1-1.c | 38 int ret, i, pshared; in main() local 59 if (pthread_condattr_getpshared(&attr[i], &pshared) != 0) { in main() 65 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 67 pshared); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/ |
D | 1-1.c | 25 int pshared; in main() local 40 rc = pthread_rwlockattr_getpshared(&rwla, &pshared); in main() 48 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 50 pshared); in main()
|
D | 4-1.c | 26 int pshared; in main() local 40 if (pthread_rwlockattr_getpshared(&rwla, &pshared) != 0) { in main() 45 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 47 pshared); in main()
|
D | 2-1.c | 53 int pshared = PTHREAD_PROCESS_SHARED; in main() local 65 if (pthread_rwlockattr_setpshared(&rwla, pshared) != 0) { in main() 70 if (pthread_rwlockattr_getpshared(&rwla, &pshared) != 0) { in main() 76 if (pshared != PTHREAD_PROCESS_SHARED) { in main() 78 pshared); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/ |
D | 2-1.c | 149 long pshared, mf; in main() local 155 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main() 161 output(" TSH : %li\n", pshared); in main() 163 if ((mf < 0) || (pshared < 0)) in main() 173 pshared = -1; /* We won't do this testing anyway */ in main() 255 if ((pshared > 0) && (scenarii[sc].m_pshared != 0)) { in main() 274 if ((pshared > 0) && (scenarii[sc].fork != 0)) { in main()
|
D | 4-2.c | 170 long pshared, mf; in main() local 179 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main() 185 output(" TSH : %li\n", pshared); in main() 187 if ((mf < 0) || (pshared < 0)) in main() 205 pshared = -1; /* We won't do this testing anyway */ in main() 291 if ((pshared > 0) && (scenarii[sc].m_pshared != 0)) { in main() 310 if ((pshared > 0) && (scenarii[sc].fork != 0)) { in main()
|
D | 1-2.c | 172 long pshared, mf; in main() local 178 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main() 184 output(" TSH : %li\n", pshared); in main() 186 if ((mf < 0) || (pshared < 0)) in main() 204 pshared = -1; /* We won't do this testing anyway */ in main() 290 if ((pshared > 0) && (scenarii[sc].m_pshared != 0)) { in main() 309 if ((pshared > 0) && (scenarii[sc].fork != 0)) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/ |
D | 2-1.c | 63 int pshared = PTHREAD_PROCESS_SHARED; in main() local 87 if (pthread_barrierattr_setpshared(&ba, pshared) != 0) { in main() 92 if (pthread_barrierattr_getpshared(&ba, &pshared) != 0) { in main() 98 if (pshared != PTHREAD_PROCESS_SHARED) { in main() 99 printf("Test FAILED: Incorrect pshared value %d\n", pshared); in main()
|
/external/compiler-rt/test/sanitizer_common/TestCases/ |
D | pthread_mutexattr_get.cc | 12 int pshared; in main() local 13 res = pthread_mutexattr_getpshared(&ma, &pshared); in main() 15 assert(pshared == 1); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_init/ |
D | 1-1.c | 30 int pshared; in main() local 43 if (pthread_rwlockattr_getpshared(&rwa, &pshared) != 0) { in main() 48 if (pshared == PTHREAD_PROCESS_PRIVATE) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_init/ |
D | 1-1.c | 29 int pshared; in main() local 42 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { in main() 48 if (pshared == PTHREAD_PROCESS_PRIVATE) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_init/ |
D | 1-1.c | 29 int pshared; in main() local 42 if (pthread_condattr_getpshared(&condattr, &pshared) != 0) { in main() 48 if (pshared == PTHREAD_PROCESS_PRIVATE) { in main()
|