/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_setpshared/ |
D | 1-1.c | 26 int pshared; in main() local 48 if (pthread_rwlockattr_getpshared(&rwla, &pshared) != 0) { in main() 53 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 56 pshared); in main() 68 if (pthread_rwlockattr_getpshared(&rwla, &pshared) != 0) { in main() 73 if (pshared != PTHREAD_PROCESS_SHARED) { in main() 76 pshared); in main()
|
/third_party/musl/porting/liteos_a/user/src/thread/ |
D | pthread_attr_get.c | 54 int pthread_barrierattr_getpshared(const pthread_barrierattr_t *restrict a, int *restrict pshared) in pthread_barrierattr_getpshared() argument 56 *pshared = !!a->__attr; in pthread_barrierattr_getpshared() 66 int pthread_condattr_getpshared(const pthread_condattr_t *restrict a, int *restrict pshared) in pthread_condattr_getpshared() argument 68 *pshared = a->__attr>>31; in pthread_condattr_getpshared() 78 int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared) in pthread_mutexattr_getpshared() argument 80 *pshared = a->__attr / 128U % 2; in pthread_mutexattr_getpshared() 96 int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *restrict a, int *restrict pshared) in pthread_rwlockattr_getpshared() argument 98 *pshared = a->__attr[0]; in pthread_rwlockattr_getpshared()
|
/third_party/musl/src/thread/ |
D | pthread_attr_get.c | 53 int pthread_barrierattr_getpshared(const pthread_barrierattr_t *restrict a, int *restrict pshared) in pthread_barrierattr_getpshared() argument 55 *pshared = !!a->__attr; in pthread_barrierattr_getpshared() 65 int pthread_condattr_getpshared(const pthread_condattr_t *restrict a, int *restrict pshared) in pthread_condattr_getpshared() argument 67 *pshared = a->__attr>>31; in pthread_condattr_getpshared() 76 int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared) in pthread_mutexattr_getpshared() argument 78 *pshared = a->__attr / 128U % 2; in pthread_mutexattr_getpshared() 94 int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *restrict a, int *restrict pshared) in pthread_rwlockattr_getpshared() argument 96 *pshared = a->__attr[0]; in pthread_rwlockattr_getpshared()
|
D | pthread_rwlockattr_setpshared.c | 3 int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *a, int pshared) in pthread_rwlockattr_setpshared() argument 5 if (pshared > 1U) return EINVAL; in pthread_rwlockattr_setpshared() 6 a->__attr[0] = pshared; in pthread_rwlockattr_setpshared()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_setpshared/ |
D | 1-1.c | 31 int pshared = PTHREAD_PROCESS_SHARED; in main() local 42 rc = pthread_barrierattr_setpshared(&ba, pshared); in main() 49 if (pthread_barrierattr_getpshared(&ba, &pshared) != 0) { in main() 54 if (pshared != PTHREAD_PROCESS_SHARED) { in main() 56 pshared); in main() 75 pshared); in main()
|
D | 2-1.c | 34 int pshared = PTHREAD_PROCESS_PRIVATE + 1; in main() local 38 if (pshared == PTHREAD_PROCESS_SHARED) { in main() 39 pshared += 1; in main() 49 rc = pthread_barrierattr_setpshared(&ba, pshared); in main()
|
/third_party/musl/libc-test/src/functional/ |
D | pthread_robust.c | 7 …((r) = (f)) == 0 || (t_error("%s failed: (pshared==%d, pi==%d) %s (" m ")\n", #f, pshared, pi, str… 9 …iled: (pshared==%d, pi==%d) got %d \"%s\" want %d \"%s\" (" m ")\n", #f, pshared, pi, r, strerror(… 26 void f(int pshared, int pi) in f() argument 40 if (pshared) in f() 79 for (int pshared=0; pshared<=1; pshared++) in main() local 81 f(pshared, pi); in main()
|
/third_party/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()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
D | 4-1.c | 34 static int pshared; variable 41 rc = pthread_spin_init(&spinlock, pshared); in fn_chld() 58 pshared = PTHREAD_PROCESS_PRIVATE; in main() 60 pshared = -1; in main() 65 rc = pthread_spin_init(&spinlock, pshared); in main()
|
D | 1-1.c | 34 int pshared; in main() local 37 pshared = PTHREAD_PROCESS_PRIVATE; in main() 39 pshared = -1; in main() 42 rc = pthread_spin_init(&spinlock, pshared); in main()
|
/third_party/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()
|
/third_party/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()
|
/third_party/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-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()
|
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()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/ |
D | 4-1.c | 25 int pshared; in main() local 39 if (pthread_rwlockattr_getpshared(&rwla, &pshared) != 0) { in main() 44 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 46 pshared); in main()
|
D | 1-1.c | 24 int pshared; in main() local 39 rc = pthread_rwlockattr_getpshared(&rwla, &pshared); in main() 47 if (pshared != PTHREAD_PROCESS_PRIVATE) { in main() 49 pshared); in main()
|
D | 2-1.c | 52 int pshared = PTHREAD_PROCESS_SHARED; in main() local 64 if (pthread_rwlockattr_setpshared(&rwla, pshared) != 0) { in main() 69 if (pthread_rwlockattr_getpshared(&rwla, &pshared) != 0) { in main() 75 if (pshared != PTHREAD_PROCESS_SHARED) { in main() 77 pshared); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/ |
D | 4-2.c | 162 long pshared, mf; in main() local 171 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main() 177 output(" TSH : %li\n", pshared); in main() 179 if ((mf < 0) || (pshared < 0)) in main() 197 pshared = -1; /* We won't do this testing anyway */ in main() 283 if ((pshared > 0) && (scenarii[sc].m_pshared != 0)) { in main() 302 if ((pshared > 0) && (scenarii[sc].fork != 0)) { in main()
|
D | 2-1.c | 141 long pshared, mf; in main() local 147 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main() 153 output(" TSH : %li\n", pshared); in main() 155 if ((mf < 0) || (pshared < 0)) in main() 165 pshared = -1; /* We won't do this testing anyway */ in main() 247 if ((pshared > 0) && (scenarii[sc].m_pshared != 0)) { in main() 266 if ((pshared > 0) && (scenarii[sc].fork != 0)) { in main()
|
D | 1-2.c | 164 long pshared, mf; in main() local 170 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main() 176 output(" TSH : %li\n", pshared); in main() 178 if ((mf < 0) || (pshared < 0)) in main() 196 pshared = -1; /* We won't do this testing anyway */ in main() 282 if ((pshared > 0) && (scenarii[sc].m_pshared != 0)) { in main() 301 if ((pshared > 0) && (scenarii[sc].fork != 0)) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/ |
D | 2-1.c | 62 int pshared = PTHREAD_PROCESS_SHARED; in main() local 86 if (pthread_barrierattr_setpshared(&ba, pshared) != 0) { in main() 91 if (pthread_barrierattr_getpshared(&ba, &pshared) != 0) { in main() 97 if (pshared != PTHREAD_PROCESS_SHARED) { in main() 98 printf("Test FAILED: Incorrect pshared value %d\n", pshared); in main()
|