Searched refs:stem_len (Results 1 – 6 of 6) sorted by relevance
/external/selinux/libselinux/src/ |
D | label_file.h | 261 int stem_len) in find_stem() argument 266 if (stem_len == data->stem_arr[i].len && in find_stem() 267 !strncmp(buf, data->stem_arr[i].buf, stem_len)) in find_stem() 275 static inline int store_stem(struct saved_data *data, char *buf, int stem_len) in store_stem() argument 291 data->stem_arr[num].len = stem_len; in store_stem() 304 int stem_len = get_stem_from_spec(buf); in find_stem_from_spec() local 308 if (!stem_len) in find_stem_from_spec() 311 stemid = find_stem(data, buf, stem_len); in find_stem_from_spec() 316 stem = strndup(buf, stem_len); in find_stem_from_spec() 320 return store_stem(data, stem, stem_len); in find_stem_from_spec()
|
D | label_file.c | 46 int stem_len = get_stem_from_file_name(key); in find_stem_from_file() local 48 if (!stem_len) in find_stem_from_file() 51 if (stem_len == data->stem_arr[i].len in find_stem_from_file() 52 && !strncmp(key, data->stem_arr[i].buf, stem_len)) { in find_stem_from_file() 247 uint32_t stem_len; in load_mmap() local 251 rc = next_entry(&stem_len, mmap_area, sizeof(uint32_t)); in load_mmap() 252 if (rc < 0 || !stem_len) { in load_mmap() 258 if (stem_len < UINT32_MAX) { in load_mmap() 261 rc = next_entry(NULL, mmap_area, (stem_len + 1)); in load_mmap() 265 if (buf[stem_len] != '\0') { in load_mmap() [all …]
|
/external/selinux/libselinux/utils/ |
D | sefcontext_compile.c | 157 uint32_t stem_len = data->stem_arr[i].len; in write_binary_file() local 160 len = fwrite(&stem_len, sizeof(uint32_t), 1, bin_file); in write_binary_file() 165 stem_len += 1; in write_binary_file() 166 len = fwrite(stem, sizeof(char), stem_len, bin_file); in write_binary_file() 167 if (len != stem_len) in write_binary_file()
|
/external/selinux/libsepol/cil/src/ |
D | cil_post.h | 35 int stem_len; member
|
D | cil_post.c | 163 fc->stem_len = 0; in cil_post_fc_fill_data() 185 fc->stem_len++; in cil_post_fc_fill_data() 213 } else if (a_data->stem_len < b_data->stem_len) { in cil_post_filecon_compare() 215 } else if (b_data->stem_len < a_data->stem_len) { in cil_post_filecon_compare()
|
/external/u-boot/drivers/core/ |
D | of_access.c | 675 int id, const char *stem, int stem_len) in of_alias_add() argument 679 strncpy(ap->stem, stem, stem_len); in of_alias_add() 680 ap->stem[stem_len] = 0; in of_alias_add()
|