/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/ |
D | threads_scenarii.c | 45 } scenarii[] = variable 138 #define NSCENAR (sizeof(scenarii) / sizeof(scenarii[0])) 172 scenarii[i].descr); in scenar_init() 175 ret = pthread_attr_init(&scenarii[i].ta); in scenar_init() 182 if (scenarii[i].detached == 1) { in scenar_init() 184 pthread_attr_setdetachstate(&scenarii[i].ta, in scenar_init() 191 pthread_attr_getdetachstate(&scenarii[i].ta, &old); in scenar_init() 207 if (scenarii[i].explicitsched == 1) in scenar_init() 209 pthread_attr_setinheritsched(&scenarii[i]. in scenar_init() 214 pthread_attr_setinheritsched(&scenarii[i]. in scenar_init() [all …]
|
D | stress.c | 128 pthread_cleanup_push(cleanup, &scenarii[sc].sem); in threaded() 173 if (scenarii[sc].altstack != 0) in main() 178 &scenarii[sc].ta, threaded, in main() 180 switch (scenarii[sc].result) { in main() 216 sem_wait(&scenarii[sc].sem); in main() 230 if ((scenarii[sc].altstack == 0) in main() 231 && (scenarii[sc].detached == 0) in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/testfrmw/ |
D | threads_scenarii.c | 88 } scenarii[] = variable 188 #define NSCENAR (sizeof(scenarii) / sizeof(scenarii[0])) 224 i, scenarii[i].descr); in scenar_init() 227 ret = pthread_attr_init(&scenarii[i].ta); in scenar_init() 233 if (scenarii[i].detached == 1) { in scenar_init() 234 ret = pthread_attr_setdetachstate(&scenarii[i].ta, in scenar_init() 240 pthread_attr_getdetachstate(&scenarii[i].ta, &old); in scenar_init() 258 if (scenarii[i].explicitsched == 1) in scenar_init() 260 pthread_attr_setinheritsched(&scenarii in scenar_init() 265 pthread_attr_setinheritsched(&scenarii in scenar_init() [all …]
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/ |
D | threads_scenarii.c | 45 } scenarii[] = variable 205 #define NSCENAR (sizeof(scenarii) / sizeof(scenarii[0])) 239 scenarii[i].descr); in scenar_init() 242 ret = pthread_attr_init(&scenarii[i].ta); in scenar_init() 249 if (scenarii[i].detached == 1) { in scenar_init() 251 pthread_attr_setdetachstate(&scenarii[i].ta, in scenar_init() 258 pthread_attr_getdetachstate(&scenarii[i].ta, &old); in scenar_init() 274 if (scenarii[i].explicitsched == 1) in scenar_init() 276 pthread_attr_setinheritsched(&scenarii[i]. in scenar_init() 281 pthread_attr_setinheritsched(&scenarii[i]. in scenar_init() [all …]
|
D | stress.c | 134 ret = sem_post(&scenarii[me].sem); in threaded() 141 output("[child%d] posted semaphore %p\n", me, &scenarii[me].sem); in threaded() 208 pthread_create(&creation[sc], &scenarii[sc].ta, in main() 212 switch (scenarii[sc].result) { in main() 242 sc, &scenarii[sc].sem); in main() 245 ret = sem_wait(&scenarii[sc].sem); in main() 312 if (scenarii[sc].detached == 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/ |
D | threads_scenarii.c | 45 } scenarii[] = variable 138 #define NSCENAR (sizeof(scenarii) / sizeof(scenarii[0])) 172 scenarii[i].descr); in scenar_init() 175 ret = pthread_attr_init(&scenarii[i].ta); in scenar_init() 182 if (scenarii[i].detached == 1) { in scenar_init() 184 pthread_attr_setdetachstate(&scenarii[i].ta, in scenar_init() 191 pthread_attr_getdetachstate(&scenarii[i].ta, &old); in scenar_init() 207 if (scenarii[i].explicitsched == 1) in scenar_init() 209 pthread_attr_setinheritsched(&scenarii[i]. in scenar_init() 214 pthread_attr_setinheritsched(&scenarii[i]. in scenar_init() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
D | 3-2.c | 388 ret = sem_post(&scenarii[sc].sem); in schedtest() 424 scenarii[sc].descr); in main() 430 if ((scenarii[sc].altstack == 0) in main() 431 && (scenarii[sc].altsize == 1)) { in main() 437 test_stack(&scenarii[sc].ta, in main() 442 if (scenarii[sc].guard == 2) { in main() 454 if ((ret != 2) && (scenarii[sc].result == 1)) { in main() 463 if ((ret == 2) && (scenarii[sc].result == 2)) { in main() 469 if ((ret == 2) && (scenarii[sc].result == 0)) { in main() 476 pthread_attr_setstacksize(&scenarii[sc].ta, in main() [all …]
|
D | 1-5.c | 116 ret = sem_post(&scenarii[sc].sem); in overflow() 159 if (scenarii[sc].bottom != NULL) { in threaded() 166 stack_start = (intptr_t) scenarii[sc].bottom; in threaded() 172 output("Stack bottom: %p\n", scenarii[sc].bottom); in threaded() 184 if ((scenarii[sc].bottom == NULL) /* no alternative stack was specified */ in threaded() 185 &&(scenarii[sc].guard == 2) /* guard area size is 1 memory page */ in threaded() 186 &&(scenarii[sc].altsize == 1)) { /* We know the stack size */ in threaded() 235 …ret = pthread_create(&th, &scenarii[sc].ta, overflow, NULL); /* Create a new thread with the same … in threaded() 241 if (scenarii[sc].detached == 0) { in threaded() 250 ret = sem_wait(&scenarii[sc].sem); in threaded() [all …]
|
D | 15-1.c | 109 if (scenarii[sc].bottom != NULL) { in threaded() 129 output("Current stack : %p -> %p\n", scenarii[sc].bottom, in threaded() 130 sz + (long)scenarii[sc].bottom); in threaded() 134 if ((((long)scenarii[sc].bottom) < ((long)child_stack)) in threaded() 136 (((long)scenarii[sc].bottom) + sz))) { in threaded() 144 ret = sem_post(&scenarii[sc].sem); in threaded()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/ |
D | 1-2.c | 107 ret = sem_post(&(scenarii[sc].sem)); in threaded() 130 scenarii[sc].descr); in main() 133 if (scenarii[sc].detached != 0) { /* only joinable threads can be detached */ in main() 135 pthread_attr_setdetachstate(&scenarii[sc].ta, in main() 147 pthread_create(&child, &scenarii[sc].ta, threaded, in main() 148 (scenarii[sc].detached != 0) ? &ret : NULL); in main() 149 switch (scenarii[sc].result) { in main() 179 ret = sem_wait(&(scenarii[sc].sem)); in main() 188 if (scenarii[sc].detached == 0) { in main()
|
D | 2-2.c | 118 ret = sem_post(&(scenarii[sc].sem)); in threaded() 147 scenarii[sc].descr); in main() 150 if (scenarii[sc].detached != 0) { /* only joinable threads can be detached */ in main() 152 pthread_attr_setdetachstate(&scenarii[sc].ta, in main() 164 pthread_create(&child, &scenarii[sc].ta, threaded, in main() 165 (scenarii[sc].detached != 0) ? &ret : NULL); in main() 166 switch (scenarii[sc].result) { in main() 195 if (scenarii[sc].detached == 0) { in main() 222 ret = sem_timedwait(&(scenarii[sc].sem), &ts); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/ |
D | 2-2.c | 76 } scenarii[] = { variable 96 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) 123 ret = pthread_mutexattr_settype(&ma[i], scenarii[i].m_type); in main() 129 if ((pshared > 0) && (scenarii[i].m_pshared != 0)) { in main() 166 stri = scenarii[i].descr; in main() 172 strj = scenarii[j].descr; in main()
|
D | 5-2.c | 77 } scenarii[] = { variable 97 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) 124 ret = pthread_mutexattr_settype(&ma[i], scenarii[i].m_type); in main() 130 if ((pshared > 0) && (scenarii[i].m_pshared != 0)) { in main() 165 stri = scenarii[i].descr; in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/ |
D | 1-2.c | 89 } scenarii[] = { variable 127 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) 261 scenarii[sc].descr); in main() 272 ret = pthread_mutexattr_settype(&ma, scenarii[sc].m_type); in main() 277 output("[parent] Mutex type : %i\n", scenarii[sc].m_type); in main() 282 if ((pshared > 0) && (scenarii[sc].m_pshared != 0)) { in main() 301 if ((pshared > 0) && (scenarii[sc].fork != 0)) { in main() 335 if (scenarii[sc].m_type == PTHREAD_MUTEX_RECURSIVE) { in main()
|
D | 2-1.c | 94 } scenarii[] = { variable 104 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) 227 scenarii[sc].descr); in main() 238 ret = pthread_mutexattr_settype(&ma, scenarii[sc].m_type); in main() 243 output("[parent] Mutex type : %i\n", scenarii[sc].m_type); in main() 247 if ((pshared > 0) && (scenarii[sc].m_pshared != 0)) { in main() 266 if ((pshared > 0) && (scenarii[sc].fork != 0)) { in main() 300 if (scenarii[sc].m_type == PTHREAD_MUTEX_RECURSIVE) { in main()
|
D | 4-2.c | 87 } scenarii[] = { variable 125 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) 262 scenarii[sc].descr); in main() 273 ret = pthread_mutexattr_settype(&ma, scenarii[sc].m_type); in main() 278 output("[parent] Mutex type : %i\n", scenarii[sc].m_type); in main() 283 if ((pshared > 0) && (scenarii[sc].m_pshared != 0)) { in main() 302 if ((pshared > 0) && (scenarii[sc].fork != 0)) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/ |
D | 6-1.c | 174 ret = sem_post(&scenarii[sc].sem); in threaded() 252 scenarii[sc].descr); in main() 255 ret = pthread_create(&child, &scenarii[sc].ta, threaded, &ctl); in main() 256 switch (scenarii[sc].result) { in main() 284 if (scenarii[sc].detached == 0) { in main() 293 ret = sem_wait(&scenarii[sc].sem); in main()
|
D | 1-2.c | 115 if (scenarii[i].detached == 0) { in main() 119 scenarii[i].descr); in main() 123 pthread_create(&child, &scenarii[i].ta, threaded, in main() 125 switch (scenarii[i].result) { in main()
|
D | 4-1.c | 137 if (scenarii[i].detached == 0) { in main() 141 scenarii[i].descr); in main() 145 pthread_create(&child, &scenarii[i].ta, threaded, in main() 147 switch (scenarii[i].result) { in main()
|
D | 2-2.c | 133 if (scenarii[i].detached == 0) { in main() 137 scenarii[i].descr); in main() 145 pthread_create(&child, &scenarii[i].ta, threaded, in main() 147 switch (scenarii[i].result) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/ |
D | 2-2.c | 105 } scenarii[] = { variable 363 for (i = 0; i < (sizeof(scenarii) / sizeof(scenarii[0])); i++) { in main() 366 scenarii[i].descr); in main() 382 ret = pthread_mutexattr_settype(&ma, scenarii[i].m_type); in main() 387 output("[parent] Mutex type : %i\n", scenarii[i].m_type); in main() 391 if ((pshared > 0) && (scenarii[i].mc_pshared != 0)) { in main() 418 if ((cs > 0) && (scenarii[i].c_clock != 0)) { in main() 436 if ((pshared > 0) && (scenarii[i].fork != 0)) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
D | 4-2.c | 76 } scenarii[] = { variable 306 for (i = 0; i < (sizeof(scenarii) / sizeof(scenarii[0])); i++) { in main() 310 scenarii[i].descr); in main() 327 pthread_mutexattr_settype(&ma, scenarii[i].m_type); in main() 334 scenarii[i].m_type); in main() 338 if ((pshared > 0) && (scenarii[i].mc_pshared != 0)) { in main() 367 if ((cs > 0) && (scenarii[i].c_clock != 0)) { in main() 394 if ((pshared > 0) && (scenarii[i].fork != 0)) { in main()
|
D | 2-4.c | 77 } scenarii[] = { variable 349 for (i = 0; i < (sizeof(scenarii) / sizeof(scenarii[0])); i++) { in main() 352 scenarii[i].descr); in main() 368 ret = pthread_mutexattr_settype(&ma, scenarii[i].m_type); in main() 373 output("[parent] Mutex type : %i\n", scenarii[i].m_type); in main() 377 if ((pshared > 0) && (scenarii[i].mc_pshared != 0)) { in main() 404 if ((cs > 0) && (scenarii[i].c_clock != 0)) { in main() 422 if ((pshared > 0) && (scenarii[i].fork != 0)) { in main()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/ |
D | stress1.c | 121 } scenarii[] = { variable 195 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) 493 scenarii[i].descr); in main() 512 ret = pthread_mutexattr_settype(&ma, scenarii[i].m_type); in main() 517 output("[parent] Mutex type : %i\n", scenarii[i].m_type); in main() 522 if ((pshared > 0) && (scenarii[i].mc_pshared != 0)) { in main() 549 if ((cs > 0) && (scenarii[i].c_clock != 0)) { in main() 571 if ((pshared > 0) && (scenarii[i].fork != 0)) { in main()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/ |
D | stress1.c | 131 } scenarii[] = { variable 205 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) 487 scenarii[i].descr); in main() 506 ret = pthread_mutexattr_settype(&ma, scenarii[i].m_type); in main() 511 output("[parent] Mutex type : %i\n", scenarii[i].m_type); in main() 516 if ((pshared > 0) && (scenarii[i].mc_pshared != 0)) { in main() 543 if ((cs > 0) && (scenarii[i].c_clock != 0)) { in main() 565 if ((pshared > 0) && (scenarii[i].fork != 0)) { in main()
|