/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/ |
1-1.c | 28 int rc; local 31 if ((rc = pthread_condattr_init(&condattr)) != 0) { 32 fprintf(stderr, "Error at pthread_condattr_init(), rc=%d\n", 33 rc); 38 rc = pthread_condattr_setclock(&condattr, CLOCK_REALTIME); 39 if (rc != 0) {
|
1-3.c | 40 int rc; local 48 if ((rc = pthread_condattr_init(&condattr)) != 0) { 49 fprintf(stderr, "Error at pthread_condattr_init(), rc=%d\n", 50 rc); 62 rc = pthread_condattr_setclock(&condattr, clockid); 63 if (rc != EINVAL) { 66 rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getspecific/ |
3-1.c | 29 void *rc; local 36 rc = pthread_getspecific(key); 37 if (rc != NULL) { 40 (long)rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/ |
2-1.c | 29 void *rc; local 32 rc = pthread_getspecific(key); 33 if (rc != NULL) { 44 rc = pthread_getspecific(key); 45 if (rc != NULL) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/speculative/ |
5-1.c | 45 int i, rc; local 48 rc = pthread_key_create(&keys[i], NULL); 50 if (rc != 0) 55 if (rc == EAGAIN) { 59 printf("Expected EAGAIN on exceeding the limit, got: %d\n", rc); 64 if (rc == EAGAIN) { 69 printf("Error: pthread_key_create() failed with %d\n", rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/ |
3-1.c | 21 int rc; local 24 if ((rc = pthread_mutex_init(&mutex, NULL)) != 0) { 25 fprintf(stderr, "Fail to initialize mutex, rc=%d\n", rc); 29 if ((rc = pthread_mutex_destroy(&mutex)) == 0) { 35 else if (rc == EBUSY) { 38 } else if (rc == EINVAL) { 44 printf("Test FAILED (error: %i)\n", rc);
|
5-1.c | 20 int rc; local 23 if ((rc = pthread_mutex_init(&mutex, NULL)) != 0) { 24 fprintf(stderr, "Fail to initialize mutex, rc=%d\n", rc); 29 if ((rc = pthread_mutex_lock(&mutex)) != 0) { 30 fprintf(stderr, "Error at pthread_mutex_lock(), rc=%d\n", rc); 35 if ((rc = pthread_mutex_unlock(&mutex)) != 0) { 36 fprintf(stderr, "Error at pthread_mutex_unlock(), rc=%d\n", rc); [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/ |
2-1.c | 22 int rc; local 25 if ((rc = pthread_mutex_init(&mutex, NULL)) != 0) { 26 fprintf(stderr, "Fail to initialize mutex, rc=%d\n", rc); 32 if ((rc = pthread_mutex_lock(&mutex)) != 0) { 33 fprintf(stderr, "Fail to lock the mutex, rc=%d\n", rc); 41 if ((rc = pthread_mutex_unlock(&mutex)) != 0) { 42 fprintf(stderr, "Fail to unlock the mutex, rc=%d\n", rc); [all...] |
4-1.c | 22 int rc; local 25 if ((rc = pthread_mutexattr_init(&mta)) != 0) { 26 fprintf(stderr, "Error at pthread_mutexattr_init(), rc=%d\n", 27 rc); 32 if ((rc = pthread_mutex_init(&mutex, &mta)) == 0) { 38 else if (rc == ENOMEM) { 42 } else if (rc == EAGAIN) { 46 } else if (rc == EPERM) { 49 } else if (rc == EBUSY) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/ |
2-1.c | 21 int rc; local 24 if ((rc = pthread_mutex_init(&mutex, NULL)) != 0) { 25 fprintf(stderr, "Error at pthread_mutex_init(), rc=%d\n", rc); 30 if ((rc = pthread_mutex_lock(&mutex)) == 0) { 37 else if (rc == EINVAL) { 40 } else if (rc == EAGAIN) { 44 } else if (rc == EDEADLK) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/ |
3-1.c | 21 int rc; local 24 if ((rc = pthread_mutex_init(&mutex, NULL)) != 0) { 25 fprintf(stderr, "Error at pthread_mutex_init(), rc=%d\n", rc); 30 if ((rc = pthread_mutex_trylock(&mutex)) == 0) { 39 else if (rc == EBUSY) { 41 } else if (rc == EINVAL) { 43 } else if (rc == EAGAIN) {
|
4-1.c | 28 int rc; local 30 if ((rc = pthread_mutex_lock(&mutex)) != 0) { 31 fprintf(stderr, "Error at pthread_mutex_lock(), rc=%d\n", rc); 35 rc = pthread_mutex_trylock(&mutex); 36 if (rc != EBUSY) { 37 fprintf(stderr, "Expected %d(EBUSY), got %d\n", EBUSY, rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/ |
1-1.c | 29 int rc; local 32 if ((rc = pthread_mutex_lock(&mutex)) != 0) { 33 fprintf(stderr, "Error at pthread_mutex_lock(), rc=%d\n", rc); 38 if ((rc = pthread_mutex_unlock(&mutex)) != 0) { 44 if ((rc = pthread_mutex_trylock(&mutex)) != 0) { 50 if ((rc = pthread_mutex_unlock(&mutex)) != 0) {
|
3-1.c | 21 int rc; local 24 if ((rc = pthread_mutex_init(&mutex, NULL)) != 0) { 25 fprintf(stderr, "Error at pthread_mutex_init(), rc=%d\n", rc); 29 if ((rc = pthread_mutex_lock(&mutex)) != 0) { 30 fprintf(stderr, "Error at pthread_mutex_lock(), rc=%d\n", rc); 35 if ((rc = pthread_mutex_unlock(&mutex)) == 0) { 41 else if (rc == EPERM) { 44 } else if (rc == EINVAL) [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_destroy/ |
1-1.c | 25 int rc; local 28 if ((rc = pthread_mutexattr_init(&mta)) != 0) { 35 fprintf(stderr, "Error at pthread_mutexattr_destroy(), rc=%d\n", 36 rc);
|
4-1.c | 26 int rc; local 30 if ((rc = pthread_mutexattr_destroy(mta)) == EINVAL) { 36 EINVAL, rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprotocol/ |
1-1.c | 28 int protocol, rc; local 37 if ((rc = pthread_mutexattr_getprotocol(&mta, &protocol)) != 0) { 39 ("Test FAILED: Error in pthread_mutexattr_getprotocol rc=%d\n", 40 rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_init/ |
1-1.c | 26 int rc; local 32 if ((rc = pthread_mutexattr_init(&mta)) != 0) { 33 fprintf(stderr, "Error at pthread_mutexattr_init(), rc=%d\n", 34 rc);
|
3-1.c | 25 int rc; local 28 if ((rc = pthread_mutexattr_init(&mta)) == 0) { 34 else if (rc == ENOMEM) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_destroy/ |
3-1.c | 27 int rc; local 40 rc = pthread_rwlock_destroy(&rwlock); 41 if (rc == EBUSY) { 44 } else if (rc == 0) { 51 rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/ |
6-1.c | 31 int rc; local 34 rc = pthread_rwlock_init(&rwlock, NULL); 35 if (rc != 0) { 38 rc); 43 rc = pthread_rwlock_init(&rwlock, NULL); 51 if (rc == EBUSY) { 54 } else if (rc == 0) { 61 rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/speculative/ |
3-1.c | 28 int rc; local 31 rc = pthread_rwlock_trywrlock(&rwlock); 44 if (rc != 0) { 45 if (rc == EINVAL) { 49 printf("Test FAILED: Incorrect return code %d\n", rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/ |
4-1.c | 33 int rc; local 40 rc = pthread_rwlock_unlock(&rwlock); 41 if (rc != 0) { 42 if (rc == EINVAL) { 49 rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/ |
3-1.c | 31 int rc; local 51 rc = pthread_rwlock_wrlock(&rwlock); 64 if (rc != 0) { 65 if (rc == EDEADLK) { 70 printf("Test FAILED: Incorrect return code %d\n", rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_destroy/ |
1-1.c | 26 int rc; local 29 rc = pthread_rwlockattr_init(&rwla); 30 if (rc != 0) { 32 rc); 37 rc = pthread_rwlockattr_destroy(&rwla); 38 if (rc != 0) { 41 rc);
|