Lines Matching refs:pathname
93 char pathname[PATH_MAX + 1];
146 /* unqualified pathname is unsafe */
158 s = replace_nls_option(s, name, pathname, locale,
161 p = file_open(pathname, UNSAFE_F);
196 t = pathname;
201 while (*s && t < pathname + PATH_MAX)
204 while (*s && t < pathname + PATH_MAX)
207 while (*s && t < pathname + PATH_MAX)
210 return (file_open(pathname, SAFE_F));
216 * with appropiate values. Returns expanded pathname.
219 replace_nls_option(char *s, char *name, char *pathname, char *locale,
224 t = pathname;
226 if (t < pathname + PATH_MAX) {
237 while (*u && t < pathname + PATH_MAX)
242 while (*u && t < pathname + PATH_MAX)
249 t < pathname + PATH_MAX)
256 t < pathname + PATH_MAX)
262 while (*u && t < pathname + PATH_MAX)
266 if (t < pathname + PATH_MAX)