Lines Matching defs:path

48 	const char *path = NULL;
78 path = getenv("PATH");
81 path = getenv("LIBRARY_PATH");
84 path = getenv("ADDON_PATH");
91 if (path != NULL)
92 return path;
174 const char *abiSpecificSubDir, char *path, size_t pathLength)
180 // construct the path
182 char *buffer = path;
225 strcpy(path + dirLength + 1, name);
228 TRACE(("runtime_loader: try_open_container(): %s\n", path));
230 // Test if the target is a symbolic link, and correct the path in this case
232 status = _kern_read_stat(-1, path, false, &stat, sizeof(struct stat));
242 status = _kern_read_link(-1, path, buffer, &length);
247 lastSlash = strrchr(path, '/');
249 // relative path
250 strlcpy(lastSlash + 1, buffer, lastSlash + 1 - path + pathLength);
252 strlcpy(path, buffer, pathLength);
255 return _kern_open(-1, path, O_RDONLY, 0);
310 // the name already contains a path, we don't have to search for it
315 // can't search harder an absolute path add-on name!
320 // and relative path based add-ons another chance and look
324 // For library (but not add-on), strip any path from name.
325 // Relative path of add-on is kept.
336 // It consists of a colon-separated search path list. Optionally a
337 // second search path list follows, separated from the first by a
355 // If not found yet, let's evaluate the system path variables to find the
365 // we found it, copy path!
390 Tests if there is an executable file at the provided path. It will
398 char path[B_PATH_NAME_LENGTH];
408 strlcpy(path, name, sizeof(path));
410 fd = open_executable(path, B_APP_IMAGE, NULL, NULL, NULL, NULL, NULL);
415 status = _kern_access(-1, path, X_OK, false);
699 get_executable_architecture(const char* path, const char** _architecture)
701 int fd = _kern_open(-1, path, O_RDONLY, 0);