Home | History | Annotate | Download | only in gen

Lines Matching defs:path

55 	const char *path, *p;
61 /* "" is not a valid filename; check this before traversing PATH. */
71 /* Get the path we're searching. */
72 if ((path = getenv("PATH")) == NULL)
73 path = _PATH_DEFPATH;
76 * Find an executable image with the given name in the PATH
82 /* Find the end of this path element. */
83 for (p = path; *path != 0 && *path != ':'; path++)
86 * It's a SHELL path -- double, leading and trailing colons
89 if (p == path) {
93 lp = (size_t)(path - p);
104 * If the path is too long complain. This is a possible
105 * security issue; given a way to make the path too long
111 (void)write(STDERR_FILENO, ": path too long\n", 16);
126 * become a system call (with PATH as an arg, or an array
127 * of possible paths to try, based upon PATH and file)
139 } while (*path++ == ':'); /* Otherwise, *path was NUL */