Lines Matching refs:pattern

684 					 const char *pattern,  in tomoyo_file_matches_pattern2()  argument
687 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
689 if (*pattern != '\\') { in tomoyo_file_matches_pattern2()
690 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
695 pattern++; in tomoyo_file_matches_pattern2()
696 switch (*pattern) { in tomoyo_file_matches_pattern2()
734 && strncmp(filename + 1, pattern, 3) == 0) { in tomoyo_file_matches_pattern2()
736 pattern += 2; in tomoyo_file_matches_pattern2()
745 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
748 if (c == '.' && *pattern == '@') in tomoyo_file_matches_pattern2()
762 c = *pattern; in tomoyo_file_matches_pattern2()
776 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
782 pattern++; in tomoyo_file_matches_pattern2()
784 while (*pattern == '\\' && in tomoyo_file_matches_pattern2()
785 (*(pattern + 1) == '*' || *(pattern + 1) == '@')) in tomoyo_file_matches_pattern2()
786 pattern += 2; in tomoyo_file_matches_pattern2()
787 return filename == filename_end && pattern == pattern_end; in tomoyo_file_matches_pattern2()
802 const char *pattern, in tomoyo_file_matches_pattern() argument
805 const char *pattern_start = pattern; in tomoyo_file_matches_pattern()
809 while (pattern < pattern_end - 1) { in tomoyo_file_matches_pattern()
811 if (*pattern++ != '\\' || *pattern++ != '-') in tomoyo_file_matches_pattern()
816 pattern - 2); in tomoyo_file_matches_pattern()
822 pattern_start = pattern; in tomoyo_file_matches_pattern()
921 const struct tomoyo_path_info *pattern) in tomoyo_path_matches_pattern() argument
924 const char *p = pattern->name; in tomoyo_path_matches_pattern()
925 const int len = pattern->const_len; in tomoyo_path_matches_pattern()
928 if (!pattern->is_patterned) in tomoyo_path_matches_pattern()
929 return !tomoyo_pathcmp(filename, pattern); in tomoyo_path_matches_pattern()
931 if (filename->is_dir != pattern->is_dir) in tomoyo_path_matches_pattern()