Lines Matching defs:path

74  * Find a command in a directory, returning the path.
91 * Find a path for the executable
97 char *path;
102 /* absolute path? */
107 /* relative path? */
113 /* from search path? */
114 path = getenv("PATH");
115 if (!path || !*path) path = ".";
116 tmp_path = JLI_MemAlloc(JLI_StrLen(path) + 2);
117 JLI_StrCpy(tmp_path, path);
126 /* relative path element */
178 * executable object at bin/java relative to the path being checked
182 CheckSanity(char *path, char *dir)
186 if (JLI_StrLen(path) + JLI_StrLen(dir) + 11 > PATH_MAX)
189 JLI_Snprintf(buffer, sizeof(buffer), "%s/%s/bin/java", path, dir);
195 * Upon locating the "best" one, return a fully qualified path to
271 char *path;
281 path = JLI_StringDup(system_dir);
282 } else if ((path = getenv("JAVA_VERSION_PATH")) != NULL) {
283 path = JLI_StringDup(path);
286 path = (char *)JLI_MemAlloc(JLI_StrLen(home) + \
288 sprintf(path, "%s%s:%s", home, user_dir, system_dir);
290 path = JLI_StringDup(system_dir);
295 * Step through each directory on the path. Terminate the scan with
298 cp = dp = path;
309 JLI_MemFree(path);
314 * Given a path to a jre to execute, this routine checks if this process
330 * Resolve the real path to the directory containing the selected JRE.
338 * Resolve the real path to the currently running launcher.
348 * If the path to the selected JRE directory is a match to the initial
349 * portion of the path to the currently executing JRE, we have a winner!
358 * but check for "impossibly" long path names just because buffer overruns
367 * Construct the path and exec it.