Lines Matching defs:file
1 /* dirname.c -- return all but the last element in a file name
32 dir_len (char const *file)
34 size_t prefix_length = FILE_SYSTEM_PREFIX_LEN (file);
40 && ISSLASH (file[prefix_length]))
41 : (ISSLASH (file[0])
43 && ISSLASH (file[1]) && ! ISSLASH (file[2])
48 for (length = last_component (file) - file;
50 if (! ISSLASH (file[length - 1]))
65 lstat (base_name (FILE)); } will access the same file. Likewise,
71 mdir_name (char const *file)
73 size_t length = dir_len (file);
76 && length == FILE_SYSTEM_PREFIX_LEN (file)
77 && file[2] != '\0' && ! ISSLASH (file[2])));
81 memcpy (dir, file, length);