Lines Matching refs:pattern
695 const char *pattern, in tomoyo_file_matches_pattern2() argument
698 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
703 if (*pattern != '\\') { in tomoyo_file_matches_pattern2()
704 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
709 pattern++; in tomoyo_file_matches_pattern2()
710 switch (*pattern) { in tomoyo_file_matches_pattern2()
746 && strncmp(filename + 1, pattern, 3) == 0) { in tomoyo_file_matches_pattern2()
748 pattern += 2; in tomoyo_file_matches_pattern2()
757 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
760 if (c == '.' && *pattern == '@') in tomoyo_file_matches_pattern2()
774 c = *pattern; in tomoyo_file_matches_pattern2()
788 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
794 pattern++; in tomoyo_file_matches_pattern2()
796 while (*pattern == '\\' && in tomoyo_file_matches_pattern2()
797 (*(pattern + 1) == '*' || *(pattern + 1) == '@')) in tomoyo_file_matches_pattern2()
798 pattern += 2; in tomoyo_file_matches_pattern2()
799 return filename == filename_end && pattern == pattern_end; in tomoyo_file_matches_pattern2()
814 const char *pattern, in tomoyo_file_matches_pattern() argument
817 const char *pattern_start = pattern; in tomoyo_file_matches_pattern()
821 while (pattern < pattern_end - 1) { in tomoyo_file_matches_pattern()
823 if (*pattern++ != '\\' || *pattern++ != '-') in tomoyo_file_matches_pattern()
828 pattern - 2); in tomoyo_file_matches_pattern()
834 pattern_start = pattern; in tomoyo_file_matches_pattern()
933 const struct tomoyo_path_info *pattern) in tomoyo_path_matches_pattern() argument
936 const char *p = pattern->name; in tomoyo_path_matches_pattern()
937 const int len = pattern->const_len; in tomoyo_path_matches_pattern()
940 if (!pattern->is_patterned) in tomoyo_path_matches_pattern()
941 return !tomoyo_pathcmp(filename, pattern); in tomoyo_path_matches_pattern()
943 if (filename->is_dir != pattern->is_dir) in tomoyo_path_matches_pattern()