Lines Matching refs:pattern

700 					 const char *pattern,  in tomoyo_file_matches_pattern2()  argument
703 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
708 if (*pattern != '\\') { in tomoyo_file_matches_pattern2()
709 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
714 pattern++; in tomoyo_file_matches_pattern2()
715 switch (*pattern) { in tomoyo_file_matches_pattern2()
751 && strncmp(filename + 1, pattern, 3) == 0) { in tomoyo_file_matches_pattern2()
753 pattern += 2; in tomoyo_file_matches_pattern2()
762 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
765 if (c == '.' && *pattern == '@') in tomoyo_file_matches_pattern2()
779 c = *pattern; in tomoyo_file_matches_pattern2()
793 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
799 pattern++; in tomoyo_file_matches_pattern2()
801 while (*pattern == '\\' && in tomoyo_file_matches_pattern2()
802 (*(pattern + 1) == '*' || *(pattern + 1) == '@')) in tomoyo_file_matches_pattern2()
803 pattern += 2; in tomoyo_file_matches_pattern2()
804 return filename == filename_end && pattern == pattern_end; in tomoyo_file_matches_pattern2()
819 const char *pattern, in tomoyo_file_matches_pattern() argument
822 const char *pattern_start = pattern; in tomoyo_file_matches_pattern()
826 while (pattern < pattern_end - 1) { in tomoyo_file_matches_pattern()
828 if (*pattern++ != '\\' || *pattern++ != '-') in tomoyo_file_matches_pattern()
833 pattern - 2); in tomoyo_file_matches_pattern()
839 pattern_start = pattern; in tomoyo_file_matches_pattern()
938 const struct tomoyo_path_info *pattern) in tomoyo_path_matches_pattern() argument
941 const char *p = pattern->name; in tomoyo_path_matches_pattern()
942 const int len = pattern->const_len; in tomoyo_path_matches_pattern()
945 if (!pattern->is_patterned) in tomoyo_path_matches_pattern()
946 return !tomoyo_pathcmp(filename, pattern); in tomoyo_path_matches_pattern()
948 if (filename->is_dir != pattern->is_dir) in tomoyo_path_matches_pattern()