Lines Matching refs:num_names

615 static int set_to_cil_attr(struct policydb *pdb, int is_type, char ***names, uint32_t *num_names)  in set_to_cil_attr()  argument
654 *num_names = 1; in set_to_cil_attr()
756 … int ebitmap_to_names(char** vals_to_names, struct ebitmap map, char ***names, uint32_t *num_names) in ebitmap_to_names() argument
797 *num_names = num; in ebitmap_to_names()
851 …mes(struct policydb *pdb, struct type_set *ts, char ***names, uint32_t *num_names, char **generate… in typeset_to_names() argument
855 rc = set_to_cil_attr(pdb, 1, names, num_names); in typeset_to_names()
862 rc = ebitmap_to_names(pdb->p_type_val_to_name, ts->types, names, num_names); in typeset_to_names()
874 …mes(struct policydb *pdb, struct role_set *rs, char ***names, uint32_t *num_names, char **generate… in roleset_to_names() argument
878 rc = set_to_cil_attr(pdb, 0, names, num_names); in roleset_to_names()
885 rc = ebitmap_to_names(pdb->p_role_val_to_name, rs->roles, names, num_names); in roleset_to_names()
959 static void names_destroy(char ***names, uint32_t *num_names) in names_destroy() argument
962 uint32_t num = *num_names; in names_destroy()
972 *num_names = 0; in names_destroy()
1011 static int name_list_to_string(char **names, int num_names, char **string) in name_list_to_string() argument
1022 for (i = 0; i < num_names; i++) { in name_list_to_string()
1027 len += (num_names - 1) + 1; in name_list_to_string()
1038 for (i = 0; i < num_names; i++) { in name_list_to_string()
1047 if (i < num_names - 1) { in name_list_to_string()
1635 uint32_t num_names = 0; in constraint_expr_to_string() local
1697 rc = process_typeset(indent, pdb, ts, NULL, &name_list, &num_names); in constraint_expr_to_string()
1702 rc = ebitmap_to_names(pdb->p_user_val_to_name, expr->names, &name_list, &num_names); in constraint_expr_to_string()
1707 rc = ebitmap_to_names(pdb->p_role_val_to_name, expr->names, &name_list, &num_names); in constraint_expr_to_string()
1712 rc = name_list_to_string(name_list, num_names, &names); in constraint_expr_to_string()
1732 names_destroy(&name_list, &num_names); in constraint_expr_to_string()
1822 names_destroy(&name_list, &num_names); in constraint_expr_to_string()