Lines Matching refs:spec_arr
28 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()
130 path, lineno, spec_arr[nspec].lr.ctx_raw); in process_line()
151 spec_t *spec_arr; in process_file() local
189 spec_arr = realloc(data->spec_arr, in process_file()
191 if (spec_arr == NULL) in process_file()
194 memset(&spec_arr[data->nspec], 0, nspec * sizeof(spec_t)); in process_file()
195 data->spec_arr = spec_arr; in process_file()
261 qsort(data->spec_arr, data->nspec, sizeof(struct spec), cmp); in init()
281 if (data->spec_arr) { in closef()
283 spec = &data->spec_arr[i]; in closef()
289 free(data->spec_arr); in closef()
300 spec_t *spec_arr = data->spec_arr; in property_lookup() local
310 if (strncmp(spec_arr[i].property_key, key, in property_lookup()
311 strlen(spec_arr[i].property_key)) == 0) { in property_lookup()
314 if (strncmp(spec_arr[i].property_key, "*", 1) == 0) in property_lookup()
324 ret = &spec_arr[i].lr; in property_lookup()
334 spec_t *spec_arr = data->spec_arr; in lookup_exact_match() local
344 if (strcmp(spec_arr[i].property_key, key) == 0) in lookup_exact_match()
346 if (strcmp(spec_arr[i].property_key, "*") == 0) in lookup_exact_match()
356 ret = &spec_arr[i].lr; in lookup_exact_match()