Lines Matching refs:num_names

956 …truct policydb *pdb, int is_type, void *set, struct list *attr_list, char ***names, int *num_names)  in set_to_names()  argument
962 *num_names = 0; in set_to_names()
987 *num_names = 1; in set_to_names()
993 …atic int ebitmap_to_names(struct ebitmap *map, char **vals_to_names, char ***names, int *num_names) in ebitmap_to_names() argument
1015 *num_names = 0; in ebitmap_to_names()
1035 *num_names = num; in ebitmap_to_names()
1041 …t(struct policydb *pdb, struct role_set *rs, struct list *attr_list, char ***names, int *num_names) in process_roleset() argument
1046 *num_names = 0; in process_roleset()
1049 rc = set_to_names(pdb, 0, &rs->roles, attr_list, names, num_names); in process_roleset()
1054 rc = ebitmap_to_names(&rs->roles, pdb->p_role_val_to_name, names, num_names); in process_roleset()
1064 …t(struct policydb *pdb, struct type_set *ts, struct list *attr_list, char ***names, int *num_names) in process_typeset() argument
1069 *num_names = 0; in process_typeset()
1072 rc = set_to_names(pdb, 1, ts, attr_list, names, num_names); in process_typeset()
1077 rc = ebitmap_to_names(&ts->types, pdb->p_type_val_to_name, names, num_names); in process_typeset()
1087 static void names_destroy(char ***names, int *num_names) in names_destroy() argument
1091 *num_names = 0; in names_destroy()
1139 static int name_list_to_string(char **names, int num_names, char **string) in name_list_to_string() argument
1148 for (i = 0; i < num_names; i++) { in name_list_to_string()
1157 len += num_names; in name_list_to_string()
1158 if (len < (size_t)num_names) { in name_list_to_string()
1178 for (i = 0; i < num_names; i++) { in name_list_to_string()
1180 if (i < num_names - 1) { in name_list_to_string()
1738 int num_names = 0; in constraint_expr_to_string() local
1800 rc = ebitmap_to_names(&ts->types, pdb->p_type_val_to_name, &name_list, &num_names); in constraint_expr_to_string()
1805 rc = ebitmap_to_names(&expr->names, pdb->p_user_val_to_name, &name_list, &num_names); in constraint_expr_to_string()
1810 rc = ebitmap_to_names(&expr->names, pdb->p_role_val_to_name, &name_list, &num_names); in constraint_expr_to_string()
1815 rc = name_list_to_string(name_list, num_names, &names); in constraint_expr_to_string()
1835 names_destroy(&name_list, &num_names); in constraint_expr_to_string()
1924 names_destroy(&name_list, &num_names); in constraint_expr_to_string()