Lines Matching defs:path
64 void poptSetExecPath(poptContext con, const char * path, int allowAbsolute)
67 con->execPath = xstrdup(path);
404 * Return absolute path to executable by searching PATH.
406 * @return (malloc'd) absolute path to executable (or NULL)
411 char *path = NULL, *s = NULL, *se;
416 /* If there is a / in argv[0], it has to be an absolute path. */
421 if ((path = getenv("PATH")) == NULL || (path = xstrdup(path)) == NULL)
424 /* The return buffer in t is big enough for any path. */
425 if ((t = malloc(strlen(path) + strlen(argv0) + sizeof("/"))) != NULL)
426 for (s = path; s && *s; s = se) {
443 path = _free(path);