Home
last modified time | relevance | path

Searched refs:spec_copy (Results 1 – 2 of 2) sorted by relevance

/external/selinux/libselinux/src/
Dlabel_file.h187 struct spec *spec_copy; in sort_specs() local
191 size_t len = sizeof(*spec_copy); in sort_specs()
193 spec_copy = malloc(len * data->nspec); in sort_specs()
194 if (!spec_copy) in sort_specs()
202 memcpy(&spec_copy[front++], &data->spec_arr[i], len); in sort_specs()
204 memcpy(&spec_copy[back--], &data->spec_arr[i], len); in sort_specs()
215 memcpy(&spec, &spec_copy[front], len); in sort_specs()
217 memcpy(&spec_copy[front], &spec_copy[back], len); in sort_specs()
219 memcpy(&spec_copy[back], &spec, len); in sort_specs()
225 data->spec_arr = spec_copy; in sort_specs()
/external/libselinux/src/
Dlabel_file.h190 struct spec *spec_copy; in sort_specs() local
194 size_t len = sizeof(*spec_copy); in sort_specs()
196 spec_copy = malloc(len * data->nspec); in sort_specs()
197 if (!spec_copy) in sort_specs()
205 memcpy(&spec_copy[front++], &data->spec_arr[i], len); in sort_specs()
207 memcpy(&spec_copy[back--], &data->spec_arr[i], len); in sort_specs()
218 memcpy(&spec, &spec_copy[front], len); in sort_specs()
220 memcpy(&spec_copy[front], &spec_copy[back], len); in sort_specs()
222 memcpy(&spec_copy[back], &spec, len); in sort_specs()
228 data->spec_arr = spec_copy; in sort_specs()