Lines Matching refs:pattern

666 					 const char *pattern,  in tomoyo_file_matches_pattern2()  argument
669 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
671 if (*pattern != '\\') { in tomoyo_file_matches_pattern2()
672 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
677 pattern++; in tomoyo_file_matches_pattern2()
678 switch (*pattern) { in tomoyo_file_matches_pattern2()
716 && strncmp(filename + 1, pattern, 3) == 0) { in tomoyo_file_matches_pattern2()
718 pattern += 2; in tomoyo_file_matches_pattern2()
727 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
730 if (c == '.' && *pattern == '@') in tomoyo_file_matches_pattern2()
744 c = *pattern; in tomoyo_file_matches_pattern2()
758 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
764 pattern++; in tomoyo_file_matches_pattern2()
766 while (*pattern == '\\' && in tomoyo_file_matches_pattern2()
767 (*(pattern + 1) == '*' || *(pattern + 1) == '@')) in tomoyo_file_matches_pattern2()
768 pattern += 2; in tomoyo_file_matches_pattern2()
769 return filename == filename_end && pattern == pattern_end; in tomoyo_file_matches_pattern2()
784 const char *pattern, in tomoyo_file_matches_pattern() argument
787 const char *pattern_start = pattern; in tomoyo_file_matches_pattern()
791 while (pattern < pattern_end - 1) { in tomoyo_file_matches_pattern()
793 if (*pattern++ != '\\' || *pattern++ != '-') in tomoyo_file_matches_pattern()
798 pattern - 2); in tomoyo_file_matches_pattern()
804 pattern_start = pattern; in tomoyo_file_matches_pattern()
903 const struct tomoyo_path_info *pattern) in tomoyo_path_matches_pattern() argument
906 const char *p = pattern->name; in tomoyo_path_matches_pattern()
907 const int len = pattern->const_len; in tomoyo_path_matches_pattern()
910 if (!pattern->is_patterned) in tomoyo_path_matches_pattern()
911 return !tomoyo_pathcmp(filename, pattern); in tomoyo_path_matches_pattern()
913 if (filename->is_dir != pattern->is_dir) in tomoyo_path_matches_pattern()