Home
last modified time | relevance | path

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

/third_party/selinux/libselinux/src/
Dmatchpathcon.c186 #define HASH_BUCKETS (1 << HASH_BITS) macro
187 #define HASH_MASK (HASH_BUCKETS-1)
204 fl_head = malloc(sizeof(file_spec_t) * HASH_BUCKETS); in matchpathcon_filespec_add()
207 memset(fl_head, 0, sizeof(file_spec_t) * HASH_BUCKETS); in matchpathcon_filespec_add()
280 for (h = 0; h < HASH_BUCKETS; h++) { in matchpathcon_filespec_eval()
294 __FUNCTION__, nel, used, HASH_BUCKETS, longest); in matchpathcon_filespec_eval()
310 for (h = 0; h < HASH_BUCKETS; h++) { in matchpathcon_filespec_destroy()
Dselinux_restorecon.c400 #define HASH_BUCKETS (1 << HASH_BITS) macro
401 #define HASH_MASK (HASH_BUCKETS-1)
428 fl_head = malloc(sizeof(file_spec_t) * HASH_BUCKETS); in filespec_add()
431 memset(fl_head, 0, sizeof(file_spec_t) * HASH_BUCKETS); in filespec_add()
509 for (h = 0; h < HASH_BUCKETS; h++) { in filespec_eval()
522 nel, used, HASH_BUCKETS, longest); in filespec_eval()
541 for (h = 0; h < HASH_BUCKETS; h++) { in filespec_destroy()