Home
last modified time | relevance | path

Searched refs:nspec (Results 1 – 4 of 4) sorted by relevance

/external/libselinux/src/
Dlabel_android_property.c29 unsigned int nspec; /* total number of specifications */ member
56 for (ii = 0; ii < data->nspec; ii++) { in nodups_specs()
58 for (jj = ii + 1; jj < data->nspec; jj++) { in nodups_specs()
92 unsigned int nspec = data->nspec; in process_line() local
113 spec_arr[nspec].property_key = strdup(prop); in process_line()
114 if (!spec_arr[nspec].property_key) { in process_line()
122 spec_arr[nspec].lr.ctx_raw = strdup(context); in process_line()
123 if (!spec_arr[nspec].lr.ctx_raw) { in process_line()
131 if (selabel_validate(rec, &spec_arr[nspec].lr) < 0) { in process_line()
134 path, lineno, spec_arr[nspec].lr.ctx_raw); in process_line()
[all …]
Dlabel_file.c51 unsigned int nspec; member
153 for (ii = 0; ii < data->nspec; ii++) { in nodups_specs()
155 for (jj = ii + 1; jj < data->nspec; jj++) { in nodups_specs()
286 unsigned int nspec = data->nspec; in process_line() local
318 spec_arr[nspec].stem_id = find_stem_from_spec(data, regex); in process_line()
319 spec_arr[nspec].regex_str = strdup(regex); in process_line()
320 if (!spec_arr[nspec].regex_str) { in process_line()
327 if (rec->validating && compile_regex(data, &spec_arr[nspec], &errbuf)) { in process_line()
335 spec_arr[nspec].mode = 0; in process_line()
338 spec_arr[nspec].type_str = strdup(type); in process_line()
[all …]
Dandroid.c128 static int nspec = 0; variable
150 for (n = 0; n < nspec; n++) { in selinux_android_seapp_context_reload()
163 nspec = 0; in selinux_android_seapp_context_reload()
170 nspec++; in selinux_android_seapp_context_reload()
173 seapp_contexts = calloc(nspec, sizeof(struct seapp_context *)); in selinux_android_seapp_context_reload()
178 nspec = 0; in selinux_android_seapp_context_reload()
272 seapp_contexts[nspec] = cur; in selinux_android_seapp_context_reload()
273 nspec++; in selinux_android_seapp_context_reload()
277 qsort(seapp_contexts, nspec, sizeof(struct seapp_context *), in selinux_android_seapp_context_reload()
283 for (i = 0; i < nspec; i++) { in selinux_android_seapp_context_reload()
[all …]
/external/elfutils/backends/
Dsparc_regs.c43 const int nspec = ebl->machine == EM_SPARC ? 8 : 6; in sparc_register_info() local
46 return 32 + nfp + nspec; in sparc_register_info()
48 if (regno < 0 || regno >= 32 + nfp + nspec || namelen < 6) in sparc_register_info()