/external/curl/tests/unit/ |
unit1301.c | 31 int rc; variable 33 rc = curl_strequal("iii", "III"); 34 fail_unless(rc != 0, "return code should be non-zero"); 36 rc = curl_strequal("iiia", "III"); 37 fail_unless(rc == 0, "return code should be zero"); 39 rc = curl_strequal("iii", "IIIa"); 40 fail_unless(rc == 0, "return code should be zero"); 42 rc = curl_strequal("iiiA", "IIIa"); 43 fail_unless(rc != 0, "return code should be non-zero"); 45 rc = curl_strnequal("iii", "III", 3) [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_destroy/ |
2-1.c | 27 int rc = 0; local 30 rc = pthread_rwlockattr_init(&rwla); 31 if (rc != 0) { 37 rc = pthread_rwlockattr_destroy(&rwla); 38 if (rc != 0) { 41 rc); 46 rc = pthread_rwlockattr_init(&rwla); 48 if (rc != 0) { 49 printf("Test FAILED, with error: %d\n", rc);
|
1-1.c | 25 int rc; local 28 rc = pthread_rwlockattr_init(&rwla); 29 if (rc != 0) { 31 rc); 36 rc = pthread_rwlockattr_destroy(&rwla); 37 if (rc != 0) { 40 rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/ |
2-1.c | 47 #define FAIL_AND_EXIT(f, rc) { \ 48 printf("Failed: function: %s status: %s(%u)\n", f, strerror(rc), rc); \ 56 int rc; local 58 rc = pthread_getschedparam(pthread_self(), &policy, &sp); 59 if (rc) 60 FAIL_AND_EXIT("pthread_getschedparam()", rc); 62 rc = pthread_mutex_lock(&c_mutex); 63 if (rc) 64 FAIL_AND_EXIT("pthread_mutex_lock()", rc); 94 int rc; local 141 int rc; local [all...] |
5-1.c | 27 #define ERR_MSG(p, f, rc) printf("Failed: %s function: %s error: %s (%u)\n", \ 28 p, f, strerror(rc), rc) 32 int rc; local 36 rc = pthread_attr_init(&attr); 37 if (rc) { 38 ERR_MSG("", "pthread_attr_init()", rc); 43 rc = pthread_attr_setschedpolicy(&attr, policy); 44 if (rc) { 45 ERR_MSG(label, "pthread_attr_setschedpolicy()", rc); 56 int rc; local [all...] |
4-1.c | 24 #define ERR_MSG(f, rc) printf("Failed: func: %s rc: %s (%u)\n", \ 25 f, strerror(rc), rc) 31 int rc; local 35 rc = pthread_attr_init(&attr); 36 if (rc != 0) { 37 ERR_MSG("pthread_attr_init()", rc); 41 rc = pthread_attr_setschedpolicy(&attr, INVALIDPOLICY); 42 if (rc != EINVAL) [all...] |
/device/google/marlin/camera/QCamera2/stack/common/ |
cam_cond.h | 22 int rc = 0; \ 24 rc = pthread_condattr_init(&cond_attr); \ 25 if (rc == 0) { \ 26 rc = pthread_condattr_setclock(&cond_attr, CLOCK_MONOTONIC); \ 27 if (rc == 0) { \ 28 rc = pthread_cond_init(cond, &cond_attr); \ 31 rc; \
|
/external/selinux/libselinux/utils/ |
getenforce.c | 9 int rc; local 11 rc = is_selinux_enabled(); 12 if (rc < 0) { 16 if (rc == 1) { 17 rc = security_getenforce(); 18 if (rc < 0) { 23 if (rc)
|
/device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/ |
mm_qcamera_unit_test.c | 45 int rc = MM_CAMERA_OK; local 52 rc = mm_app_open(cam_app, i, &test_obj); 53 if (rc != MM_CAMERA_OK) { 55 i, rc); 59 rc = mm_app_close(&test_obj); 60 if (rc != MM_CAMERA_OK) { 62 i, rc); 66 if (rc == MM_CAMERA_OK) { 71 LOGD("END, rc = %d\n", rc); 77 int rc = MM_CAMERA_OK; local 125 int rc = MM_CAMERA_OK; local 173 int rc = MM_CAMERA_OK; local 221 int rc = MM_CAMERA_OK; local 296 int rc = MM_CAMERA_OK; local 395 int rc = MM_CAMERA_OK; local 448 int rc = MM_CAMERA_OK; local 501 int rc = MM_CAMERA_OK; local 554 int rc = MM_CAMERA_OK, rc2 = MM_CAMERA_OK; local 605 int rc = MM_CAMERA_OK, rc2 = MM_CAMERA_OK; local 674 int rc = MM_CAMERA_OK; local [all...] |
/external/strace/tests/ |
mlockall.c | 38 int rc = mlockall(0); local 39 printf("mlockall(0) = %s\n", sprintrc(rc)); 41 rc = mlockall(MCL_CURRENT); 42 printf("mlockall(MCL_CURRENT) = %s\n", sprintrc(rc));
|
prctl-tsc.c | 48 long rc; local 50 rc = syscall(__NR_prctl, PR_SET_TSC, 0); 51 printf("prctl(PR_SET_TSC, 0 /* PR_TSC_??? */) = %s\n", sprintrc(rc)); 53 rc = syscall(__NR_prctl, PR_SET_TSC, bogus_tsc); 55 (unsigned int) bogus_tsc, sprintrc(rc)); 57 rc = syscall(__NR_prctl, PR_SET_TSC, PR_TSC_SIGSEGV); 58 printf("prctl(PR_SET_TSC, PR_TSC_SIGSEGV) = %s\n", sprintrc(rc)); 60 rc = syscall(__NR_prctl, PR_GET_TSC, NULL); 61 printf("prctl(PR_GET_TSC, NULL) = %s\n", sprintrc(rc)); 63 rc = syscall(__NR_prctl, PR_GET_TSC, tsc + 1) [all...] |
sched_rr_get_interval.c | 15 long rc; local 17 rc = syscall(__NR_sched_rr_get_interval, 0, NULL); 18 printf("sched_rr_get_interval(0, NULL) = %s\n", sprintrc(rc)); 20 rc = syscall(__NR_sched_rr_get_interval, 0, tp + 1); 21 printf("sched_rr_get_interval(0, %p) = %s\n", tp + 1, sprintrc(rc)); 23 rc = syscall(__NR_sched_rr_get_interval, -1, tp); 24 printf("sched_rr_get_interval(-1, %p) = %s\n", tp, sprintrc(rc)); 26 rc = syscall(__NR_sched_rr_get_interval, 0, tp); 27 if (rc == 0) 34 sprintrc(rc)); [all...] |
/external/strace/tests-m32/ |
mlockall.c | 38 int rc = mlockall(0); local 39 printf("mlockall(0) = %s\n", sprintrc(rc)); 41 rc = mlockall(MCL_CURRENT); 42 printf("mlockall(MCL_CURRENT) = %s\n", sprintrc(rc));
|
prctl-tsc.c | 48 long rc; local 50 rc = syscall(__NR_prctl, PR_SET_TSC, 0); 51 printf("prctl(PR_SET_TSC, 0 /* PR_TSC_??? */) = %s\n", sprintrc(rc)); 53 rc = syscall(__NR_prctl, PR_SET_TSC, bogus_tsc); 55 (unsigned int) bogus_tsc, sprintrc(rc)); 57 rc = syscall(__NR_prctl, PR_SET_TSC, PR_TSC_SIGSEGV); 58 printf("prctl(PR_SET_TSC, PR_TSC_SIGSEGV) = %s\n", sprintrc(rc)); 60 rc = syscall(__NR_prctl, PR_GET_TSC, NULL); 61 printf("prctl(PR_GET_TSC, NULL) = %s\n", sprintrc(rc)); 63 rc = syscall(__NR_prctl, PR_GET_TSC, tsc + 1) [all...] |
/external/strace/tests-mx32/ |
mlockall.c | 38 int rc = mlockall(0); local 39 printf("mlockall(0) = %s\n", sprintrc(rc)); 41 rc = mlockall(MCL_CURRENT); 42 printf("mlockall(MCL_CURRENT) = %s\n", sprintrc(rc));
|
prctl-tsc.c | 48 long rc; local 50 rc = syscall(__NR_prctl, PR_SET_TSC, 0); 51 printf("prctl(PR_SET_TSC, 0 /* PR_TSC_??? */) = %s\n", sprintrc(rc)); 53 rc = syscall(__NR_prctl, PR_SET_TSC, bogus_tsc); 55 (unsigned int) bogus_tsc, sprintrc(rc)); 57 rc = syscall(__NR_prctl, PR_SET_TSC, PR_TSC_SIGSEGV); 58 printf("prctl(PR_SET_TSC, PR_TSC_SIGSEGV) = %s\n", sprintrc(rc)); 60 rc = syscall(__NR_prctl, PR_GET_TSC, NULL); 61 printf("prctl(PR_GET_TSC, NULL) = %s\n", sprintrc(rc)); 63 rc = syscall(__NR_prctl, PR_GET_TSC, tsc + 1) [all...] |
/external/u-boot/arch/arm/mach-omap2/am33xx/ |
clk_synthesizer.c | 26 int rc; local 32 rc = i2c_write(CLK_SYNTHESIZER_I2C_ADDR, addr, 1, buf, 1); 33 if (rc) 51 int rc = 0; local 57 rc = i2c_write(CLK_SYNTHESIZER_I2C_ADDR, addr, 1, cmd, 2); 58 if (rc) 61 return rc; 74 int rc; local 77 rc = i2c_probe(CLK_SYNTHESIZER_I2C_ADDR); 78 if (rc) { [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/ |
1-1.c | 27 #define ERR_MSG(f, rc) printf("Failed: func: %s rc: %s (%u)\n", \ 28 f, strerror(rc), rc); 35 int rc; local 40 rc = pthread_condattr_init(&condattr); 41 if (rc) 46 rc = pthread_cond_init(&cond1, &condattr); 47 if (rc) 51 rc = pthread_cond_init(&cond2, NULL) [all...] |
4-3.c | 33 #define ERR_MSG(f, rc) printf("Failed: function: %s status: %s(%u)\n", \ 34 f, strerror(rc), rc) 40 int rc; local 44 rc = pthread_cond_init(&cond, NULL); 45 if (rc) { 46 ERR_MSG("pthread_cond_init()", rc); 50 rc = pthread_cond_init(&cond, NULL); 51 if (rc && rc != EBUSY) [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/ |
1-1.c | 26 #define ERR_MSG(f, rc) printf("Failed: func: %s rc: %s (%u)\n", \ 27 f, strerror(rc), rc) 33 int rc; local 35 rc = pthread_getschedparam(pthread_self(), &policy, &sparam); 36 if (rc != 0) { 37 ERR_MSG("pthread_getschedparam()", rc); 46 int rc; local 48 rc = pthread_create(&new_th, NULL, thread_func, NULL) [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/ |
6-1.c | 30 int rc; local 33 rc = pthread_rwlock_init(&rwlock, NULL); 34 if (rc != 0) { 37 rc); 42 rc = pthread_rwlock_init(&rwlock, NULL); 50 if (rc == EBUSY) { 53 } else if (rc == 0) { 60 rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/ |
1-1.c | 24 int rc; local 27 if ((rc = pthread_condattr_init(&condattr)) != 0) { 28 fprintf(stderr, "Error at pthread_condattr_init(), rc=%d\n", 29 rc); 34 if ((rc = pthread_cond_init(&cond1, &condattr)) != 0) { 35 fprintf(stderr, "Fail to initialize cond1, rc=%d\n", rc); 40 if ((rc = pthread_cond_init(&cond2, NULL)) != 0) { 41 fprintf(stderr, "Fail to initialize cond2, rc=%d\n", rc); [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/ |
1-1.c | 24 int rc; local 27 if ((rc = pthread_mutexattr_init(&mta)) != 0) { 28 fprintf(stderr, "Error at pthread_mutexattr_init(), rc=%d\n", 29 rc); 34 if ((rc = pthread_mutex_init(&mutex1, &mta)) != 0) { 35 fprintf(stderr, "Fail to initialize mutex1, rc=%d\n", rc); 40 if ((rc = pthread_mutex_init(&mutex2, NULL)) != 0) { 41 fprintf(stderr, "Fail to initialize mutex2, rc=%d\n", rc); [all...] |
/external/skia/gm/ |
skbug_4868.cpp | 18 SkRect rc = SkRect::MakeLTRB(158.0f, 5994.80273f, 165.0f, 5998.80225f); local 19 canvas->clipRect(rc); 21 canvas->drawLine(rc.left(), rc.top(), rc.right(), rc.bottom(), paint); 22 canvas->drawLine(rc.right(), rc.top(), rc.left(), rc.bottom(), paint) [all...] |
/external/skqp/gm/ |
skbug_4868.cpp | 18 SkRect rc = SkRect::MakeLTRB(158.0f, 5994.80273f, 165.0f, 5998.80225f); local 19 canvas->clipRect(rc); 21 canvas->drawLine(rc.left(), rc.top(), rc.right(), rc.bottom(), paint); 22 canvas->drawLine(rc.right(), rc.top(), rc.left(), rc.bottom(), paint) [all...] |