Lines Matching refs:path

130 static void parse_path(const char* path, const char* delimiters,  in parse_path()  argument
133 split_path(path, delimiters, &paths); in parse_path()
137 static void parse_LD_LIBRARY_PATH(const char* path) { in parse_LD_LIBRARY_PATH() argument
139 parse_path(path, ":", &ld_libary_paths); in parse_LD_LIBRARY_PATH()
143 static void parse_LD_PRELOAD(const char* path) { in parse_LD_PRELOAD() argument
145 if (path != nullptr) { in parse_LD_PRELOAD()
147 g_ld_preload_names = android::base::Split(path, " :"); in parse_LD_PRELOAD()
194 std::string path; member
210 char path[PATH_MAX]; in get_executable_info() local
211 ssize_t path_len = readlink("/init", path, sizeof(path)); in get_executable_info()
212 if (path_len == -1 || path_len >= static_cast<ssize_t>(sizeof(path))) { in get_executable_info()
213 result.path = "/init"; in get_executable_info()
215 result.path = std::string(path, path_len); in get_executable_info()
224 char path[PATH_MAX]; in get_executable_info() local
225 ssize_t path_len = readlink("/proc/self/exe", path, sizeof(path)); in get_executable_info()
226 if (path_len == -1 || path_len >= static_cast<ssize_t>(sizeof(path))) { in get_executable_info()
229 result.path = std::string(path, path_len); in get_executable_info()
276 android::base::unique_fd fd(open_executable(orig_path, &file_offset, &result.path)); in load_executable()
282 __linker_error("error: unable to stat \"%s\": %s\n", result.path.c_str(), strerror(errno)); in load_executable()
286 if (!elf_reader.Read(result.path.c_str(), fd.get(), file_offset, result.file_stat.st_size)) { in load_executable()
349 INFO("[ Linking executable \"%s\" ]", exe_info.path.c_str()); in linker_main()
353 exe_info.path.c_str(), &exe_info.file_stat, in linker_main()
420 std::vector<android_namespace_t*> namespaces = init_default_namespaces(exe_info.path.c_str()); in linker_main()