Lines Matching defs:path
96 * what: translate and construct a path
100 * arg: + char const * + prg_path + The full path of the current program +
142 * errors (cannot resolve the resulting path).
173 * with the path to the executable and append a "/" character.
202 * convert a leading "$$" into a path to the executable.
207 char const * path;
221 * See if the path is included in the program name.
226 path = prg_path;
228 path = pathfind(getenv("PATH"), prg_path, "rx");
230 if (path == NULL)
234 pz = strrchr(path, DIRCH);
238 * THEN we do not have a path name to our executable file.
246 * Concatenate the file name to the end of the executable path.
249 if ((unsigned)(pz - path) + 1 + strlen(fname) >= (unsigned)b_sz)
252 memcpy(buf, path, (size_t)((pz - path)+1));
253 strcpy(buf + (pz - path) + 1, fname);
256 * If the "path" path was gotten from "pathfind()", then it was
259 if (path != prg_path)
260 AGFREE(path);