Searched defs:rc (Results 1 - 25 of 449) sorted by relevance

1234567891011>>

/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)
H A Dpolicyvers.c8 int rc; local
10 rc = security_policyvers();
11 if (rc < 0) {
16 printf("%d\n", rc);
H A Dsetfilecon.c8 int rc, i; local
16 rc = setfilecon(argv[i], argv[1]);
17 if (rc < 0) {
H A Dgetfilecon.c9 int rc, i; local
17 rc = getfilecon(argv[i], &buf);
18 if (rc < 0) {
H A Dgetpidcon.c10 int rc; local
22 rc = getpidcon(pid, &buf);
23 if (rc < 0) {
H A Dsetenforce.c18 int rc = 0; local
28 rc = security_setenforce(atoi(argv[1]));
31 rc = security_setenforce(1);
33 rc = security_setenforce(0);
37 if (rc < 0) {
H A Dgetseuser.c12 int rc, n, i; local
19 rc = getseuserbyname(argv[1], &seuser, &level);
20 if (rc) {
H A Dtogglesebool.c26 int rc, i, commit = 0; local
41 rc = security_get_boolean_active(argv[i]);
42 switch (rc) {
/external/strace/tests/
H A Dipc_msg.c8 int rc, id; local
25 rc = msgctl(id, MSG_STAT, &ds);
26 if (rc != id) {
31 if (-1 != rc || EINVAL != errno)
38 rc = 0;
43 return rc;
46 rc = 1;
H A Dipc_shm.c8 int rc, id; local
25 rc = shmctl(id, SHM_STAT, &ds);
26 if (rc != id) {
31 if (-1 != rc || EINVAL != errno)
38 rc = 0;
43 return rc;
46 rc = 1;
/external/toybox/toys/other/
H A Dreadahead.c24 int rc; local
28 if (sizeof(long) == 4) rc = syscall(__NR_readahead, fd, 0, 0, INT_MAX);
29 else rc = syscall(__NR_readahead, fd, 0, INT_MAX);
31 if (rc) perror_msg("readahead: %s", name);
/external/clang/test/SemaCXX/
H A DPR5086-ambig-resolution-enum.cpp11 void foo(const C& rc) { argument
13 const char *p = rc.fun1(BUFLEN - 2, C::e1);
/external/libexif/test/
H A Dtest-sorted.c31 int rc = 0; local
40 rc = 1;
44 rc = 1;
49 return rc;
/external/libopus/silk/float/
H A Dk2a_FLP.c37 const silk_float *rc, /* I reflection coefficients [order] */
49 A[ n ] += Atmp[ k - n - 1 ] * rc[ k ];
51 A[ k ] = -rc[ k ];
35 silk_k2a_FLP( silk_float *A, const silk_float *rc, opus_int32 order ) argument
/external/selinux/libsepol/cil/test/unit/
H A Dtest_cil_fqn.c57 int rc = cil_fqn_qualify(test_db->ast->root); local
58 CuAssertIntEquals(tc, SEPOL_OK, rc);
73 int rc = cil_fqn_qualify(test_db->ast->root); local
74 CuAssertIntEquals(tc, SEPOL_OK, rc);
H A Dtest_cil_parser.c41 int rc = 0; local
52 rc = cil_parser("policy.cil", data->buffer, data->file_size + 2, &test_parse_root);
53 CuAssertIntEquals(tc, SEPOL_OK, rc);
H A Dtest_cil_tree.c57 int rc = cil_tree_init(&test_tree); local
59 CuAssertIntEquals(tc, SEPOL_OK, rc);
/external/valgrind/memcheck/tests/
H A Dsigkill.c20 int rc; local
35 rc = sigaction (i /*SIGKILL*/, &sa, NULL);
36 if (rc) perror ("");
39 rc = sigaction (i /*SIGKILL*/, NULL, &sa);
40 if (rc) perror ("");
/external/fio/exp/
H A Dtest-expression-parser.c32 int rc, bye = 0; local
40 rc = strlen(buffer);
41 if (rc > 0 && buffer[rc - 1] == '\n')
42 buffer[rc - 1] = '\0';
43 rc = evaluate_arithmetic_expression(buffer, &result, &dresult, 1.0, 0);
44 if (!rc) {
/external/libcap-ng/libcap-ng-0.7/bindings/python/test/
H A Dcapng-test.py32 rc = capng.capng_update(capng.CAPNG_ADD, capng.CAPNG_EFFECTIVE, i) variable
33 if rc:
37 rc = capng.capng_have_capability(capng.CAPNG_EFFECTIVE, int(i)) variable
38 if rc <= capng.CAPNG_NONE:
48 rc = capng.capng_update(capng.CAPNG_DROP, capng.CAPNG_EFFECTIVE, i) variable
49 if rc:
58 rc = capng.capng_update(capng.CAPNG_ADD, capng.CAPNG_EFFECTIVE, i) variable
59 if rc:
/external/libcap-ng/libcap-ng-0.7/src/test/
H A Dlib_test.c32 int rc, i, len, last = CAP_LAST_CAP; local
64 rc = capng_update(CAPNG_ADD, CAPNG_EFFECTIVE, i);
65 if (rc) {
69 rc = capng_have_capability(CAPNG_EFFECTIVE, i);
70 if (rc == 0) {
83 rc = capng_update(CAPNG_ADD, CAPNG_BOUNDING_SET, i);
84 if (rc) {
88 rc = capng_have_capability(CAPNG_BOUNDING_SET, i);
89 if (rc == 0) {
120 rc
[all...]
/external/libexif/contrib/examples/
H A Dthumbnail.c13 int rc = 1; local
19 return rc;
52 rc = 0;
55 rc = 2;
59 rc = 1;
65 return rc;
/external/selinux/libselinux/src/
H A Dfsetfilecon.c12 int rc = fsetxattr(fd, XATTR_NAME_SELINUX, context, strlen(context) + 1, local
14 if (rc < 0 && errno == ENOTSUP) {
19 rc = 0;
25 return rc;
H A Dlsetfilecon.c12 int rc = lsetxattr(path, XATTR_NAME_SELINUX, context, strlen(context) + 1, local
14 if (rc < 0 && errno == ENOTSUP) {
19 rc = 0;
25 return rc;
H A Dsetfilecon.c12 int rc = setxattr(path, XATTR_NAME_SELINUX, context, strlen(context) + 1, local
14 if (rc < 0 && errno == ENOTSUP) {
19 rc = 0;
25 return rc;

Completed in 530 milliseconds

1234567891011>>