Lines Matching refs:file
32 dir_len (char const *file) in dir_len() argument
34 size_t prefix_length = FILE_SYSTEM_PREFIX_LEN (file); in dir_len()
40 && ISSLASH (file[prefix_length])) in dir_len()
41 : (ISSLASH (file[0]) in dir_len()
43 && ISSLASH (file[1]) && ! ISSLASH (file[2]) in dir_len()
48 for (length = last_component (file) - file; in dir_len()
50 if (! ISSLASH (file[length - 1])) in dir_len()
71 dir_name (char const *file) in dir_name() argument
73 size_t length = dir_len (file); in dir_name()
76 && length == FILE_SYSTEM_PREFIX_LEN (file) in dir_name()
77 && file[2] != '\0' && ! ISSLASH (file[2]))); in dir_name()
79 memcpy (dir, file, length); in dir_name()