Lines Matching refs:path

30 	const char *path = NULL;
34 path = getenv("PATH");
37 path = getenv("LIBRARY_PATH");
40 path = getenv("ADDON_PATH");
47 if (path != NULL)
48 return path;
88 const char *programPath, const char *compatibilitySubDir, char *path,
95 // construct the path
97 char *buffer = path;
104 // Replace %A with current app folder path (of course,
105 // this must be the first part of the path)
142 strcpy(path + dirLength + 1, name);
145 TRACE(("runtime_loader: try_open_container(): %s\n", path));
147 // Test if the target is a symbolic link, and correct the path in this case
149 status = _kern_read_stat(-1, path, false, &stat, sizeof(struct stat));
159 status = _kern_read_link(-1, path, buffer, &length);
164 lastSlash = strrchr(path, '/');
166 // relative path
167 strlcpy(lastSlash + 1, buffer, lastSlash + 1 - path + pathLength);
169 strlcpy(path, buffer, pathLength);
172 return _kern_open(-1, path, O_RDONLY, 0);
225 // the name already contains a path, we don't have to search for it
230 // can't search harder an absolute path add-on name!
235 // and relative path based add-ons another chance and look
239 // For library (but not add-on), strip any path from name.
240 // Relative path of add-on is kept.
248 // It consists of a colon-separated search path list. Optionally a
249 // second search path list follows, separated from the first by a
266 // If not found yet, let's evaluate the system path variables to find the
283 // we found it, copy path!
293 Tests if there is an executable file at the provided path. It will
301 char path[B_PATH_NAME_LENGTH];
310 strlcpy(path, name, sizeof(path));
312 fd = open_executable(path, B_APP_IMAGE, NULL, NULL, NULL);
317 status = _kern_access(-1, path, X_OK, false);