Lines Matching refs:filename

242 	char *filename;  in tomoyo_parse_name_union()  local
248 filename = tomoyo_read_token(param); in tomoyo_parse_name_union()
249 if (!tomoyo_correct_word(filename)) in tomoyo_parse_name_union()
251 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union()
252 return ptr->filename != NULL; in tomoyo_parse_name_union()
515 bool tomoyo_correct_path(const char *filename) in tomoyo_correct_path() argument
517 return *filename == '/' && tomoyo_correct_word(filename); in tomoyo_correct_path()
601 static int tomoyo_const_part_length(const char *filename) in tomoyo_const_part_length() argument
606 if (!filename) in tomoyo_const_part_length()
608 while ((c = *filename++) != '\0') { in tomoyo_const_part_length()
613 c = *filename++; in tomoyo_const_part_length()
622 c = *filename++; in tomoyo_const_part_length()
625 c = *filename++; in tomoyo_const_part_length()
664 static bool tomoyo_file_matches_pattern2(const char *filename, in tomoyo_file_matches_pattern2() argument
669 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
672 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
676 c = *filename; in tomoyo_file_matches_pattern2()
685 if (filename[1] == '\\') in tomoyo_file_matches_pattern2()
686 filename++; in tomoyo_file_matches_pattern2()
687 else if (tomoyo_byte_range(filename + 1)) in tomoyo_file_matches_pattern2()
688 filename += 3; in tomoyo_file_matches_pattern2()
696 if (*++filename != '\\') in tomoyo_file_matches_pattern2()
715 if (c == '\\' && tomoyo_byte_range(filename + 1) in tomoyo_file_matches_pattern2()
716 && strncmp(filename + 1, pattern, 3) == 0) { in tomoyo_file_matches_pattern2()
717 filename += 3; in tomoyo_file_matches_pattern2()
724 for (i = 0; i <= filename_end - filename; i++) { in tomoyo_file_matches_pattern2()
726 filename + i, filename_end, in tomoyo_file_matches_pattern2()
729 c = filename[i]; in tomoyo_file_matches_pattern2()
734 if (filename[i + 1] == '\\') in tomoyo_file_matches_pattern2()
736 else if (tomoyo_byte_range(filename + i + 1)) in tomoyo_file_matches_pattern2()
746 while (isdigit(filename[j])) in tomoyo_file_matches_pattern2()
749 while (isxdigit(filename[j])) in tomoyo_file_matches_pattern2()
752 while (tomoyo_alphabet_char(filename[j])) in tomoyo_file_matches_pattern2()
757 filename + i, filename_end, in tomoyo_file_matches_pattern2()
763 filename++; in tomoyo_file_matches_pattern2()
769 return filename == filename_end && pattern == pattern_end; in tomoyo_file_matches_pattern2()
782 static bool tomoyo_file_matches_pattern(const char *filename, in tomoyo_file_matches_pattern() argument
795 result = tomoyo_file_matches_pattern2(filename, in tomoyo_file_matches_pattern()
806 result = tomoyo_file_matches_pattern2(filename, filename_end, in tomoyo_file_matches_pattern()
902 bool tomoyo_path_matches_pattern(const struct tomoyo_path_info *filename, in tomoyo_path_matches_pattern() argument
905 const char *f = filename->name; 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()