Lines Matching refs:filename
248 char *filename; in tomoyo_parse_name_union() local
255 filename = tomoyo_read_token(param); in tomoyo_parse_name_union()
256 if (!tomoyo_correct_word(filename)) in tomoyo_parse_name_union()
258 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union()
259 return ptr->filename != NULL; in tomoyo_parse_name_union()
524 bool tomoyo_correct_path(const char *filename) in tomoyo_correct_path() argument
526 return *filename == '/' && tomoyo_correct_word(filename); in tomoyo_correct_path()
612 static int tomoyo_const_part_length(const char *filename) in tomoyo_const_part_length() argument
617 if (!filename) in tomoyo_const_part_length()
619 while ((c = *filename++) != '\0') { in tomoyo_const_part_length()
624 c = *filename++; in tomoyo_const_part_length()
633 c = *filename++; in tomoyo_const_part_length()
636 c = *filename++; in tomoyo_const_part_length()
675 static bool tomoyo_file_matches_pattern2(const char *filename, in tomoyo_file_matches_pattern2() argument
680 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
686 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
690 c = *filename; in tomoyo_file_matches_pattern2()
697 if (filename[1] == '\\') in tomoyo_file_matches_pattern2()
698 filename++; in tomoyo_file_matches_pattern2()
699 else if (tomoyo_byte_range(filename + 1)) in tomoyo_file_matches_pattern2()
700 filename += 3; in tomoyo_file_matches_pattern2()
708 if (*++filename != '\\') in tomoyo_file_matches_pattern2()
727 if (c == '\\' && tomoyo_byte_range(filename + 1) in tomoyo_file_matches_pattern2()
728 && strncmp(filename + 1, pattern, 3) == 0) { in tomoyo_file_matches_pattern2()
729 filename += 3; in tomoyo_file_matches_pattern2()
736 for (i = 0; i <= filename_end - filename; i++) { in tomoyo_file_matches_pattern2()
738 filename + i, filename_end, in tomoyo_file_matches_pattern2()
741 c = filename[i]; in tomoyo_file_matches_pattern2()
746 if (filename[i + 1] == '\\') in tomoyo_file_matches_pattern2()
748 else if (tomoyo_byte_range(filename + i + 1)) in tomoyo_file_matches_pattern2()
758 while (isdigit(filename[j])) in tomoyo_file_matches_pattern2()
761 while (isxdigit(filename[j])) in tomoyo_file_matches_pattern2()
764 while (tomoyo_alphabet_char(filename[j])) in tomoyo_file_matches_pattern2()
769 filename + i, filename_end, in tomoyo_file_matches_pattern2()
775 filename++; in tomoyo_file_matches_pattern2()
781 return filename == filename_end && pattern == pattern_end; in tomoyo_file_matches_pattern2()
794 static bool tomoyo_file_matches_pattern(const char *filename, in tomoyo_file_matches_pattern() argument
807 result = tomoyo_file_matches_pattern2(filename, in tomoyo_file_matches_pattern()
818 result = tomoyo_file_matches_pattern2(filename, filename_end, in tomoyo_file_matches_pattern()
914 bool tomoyo_path_matches_pattern(const struct tomoyo_path_info *filename, in tomoyo_path_matches_pattern() argument
917 const char *f = filename->name; 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()