Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 922) sorted by relevance

12345678910>>...37

/external/libxml2/doc/examples/
DtestWriter.c71 int rc; in testXmlwriterFilename() local
85 rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); in testXmlwriterFilename()
86 if (rc < 0) { in testXmlwriterFilename()
94 rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); in testXmlwriterFilename()
95 if (rc < 0) { in testXmlwriterFilename()
107 rc = xmlTextWriterWriteComment(writer, tmp); in testXmlwriterFilename()
108 if (rc < 0) { in testXmlwriterFilename()
116 rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); in testXmlwriterFilename()
117 if (rc < 0) { in testXmlwriterFilename()
124 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", in testXmlwriterFilename()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_ratectrl.c117 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_pframe_target_size() local
118 const int min_frame_target = MAX(rc->min_frame_bandwidth, in vp9_rc_clamp_pframe_target_size()
119 rc->avg_frame_bandwidth >> 5); in vp9_rc_clamp_pframe_target_size()
122 if (cpi->refresh_golden_frame && rc->is_src_frame_alt_ref) { in vp9_rc_clamp_pframe_target_size()
130 if (target > rc->max_frame_bandwidth) in vp9_rc_clamp_pframe_target_size()
131 target = rc->max_frame_bandwidth; in vp9_rc_clamp_pframe_target_size()
136 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_iframe_target_size() local
139 const int max_rate = rc->avg_frame_bandwidth * in vp9_rc_clamp_iframe_target_size()
143 if (target > rc->max_frame_bandwidth) in vp9_rc_clamp_iframe_target_size()
144 target = rc->max_frame_bandwidth; in vp9_rc_clamp_iframe_target_size()
[all …]
/external/vboot_reference/tests/bitmaps/
DTestBmpBlock.py26 rc, out, err = runprog(prog)
27 self.assertNotEqual(0, rc)
33 rc, out, err = runprog(prog, '-c', 'case_nobmp.yaml', 'FOO')
34 self.assertNotEqual(0, rc)
39 rc, out, err = runprog(prog, '-c', 'case_badbmp.yaml', 'FOO')
40 self.assertNotEqual(0, rc)
45 rc, out, err = runprog(prog, '-z', '99', '-c', 'case_simple.yaml', 'FOO')
46 self.assertNotEqual(0, rc)
53 rc, out, err = runprog('/bin/rm', '-rf', './FOO_DIR', 'FOO')
54 self.assertEqual(0, rc)
[all …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv04_state_frag.c65 #define INIT_COMBINER(chan, ctx, rc, i) do { \ argument
68 (rc)->ctx = ctx; \
69 (rc)->unit = i; \
70 (rc)->alpha = __INIT_COMBINER_ALPHA_##chan; \
71 (rc)->premodulate = c->_NumArgs##chan == 4; \
72 (rc)->mode = c->Mode##chan; \
73 (rc)->source = c->Source##chan; \
74 (rc)->operand = c->Operand##chan; \
75 (rc)->logscale = c->ScaleShift##chan; \
76 (rc)->hw = 0; \
[all …]
Dnv10_state_frag.c81 #define INIT_COMBINER(chan, ctx, rc, i) do { \ argument
84 (rc)->ctx = ctx; \
85 (rc)->unit = i; \
86 (rc)->premodulate = c->_NumArgs##chan == 4; \
87 (rc)->mode = c->Mode##chan; \
88 (rc)->source = c->Source##chan; \
89 (rc)->operand = c->Operand##chan; \
90 (rc)->logscale = c->ScaleShift##chan; \
91 (rc)->in = (rc)->out = 0; \
97 get_input_source(struct combiner_state *rc, int source) in get_input_source() argument
[all …]
/external/selinux/libsepol/cil/src/
Dcil_resolve_ast.c109 int rc = SEPOL_ERR; in __cil_resolve_perms() local
117 rc = __cil_resolve_perms(class_symtab, common_symtab, curr->data, &sub_list); in __cil_resolve_perms()
118 if (rc != SEPOL_OK) { in __cil_resolve_perms()
125 rc = cil_symtab_get_datum(class_symtab, curr->data, &perm_datum); in __cil_resolve_perms()
126 if (rc == SEPOL_ENOENT) { in __cil_resolve_perms()
128 rc = cil_symtab_get_datum(common_symtab, curr->data, &perm_datum); in __cil_resolve_perms()
131 if (rc != SEPOL_OK) { in __cil_resolve_perms()
144 return rc; in __cil_resolve_perms()
149 int rc = SEPOL_ERR; in cil_resolve_classperms() local
154 rc = cil_resolve_name(current, cp->class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classperms()
[all …]
Dcil_verify.c51 int rc = SEPOL_ERR; in __cil_verify_name() local
58 rc = SEPOL_ERR; in __cil_verify_name()
77 return rc; in __cil_verify_name()
82 int rc = SEPOL_ERR; in __cil_verify_syntax() local
143 return rc; in __cil_verify_syntax()
148 int rc; in cil_verify_expr_syntax() local
199 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_verify_expr_syntax()
200 if (rc != SEPOL_OK) { in cil_verify_expr_syntax()
270 int rc; in cil_verify_constraint_expr_syntax() local
305 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_verify_constraint_expr_syntax()
[all …]
Dcil_binary.c287 int rc = SEPOL_ERR; in cil_common_to_policydb() local
296 rc = symtab_insert(pdb, SYM_COMMONS, key, sepol_common, SCOPE_DECL, 0, &value); in cil_common_to_policydb()
297 if (rc != SEPOL_OK) { in cil_common_to_policydb()
303 rc = symtab_init(&sepol_common->permissions, PERM_SYMTAB_SIZE); in cil_common_to_policydb()
304 if (rc != SEPOL_OK) { in cil_common_to_policydb()
314 rc = hashtab_insert(sepol_common->permissions.table, key, sepol_perm); in cil_common_to_policydb()
315 if (rc != SEPOL_OK) { in cil_common_to_policydb()
330 return rc; in cil_common_to_policydb()
335 int rc = SEPOL_ERR; in cil_classorder_to_policydb() local
349 rc = symtab_insert(pdb, SYM_CLASSES, key, sepol_class, SCOPE_DECL, 0, &value); in cil_classorder_to_policydb()
[all …]
Dcil_post.c115 int rc = 0; in cil_post_filecon_compare() local
129 rc = -1; in cil_post_filecon_compare()
131 rc = 1; in cil_post_filecon_compare()
133 rc = -1; in cil_post_filecon_compare()
135 rc = 1; in cil_post_filecon_compare()
137 rc = -1; in cil_post_filecon_compare()
139 rc = 1; in cil_post_filecon_compare()
141 rc = -1; in cil_post_filecon_compare()
143 rc = 1; in cil_post_filecon_compare()
151 return rc; in cil_post_filecon_compare()
[all …]
Dcil_build_ast.c60 int rc = SEPOL_ERR; in cil_fill_list() local
68 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_fill_list()
69 if (rc != SEPOL_OK) { in cil_fill_list()
82 return rc; in cil_fill_list()
87 int rc = SEPOL_ERR; in cil_gen_node() local
90 rc = __cil_verify_name((const char*)key); in cil_gen_node()
91 if (rc != SEPOL_OK) { in cil_gen_node()
95 rc = cil_get_symtab(ast_node->parent, &symtab, sflavor); in cil_gen_node()
96 if (rc != SEPOL_OK) { in cil_gen_node()
104 rc = cil_symtab_insert(symtab, (hashtab_key_t)key, datum, ast_node); in cil_gen_node()
[all …]
/external/llvm/tools/lli/ChildTarget/
DChildTarget.cpp101 int rc = ReadBytes(&DataSize, 4); in handleAllocateSpace() local
102 (void)rc; in handleAllocateSpace()
103 assert(rc == 4); in handleAllocateSpace()
109 rc = ReadBytes(&Alignment, 4); in handleAllocateSpace()
110 assert(rc == 4); in handleAllocateSpace()
111 rc = ReadBytes(&AllocSize, 4); in handleAllocateSpace()
112 assert(rc == 4); in handleAllocateSpace()
125 int rc = ReadBytes(&DataSize, 4); in handleLoadSection() local
126 (void)rc; in handleLoadSection()
127 assert(rc == 4); in handleLoadSection()
[all …]
/external/selinux/libsepol/src/
Dmodule_to_cil.c112 int rc = 1; in get_line() local
125 rc = 0; in get_line()
132 rc = -1; in get_line()
141 return rc; in get_line()
145 return rc; in get_line()
245 int rc = -1; in list_init() local
257 return rc; in list_init()
262 int rc = -1; in list_prepend() local
272 rc = 0; in list_prepend()
275 return rc; in list_prepend()
[all …]
/external/libselinux/src/
Davc_internal.c60 int len, rc = 0; in avc_netlink_open() local
65 rc = fd; in avc_netlink_open()
72 rc = -1; in avc_netlink_open()
85 rc = -1; in avc_netlink_open()
89 return rc; in avc_netlink_open()
101 int rc; in avc_netlink_receive() local
108 rc = poll(&pfd, 1, (blocking ? -1 : 0)); in avc_netlink_receive()
109 } while (rc < 0 && errno == EINTR); in avc_netlink_receive()
111 if (rc == 0 && !blocking) { in avc_netlink_receive()
115 else if (rc < 1) { in avc_netlink_receive()
[all …]
/external/selinux/libselinux/src/
Davc_internal.c60 int len, rc = 0; in avc_netlink_open() local
65 rc = fd; in avc_netlink_open()
72 rc = -1; in avc_netlink_open()
85 rc = -1; in avc_netlink_open()
89 return rc; in avc_netlink_open()
101 int rc; in avc_netlink_receive() local
108 rc = poll(&pfd, 1, (blocking ? -1 : 0)); in avc_netlink_receive()
109 } while (rc < 0 && errno == EINTR); in avc_netlink_receive()
111 if (rc == 0 && !blocking) { in avc_netlink_receive()
115 else if (rc < 1) { in avc_netlink_receive()
[all …]
Dget_context_list.c22 int rc; in get_default_context_with_role() local
24 rc = get_ordered_context_list(user, fromcon, &conary); in get_default_context_with_role()
25 if (rc <= 0) in get_default_context_with_role()
40 rc = -1; in get_default_context_with_role()
48 rc = 0; in get_default_context_with_role()
51 return rc; in get_default_context_with_role()
63 int rc = 0; in hidden_def() local
72 rc = getcon(&fromcon); in hidden_def()
73 if (rc < 0) in hidden_def()
74 return rc; in hidden_def()
[all …]
Dsetexecfilecon.c11 int rc = 0; in setexecfilecon() local
16 rc = getcon(&mycon); in setexecfilecon()
17 if (rc < 0) in setexecfilecon()
20 rc = getfilecon(filename, &fcon); in setexecfilecon()
21 if (rc < 0) in setexecfilecon()
24 rc = security_compute_create(mycon, fcon, string_to_security_class("process"), &newcon); in setexecfilecon()
25 if (rc < 0) in setexecfilecon()
30 rc = -1; in setexecfilecon()
40 rc = 0; in setexecfilecon()
43 rc = setexeccon(newcon); in setexecfilecon()
[all …]
Davc.c72 int rc; in avc_context_to_sid_raw() local
77 rc = sidtab_context_to_sid(&avc_sidtab, ctx, sid); in avc_context_to_sid_raw()
79 return rc; in avc_context_to_sid_raw()
99 int rc; in avc_sid_to_context_raw() local
103 rc = *ctx ? 0 : -1; in avc_sid_to_context_raw()
105 return rc; in avc_sid_to_context_raw()
135 int rc; in avc_get_initial_sid() local
138 rc = security_get_initial_context_raw(name, &con); in avc_get_initial_sid()
139 if (rc < 0) in avc_get_initial_sid()
140 return rc; in avc_get_initial_sid()
[all …]
/external/selinux/policycoreutils/semanage/
Dseobject.py157 (rc, trans) = selinux.selinux_raw_to_trans_context(context)
158 if rc != 0:
174 (rc, raw) = selinux.selinux_trans_to_raw_context(context)
175 if rc != 0:
193 rc, localstore = selinux.selinux_getpolicytype()
220 rc = semanage_access_check(handle)
221 if rc < SEMANAGE_CAN_READ:
225 rc = semanage_connect(handle)
226 if rc < 0:
250 rc = semanage_begin_transaction(self.sh)
[all …]
/external/valgrind/drd/tests/
Dbug-235681.c20 int rc; in run_fn() local
25 rc = pthread_mutex_lock(&mutex); in run_fn()
26 assert(!rc); in run_fn()
31 rc = pthread_cond_wait(&cond_var, &mutex); in run_fn()
32 assert(!rc); in run_fn()
39 rc = pthread_mutex_unlock(&mutex); in run_fn()
40 assert(!rc); in run_fn()
50 int rc; in main() local
56 rc = pthread_mutex_init(&mutex, NULL); in main()
57 assert(!rc); in main()
[all …]
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_build_ast.c88 …int rc = cil_parse_to_list(test_current, test_avrule->classpermset->permset->perms_list_str, CIL_A… in test_cil_parse_to_list() local
89 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_parse_to_list()
119 …int rc = cil_parse_to_list(test_current, test_avrule->classpermset->permset->perms_list_str, CIL_A… in test_cil_parse_to_list_currnull_neg() local
120 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_parse_to_list_currnull_neg()
148 …int rc = cil_parse_to_list(test_current, test_avrule->classpermset->permset->perms_list_str, CIL_A… in test_cil_parse_to_list_listnull_neg() local
149 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_parse_to_list_listnull_neg()
164 int rc = cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_set_to_list() local
167 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_set_to_list()
175 int rc = cil_set_to_list(NULL, cil_l, 1); in test_cil_set_to_list_tree_node_null_neg() local
177 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_set_to_list_tree_node_null_neg()
[all …]
Dtest_cil_post.c53 int rc = cil_post_filecon_compare(&afilecon, &bfilecon); in test_cil_post_filecon_compare_meta_a_not_b() local
54 CuAssertTrue(tc, rc < 0); in test_cil_post_filecon_compare_meta_a_not_b()
71 int rc = cil_post_filecon_compare(&afilecon, &bfilecon); in test_cil_post_filecon_compare_meta_b_not_a() local
72 CuAssertTrue(tc, rc > 0); in test_cil_post_filecon_compare_meta_b_not_a()
89 int rc = cil_post_filecon_compare(&afilecon, &bfilecon); in test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b() local
90 CuAssertTrue(tc, rc > 0); in test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b()
108 int rc = cil_post_filecon_compare(&afilecon, &bfilecon); in test_cil_post_filecon_compare_type_atype_greater_btype() local
109 CuAssertTrue(tc, rc > 0); in test_cil_post_filecon_compare_type_atype_greater_btype()
128 int rc = cil_post_filecon_compare(&afilecon, &bfilecon); in test_cil_post_filecon_compare_type_btype_greater_atype() local
129 CuAssertTrue(tc, rc < 0); in test_cil_post_filecon_compare_type_btype_greater_atype()
[all …]
/external/libxml2/
Dxmlmodule.c116 int rc = -1; in xmlModuleSymbol() local
122 return rc; in xmlModuleSymbol()
125 rc = xmlModulePlatformSymbol(module->handle, name, symbol); in xmlModuleSymbol()
127 if (rc == -1) { in xmlModuleSymbol()
133 return rc; in xmlModuleSymbol()
136 return rc; in xmlModuleSymbol()
152 int rc; in xmlModuleClose() local
161 rc = xmlModulePlatformClose(module->handle); in xmlModuleClose()
163 if (rc != 0) { in xmlModuleClose()
171 rc = xmlModuleFree(module); in xmlModuleClose()
[all …]
/external/liblzf/
Dlzf.c99 usage (int rc) in usage() argument
112 exit (rc); in usage()
118 ssize_t rc = 0, offset = 0; in rread() local
121 while (len && (rc = read (fd, &p[offset], len)) > 0) in rread()
123 offset += rc; in rread()
124 len -= rc; in rread()
129 if (rc < 0) in rread()
130 return rc; in rread()
139 ssize_t rc; in wwrite() local
145 rc = write (fd, b, l); in wwrite()
[all …]
/external/fio/engines/
Dfusion-aw.c40 int rc; in queue() local
44 rc = -EINVAL; in queue()
50 rc = -EINVAL; in queue()
56 rc = -EINVAL; in queue()
62 rc = -EINVAL; in queue()
66 rc = nvm_atomic_write(d->nvm_handle, (uint64_t) io_u->xfer_buf, in queue()
68 if (rc == -1) { in queue()
70 rc = -errno; in queue()
73 rc = FIO_Q_COMPLETED; in queue()
75 if (rc < 0) in queue()
[all …]
/external/openssh/contrib/hpux/
DREADME4 sshd: configuration file for sshd.rc
5 sshd.rc: SSH startup script
6 egd: configuration file for egd.rc
7 egd.rc: EGD (entropy gathering daemon) startup script
11 sshd.rc:
13 o Verify paths in sshd.rc match your local installation
18 # cp sshd /etc/rc.config.d
19 # chmod 444 /etc/rc.config.d/sshd
20 # cp sshd.rc /sbin/init.d
21 # chmod 555 /sbin/init.d/sshd.rc
[all …]

12345678910>>...37