Searched refs:stem_arr (Results 1 - 4 of 4) sorted by relevance

/external/libselinux/src/
H A Dlabel_file.c59 stem_t *stem_arr; member in struct:saved_data
91 /* find the stem of a file spec, returns the index into stem_arr for a new
102 if (stem_len == data->stem_arr[i].len
103 && !strncmp(buf, data->stem_arr[i].buf, stem_len))
109 tmp_arr = (stem_t *) realloc(data->stem_arr,
113 data->stem_arr = tmp_arr;
115 data->stem_arr[num].len = stem_len;
116 data->stem_arr[num].buf = (char *) malloc(stem_len + 1);
117 if (!data->stem_arr[num].buf)
119 memcpy(data->stem_arr[nu
232 stem_t *stem_arr = data->stem_arr; local
[all...]
/external/selinux/libselinux/src/
H A Dlabel_file.h63 struct stem *stem_arr; member in struct:saved_data
245 if (stem_len == data->stem_arr[i].len &&
246 !strncmp(buf, data->stem_arr[i].buf, stem_len))
262 tmp_arr = realloc(data->stem_arr,
266 data->stem_arr = tmp_arr;
268 data->stem_arr[num].len = stem_len;
269 data->stem_arr[num].buf = buf;
275 /* find the stem of a file spec, returns the index into stem_arr for a new
H A Dlabel_file.c47 /* find the stem of a file name, returns the index into stem_arr (or -1 if
58 if (stem_len == data->stem_arr[i].len
59 && !strncmp(*buf, data->stem_arr[i].buf, stem_len)) {
107 struct stem *stem_arr = data->stem_arr; local
117 reg_buf += stem_arr[spec->stem_id].len;
339 * number in the data stem_arr
367 data->stem_arr[newid].from_mmap = 1;
409 /* map the stem id from the mmap file to the data->stem_arr */
593 stem = &data->stem_arr[
[all...]
/external/selinux/libselinux/utils/
H A Dsefcontext_compile.c87 regex += data->stem_arr[stem_id].len;
196 char *stem = data->stem_arr[i].buf;
197 uint32_t stem_len = data->stem_arr[i].len;
324 free(data->stem_arr[i].buf);
326 free(data->stem_arr);

Completed in 188 milliseconds