Home
last modified time | relevance | path

Searched refs:hashtab_t (Results 1 – 10 of 10) sorted by relevance

/external/libsepol/include/sepol/policydb/
Dhashtab.h41 typedef hashtab_val_t *hashtab_t; typedef
49 extern hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h,
52 int (*keycmp) (hashtab_t h,
63 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d);
73 extern int hashtab_remove(hashtab_t h, hashtab_key_t k,
87 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d,
98 extern hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t k);
103 extern void hashtab_destroy(hashtab_t h);
116 extern int hashtab_map(hashtab_t h,
126 extern void hashtab_map_remove_on_error(hashtab_t h,
[all …]
Dsymtab.h30 hashtab_t table; /* hash table (keyed on a string) */
Dconditional.h129 extern int cond_read_bool(policydb_t * p, hashtab_t h, struct policy_file *fp);
/external/libsepol/src/
Dhashtab.c35 hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h, in hashtab_create()
37 int (*keycmp) (hashtab_t h, in hashtab_create()
43 hashtab_t p; in hashtab_create()
46 p = (hashtab_t) malloc(sizeof(hashtab_val_t)); in hashtab_create()
66 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert()
103 int hashtab_remove(hashtab_t h, hashtab_key_t key, in hashtab_remove()
136 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace()
178 hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t key) in hashtab_search()
198 void hashtab_destroy(hashtab_t h) in hashtab_destroy()
222 int hashtab_map(hashtab_t h, in hashtab_map()
[all …]
Dsymtab.c14 static unsigned int symhash(hashtab_t h, hashtab_key_t key) in symhash()
29 static int symcmp(hashtab_t h in symcmp()
Dpolicydb.c1880 __attribute__ ((unused)), hashtab_t h, in perm_read()
1918 static int common_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in common_read()
2061 static int class_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in class_read()
2167 __attribute__ ((unused)), hashtab_t h, in role_read()
2245 __attribute__ ((unused)), hashtab_t h, in type_read()
2821 static int user_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in user_read()
2906 __attribute__ ((unused)), hashtab_t h, in sens_read()
2949 __attribute__ ((unused)), hashtab_t h, in cat_read()
2988 static int (*read_f[SYM_NUM]) (policydb_t * p, hashtab_t h,
3537 hashtab_t h = p->scope[symnum].table; in scope_read()
Dconditional.c568 hashtab_t h, in cond_read_bool()
Dservices.c1387 hashtab_t h; in validate_perm()
1390 h = (hashtab_t) p; in validate_perm()
Dlink.c1101 hashtab_t role_tab; in role_fix_callback()
/external/checkpolicy/
Dmodule_compiler.c166 static int role_implicit_bounds(hashtab_t roles_tab, in role_implicit_bounds()
238 hashtab_t roles_tab; in declare_role()
370 static int user_implicit_bounds(hashtab_t users_tab, in user_implicit_bounds()
443 hashtab_t users_tab; in declare_user()
517 hashtab_t types_tab; in get_local_type()
563 hashtab_t roles_tab; in get_local_role()