Lines Matching refs:pattern

677 					 const char *pattern,  in tomoyo_file_matches_pattern2()  argument
680 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
685 if (*pattern != '\\') { in tomoyo_file_matches_pattern2()
686 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
691 pattern++; in tomoyo_file_matches_pattern2()
692 switch (*pattern) { in tomoyo_file_matches_pattern2()
728 && strncmp(filename + 1, pattern, 3) == 0) { in tomoyo_file_matches_pattern2()
730 pattern += 2; in tomoyo_file_matches_pattern2()
739 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
742 if (c == '.' && *pattern == '@') in tomoyo_file_matches_pattern2()
756 c = *pattern; in tomoyo_file_matches_pattern2()
770 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
776 pattern++; in tomoyo_file_matches_pattern2()
778 while (*pattern == '\\' && in tomoyo_file_matches_pattern2()
779 (*(pattern + 1) == '*' || *(pattern + 1) == '@')) in tomoyo_file_matches_pattern2()
780 pattern += 2; in tomoyo_file_matches_pattern2()
781 return filename == filename_end && pattern == pattern_end; in tomoyo_file_matches_pattern2()
796 const char *pattern, in tomoyo_file_matches_pattern() argument
799 const char *pattern_start = pattern; in tomoyo_file_matches_pattern()
803 while (pattern < pattern_end - 1) { in tomoyo_file_matches_pattern()
805 if (*pattern++ != '\\' || *pattern++ != '-') in tomoyo_file_matches_pattern()
810 pattern - 2); in tomoyo_file_matches_pattern()
816 pattern_start = pattern; in tomoyo_file_matches_pattern()
915 const struct tomoyo_path_info *pattern) in tomoyo_path_matches_pattern() argument
918 const char *p = pattern->name; in tomoyo_path_matches_pattern()
919 const int len = pattern->const_len; in tomoyo_path_matches_pattern()
922 if (!pattern->is_patterned) in tomoyo_path_matches_pattern()
923 return !tomoyo_pathcmp(filename, pattern); in tomoyo_path_matches_pattern()
925 if (filename->is_dir != pattern->is_dir) in tomoyo_path_matches_pattern()