Lines Matching refs:pathname
220 * Return a pathname that points to a specified file in a specified directory.
228 char *pathname;
236 * Construct the full pathname.
239 pathname = (char *) calloc(len, sizeof(char));
240 if (pathname == NULL)
242 SNPRINTF3(pathname, len, "%s%s%s", dirname, PATHNAME_SEP, filename);
246 qpathname = shell_unquote(pathname);
250 free(pathname);
251 pathname = NULL;
257 return (pathname);
261 * Return the full pathname of the given file in the "home directory".
267 register char *pathname;
272 pathname = dirfile(lgetenv("HOME"), filename);
273 if (pathname != NULL)
274 return (pathname);
279 pathname = dirfile(lgetenv("INIT"), filename);
280 if (pathname != NULL)
281 return (pathname);
287 pathname = (char *) calloc(_MAX_PATH, sizeof(char));
292 *pathname = '\0';
294 strcpy(pathname, res);
297 _searchenv(filename, "PATH", pathname);
299 if (*pathname != '\0')
300 return (pathname);
301 free(pathname);
688 char *pathname;
705 pathname = (char *) ecalloc(n, sizeof(char));
706 SNPRINTF3(pathname, n, "%s%s%s", drive, dir, fnd.GLOB_NAME);
707 qpathname = shell_quote(pathname);
708 free(pathname);
1102 * Return last component of a pathname.