Searched refs:rc (Results 1 - 25 of 2426) sorted by relevance

1234567891011>>

/external/curl/tests/unit/
H A Dunit1301.c31 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
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/
H A D2-1.c47 #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...]
H A D5-1.c27 #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...]
H A D4-1.c24 #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 !
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_destroy/
H A D1-1.c26 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);
H A D2-1.c28 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/
H A Dgetenforce.c9 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)
/external/python/cpython3/Lib/venv/
H A D__main__.py4 rc = 1 variable
7 rc = 0 variable
10 sys.exit(rc)
/external/strace/tests/
H A Dmlockall.c38 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));
H A Dprctl-tsc.c48 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
[all...]
H A Dsched_rr_get_interval.c15 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...]
H A Dseccomp-strict.c45 long rc; local
47 rc = syscall(__NR_seccomp, -1L, -1L, addr);
49 " = %s\n", -1, -1, (unsigned long long) addr, sprintrc(rc));
52 rc = syscall(__NR_seccomp, 0, 0, 0);
53 if (rc) {
55 sprintrc(rc));
57 rc = 0;
63 rc = write(1, text1, LENGTH_OF(text1)) != LENGTH_OF(text1);
66 rc += write(1, text2, LENGTH_OF(text2)) != LENGTH_OF(text2);
67 return !!syscall(__NR_exit, rc);
[all...]
H A Dxattr.c51 long rc; local
54 rc = fsetxattr(-1, 0, 0, 0, XATTR_CREATE);
56 sprintrc(rc));
58 rc = fsetxattr(-1, 0, z_value, 0, XATTR_CREATE);
60 sprintrc(rc));
62 rc = fsetxattr(-1, name, big, XATTR_SIZE_MAX + 1, XATTR_CREATE);
64 name, big, XATTR_SIZE_MAX + 1, sprintrc(rc));
66 rc = fsetxattr(-1, name, value, sizeof(c_value), XATTR_CREATE);
68 name, value, (unsigned) sizeof(c_value), sprintrc(rc));
70 rc
[all...]
/external/strace/tests-m32/
H A Dmlockall.c38 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));
H A Dprctl-tsc.c48 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
[all...]
/external/strace/tests-mx32/
H A Dmlockall.c38 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));
H A Dprctl-tsc.c48 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
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/
H A D1-1.c27 #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
[all...]
H A D4-3.c33 #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 !
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/
H A D1-1.c26 #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
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/
H A D6-1.c31 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/
H A D1-1.c24 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/
H A D1-1.c24 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/
H A Dskbug_4868.cpp18 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
[all...]
/external/skqp/gm/
H A Dskbug_4868.cpp18 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
[all...]

Completed in 6328 milliseconds

1234567891011>>