Lines Matching refs:file_name

48 			 const char *file_name, int flags, mode_t mode,  in __hurd_file_name_lookup()  argument
58 return lookup_error ((*lookup) (startdir, file_name, flags, mode, in __hurd_file_name_lookup()
65 if (file_name[0] == '\0') in __hurd_file_name_lookup()
68 startport = (file_name[0] == '/') ? INIT_PORT_CRDIR : INIT_PORT_CWDIR; in __hurd_file_name_lookup()
69 while (file_name[0] == '/') in __hurd_file_name_lookup()
70 file_name++; in __hurd_file_name_lookup()
80 size_t len = strlen (file_name); in __hurd_file_name_lookup()
82 file_name = "/"; in __hurd_file_name_lookup()
83 else if (file_name[len - 1] != '/') in __hurd_file_name_lookup()
86 memcpy (n, file_name, len); in __hurd_file_name_lookup()
89 file_name = n; in __hurd_file_name_lookup()
111 const char *file_name, in weak_alias()
121 const char *lastslash = strrchr (file_name, '/'); in weak_alias()
125 if (lastslash == file_name) in weak_alias()
128 *name = (char *) file_name + 1; in weak_alias()
134 char dirname[lastslash - file_name + 1]; in weak_alias()
135 memcpy (dirname, file_name, lastslash - file_name); in weak_alias()
136 dirname[lastslash - file_name] = '\0'; in weak_alias()
143 else if (file_name[0] == '\0') in weak_alias()
148 *name = (char *) file_name; in weak_alias()
164 const char *file_name, in weak_alias()
174 const char *lastslash = strrchr (file_name, '/'); in weak_alias()
181 while (lastslash > file_name && *lastslash == '/') in weak_alias()
185 lastslash = __memrchr (file_name, '/', lastslash - file_name); in weak_alias()
190 if (lastslash == file_name) in weak_alias()
193 *name = (char *) file_name + 1; in weak_alias()
199 char dirname[lastslash - file_name + 1]; in weak_alias()
200 memcpy (dirname, file_name, lastslash - file_name); in weak_alias()
201 dirname[lastslash - file_name] = '\0'; in weak_alias()
208 else if (file_name[0] == '\0') in weak_alias()
213 *name = (char *) file_name; in weak_alias()
221 __file_name_lookup (const char *file_name, int flags, mode_t mode) in weak_alias()
227 file_name, flags, mode & ~_hurd_umask, in weak_alias()
236 __file_name_split (const char *file_name, char **name) in weak_alias()
242 file_name, &result, name); in weak_alias()
264 const char *file_name, int flags, mode_t mode) in weak_alias()
276 file_name, flags, mode & ~_hurd_umask, in weak_alias()