/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_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...] |
/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/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);
|
2-1.c | 28 int rc = 0; local 31 rc = pthread_rwlockattr_init(&rwla); 32 if (rc != 0) { 38 rc = pthread_rwlockattr_destroy(&rwla); 39 if (rc != 0) { 42 rc); 47 rc = pthread_rwlockattr_init(&rwla); 49 if (rc != 0) { 50 printf("Test FAILED, with error: %d\n", 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)
|
/hardware/qcom/camera/msm8998/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; \
|
/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...] |
/hardware/qcom/camera/msm8998/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 223 int rc = MM_CAMERA_OK; local 300 int rc = MM_CAMERA_OK; local 401 int rc = MM_CAMERA_OK; local 454 int rc = MM_CAMERA_OK; local 507 int rc = MM_CAMERA_OK; local 560 int rc = MM_CAMERA_OK, rc2 = MM_CAMERA_OK; local 611 int rc = MM_CAMERA_OK, rc2 = MM_CAMERA_OK; local 680 int rc = MM_CAMERA_OK; local [all...] |
/bionic/libc/bionic/ |
close.cpp | 35 int rc = ___close(fd); local 36 if (rc == -1 && errno == EINTR) { 55 return rc;
|
/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...] |
/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...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
mdcommsg.h | 9 #define RETURNCODETOHRESULT(rc) (((rc) < 0x10000) ? HRESULT_FROM_WIN32(rc) : (rc))
|
/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 | 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_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...] |
/system/security/keystore/ |
KeyAttestationPackageInfo.cpp | 34 auto rc = parcel->writeString16(packageName_); local 35 if (rc != NO_ERROR) return rc; 36 rc = parcel->writeInt64(versionCode_); 37 if (rc != NO_ERROR) return rc; 42 auto rc = parcel->readString16(&packageName_); local 43 if (rc != NO_ERROR) return rc; 44 rc = parcel->readInt64(&versionCode_) [all...] |