Lines Matching refs:rule

31 static struct rule *gen_rulestruct(void);
34 static void init_rule(uint_t, struct rule *);
35 static void add_modifier(struct rule *, char *);
36 static struct rule *add_subtree_rule(char *, char *, int, int *);
37 static struct rule *add_single_rule(char *);
42 static struct rule *get_last_entry(boolean_t);
45 static struct rule *first_rule = NULL, *current_rule = NULL;
65 exclude_fname(const char *fname, char fname_type, struct rule *rule_ptr) in exclude_fname()
352 static struct rule *
355 struct rule *new_rule; in gen_rulestruct()
357 new_rule = (struct rule *)safe_calloc(sizeof (struct rule)); in gen_rulestruct()
384 static struct rule *
387 struct rule *new_rule; in setup_default_rule()
400 init_rule(uint_t flags, struct rule *new_rule) in init_rule()
416 struct rule *block_begin = NULL, *new_rule, *rp; in read_rules()
556 add_modifier(struct rule *rule, char *modifier_str) in add_modifier() argument
561 struct rule *this_rule; in add_modifier()
574 for (this_rule = rule; this_rule != NULL; this_rule = this_rule->next) { in add_modifier()
610 static struct rule *
611 add_subtree_rule(char *rule, char *reloc_root, int create, int *err_code) in add_subtree_rule() argument
620 struct rule *begin_rule = NULL; in add_subtree_rule()
625 (rule[0] == '/') ? "%s%s" : "%s/%s", reloc_root, rule); in add_subtree_rule()
790 static struct rule *
948 static struct rule *
951 static struct rule *curr_root = NULL; in get_last_entry()
973 struct rule *
983 struct rule *
984 get_next_subtree(struct rule *entry) in get_next_subtree()
1010 struct rule *
1013 struct rule *root; in check_rules()
1043 match_subtree(const char *fname, char *rule) in match_subtree() argument
1049 if ((num_rule_slash = count_slashes(rule)) > count_slashes(fname)) in match_subtree()
1066 if (*(rule + strlen(rule) - 1) != '/') { in match_subtree()
1076 match = fnmatch(rule, fname_cp, FNM_PATHNAME); in match_subtree()