Home
last modified time | relevance | path

Searched refs:spec_arr (Results 1 – 7 of 7) sorted by relevance

/external/selinux/libselinux/src/
Dlabel_backends_android.c28 spec_t *spec_arr; member
56 struct spec *curr_spec, *spec_arr = data->spec_arr; in nodups_specs() local
59 curr_spec = &spec_arr[ii]; in nodups_specs()
61 if (!strcmp(spec_arr[jj].property_key, in nodups_specs()
63 if (strcmp(spec_arr[jj].lr.ctx_raw, in nodups_specs()
71 spec_arr[jj].lr.ctx_raw, in nodups_specs()
92 spec_t *spec_arr = data->spec_arr; in process_line() local
123 spec_arr[nspec].property_key = prop; in process_line()
124 spec_arr[nspec].lr.ctx_raw = context; in process_line()
127 if (selabel_validate(rec, &spec_arr[nspec].lr) < 0) { in process_line()
[all …]
Dlabel_x.c32 spec_t *spec_arr; member
64 data->spec_arr[data->nspec].type = SELABEL_X_PROP; in process_line()
66 data->spec_arr[data->nspec].type = SELABEL_X_EXT; in process_line()
68 data->spec_arr[data->nspec].type = SELABEL_X_CLIENT; in process_line()
70 data->spec_arr[data->nspec].type = SELABEL_X_EVENT; in process_line()
72 data->spec_arr[data->nspec].type = SELABEL_X_SELN; in process_line()
74 data->spec_arr[data->nspec].type = SELABEL_X_POLYPROP; in process_line()
76 data->spec_arr[data->nspec].type = SELABEL_X_POLYSELN; in process_line()
83 data->spec_arr[data->nspec].key = key; in process_line()
84 data->spec_arr[data->nspec].lr.ctx_raw = context; in process_line()
[all …]
Dlabel_media.c30 spec_t *spec_arr; member
58 data->spec_arr[data->nspec].key = key; in process_line()
59 data->spec_arr[data->nspec].lr.ctx_raw = context; in process_line()
129 data->spec_arr = malloc(sizeof(spec_t)*data->nspec); in init()
130 if (data->spec_arr == NULL) in init()
132 memset(data->spec_arr, 0, sizeof(spec_t)*data->nspec); in init()
156 struct spec *spec, *spec_arr = data->spec_arr; in close() local
160 spec = &spec_arr[i]; in close()
166 if (spec_arr) in close()
167 free(spec_arr); in close()
[all …]
Dlabel_file.h79 struct spec *spec_arr; member
138 specs = realloc(data->spec_arr, total_specs * sizeof(*specs)); in grow_specs()
147 data->spec_arr = specs; in grow_specs()
211 if (data->spec_arr[i].hasMetaChars) in sort_specs()
212 memcpy(&spec_copy[front++], &data->spec_arr[i], len); in sort_specs()
214 memcpy(&spec_copy[back--], &data->spec_arr[i], len); in sort_specs()
234 free(data->spec_arr); in sort_specs()
235 data->spec_arr = spec_copy; in sort_specs()
433 struct spec *spec_arr; in process_line() local
477 spec_arr = data->spec_arr; in process_line()
[all …]
Dlabel_file.c66 struct spec *curr_spec, *spec_arr = data->spec_arr; in nodups_specs() local
69 curr_spec = &spec_arr[ii]; in nodups_specs()
71 if ((!strcmp(spec_arr[jj].regex_str, in nodups_specs()
73 && (!spec_arr[jj].mode || !curr_spec->mode in nodups_specs()
74 || spec_arr[jj].mode == curr_spec->mode)) { in nodups_specs()
77 if (strcmp(spec_arr[jj].lr.ctx_raw, in nodups_specs()
83 spec_arr[jj].lr.ctx_raw, in nodups_specs()
303 spec = &data->spec_arr[data->nspec]; in load_mmap()
862 spec = &data->spec_arr[i]; in closef()
880 if (data->spec_arr) in closef()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_opt_copy_prop_vars.c508 nir_deref_array *spec_arr = nir_deref_as_array(spec_tail); in specialize_wildcards() local
509 ret_arr->deref_array_type = spec_arr->deref_array_type; in specialize_wildcards()
510 ret_arr->base_offset = spec_arr->base_offset; in specialize_wildcards()
511 ret_arr->indirect = spec_arr->indirect; in specialize_wildcards()
/external/selinux/libselinux/utils/
Dsefcontext_compile.c98 struct spec *specs = data->spec_arr; in write_binary_file()
248 struct spec *specs = data->spec_arr; in free_specs()