Lines Matching refs:pathname
216 * Return a pathname that points to a specified file in a specified directory.
224 char *pathname;
231 * Construct the full pathname.
234 pathname = (char *) calloc(len, sizeof(char));
235 if (pathname == NULL)
237 SNPRINTF3(pathname, len, "%s%s%s", dirname, PATHNAME_SEP, filename);
241 f = open(pathname, OPEN_READ);
244 free(pathname);
245 pathname = NULL;
250 return (pathname);
254 * Return the full pathname of the given file in the "home directory".
260 char *pathname;
265 pathname = dirfile(lgetenv("HOME"), filename);
266 if (pathname != NULL)
267 return (pathname);
272 pathname = dirfile(lgetenv("INIT"), filename);
273 if (pathname != NULL)
274 return (pathname);
280 pathname = (char *) calloc(_MAX_PATH, sizeof(char));
285 *pathname = '\0';
287 strcpy(pathname, res);
290 _searchenv(filename, "PATH", pathname);
292 if (*pathname != '\0')
293 return (pathname);
294 free(pathname);
801 * Return canonical pathname.
1109 * Return last component of a pathname.