Lines Matching refs:filename

260 	char *filename;  in tomoyo_parse_name_union()  local
266 filename = tomoyo_read_token(param); in tomoyo_parse_name_union()
267 if (!tomoyo_correct_word(filename)) in tomoyo_parse_name_union()
269 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union()
270 return ptr->filename != NULL; in tomoyo_parse_name_union()
533 bool tomoyo_correct_path(const char *filename) in tomoyo_correct_path() argument
535 return *filename == '/' && tomoyo_correct_word(filename); in tomoyo_correct_path()
619 static int tomoyo_const_part_length(const char *filename) in tomoyo_const_part_length() argument
624 if (!filename) in tomoyo_const_part_length()
626 while ((c = *filename++) != '\0') { in tomoyo_const_part_length()
631 c = *filename++; in tomoyo_const_part_length()
640 c = *filename++; in tomoyo_const_part_length()
643 c = *filename++; in tomoyo_const_part_length()
682 static bool tomoyo_file_matches_pattern2(const char *filename, in tomoyo_file_matches_pattern2() argument
687 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
690 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
694 c = *filename; in tomoyo_file_matches_pattern2()
703 if (filename[1] == '\\') in tomoyo_file_matches_pattern2()
704 filename++; in tomoyo_file_matches_pattern2()
705 else if (tomoyo_byte_range(filename + 1)) in tomoyo_file_matches_pattern2()
706 filename += 3; in tomoyo_file_matches_pattern2()
714 if (*++filename != '\\') in tomoyo_file_matches_pattern2()
733 if (c == '\\' && tomoyo_byte_range(filename + 1) in tomoyo_file_matches_pattern2()
734 && strncmp(filename + 1, pattern, 3) == 0) { in tomoyo_file_matches_pattern2()
735 filename += 3; in tomoyo_file_matches_pattern2()
742 for (i = 0; i <= filename_end - filename; i++) { in tomoyo_file_matches_pattern2()
744 filename + i, filename_end, in tomoyo_file_matches_pattern2()
747 c = filename[i]; in tomoyo_file_matches_pattern2()
752 if (filename[i + 1] == '\\') in tomoyo_file_matches_pattern2()
754 else if (tomoyo_byte_range(filename + i + 1)) in tomoyo_file_matches_pattern2()
764 while (isdigit(filename[j])) in tomoyo_file_matches_pattern2()
767 while (isxdigit(filename[j])) in tomoyo_file_matches_pattern2()
770 while (tomoyo_alphabet_char(filename[j])) in tomoyo_file_matches_pattern2()
775 filename + i, filename_end, in tomoyo_file_matches_pattern2()
781 filename++; in tomoyo_file_matches_pattern2()
787 return filename == filename_end && pattern == pattern_end; in tomoyo_file_matches_pattern2()
800 static bool tomoyo_file_matches_pattern(const char *filename, in tomoyo_file_matches_pattern() argument
813 result = tomoyo_file_matches_pattern2(filename, in tomoyo_file_matches_pattern()
824 result = tomoyo_file_matches_pattern2(filename, filename_end, in tomoyo_file_matches_pattern()
920 bool tomoyo_path_matches_pattern(const struct tomoyo_path_info *filename, in tomoyo_path_matches_pattern() argument
923 const char *f = filename->name; 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()