Lines Matching refs:realpath
144 static bool is_system_library(const std::string& realpath) { in is_system_library() argument
146 if (file_is_in_dir(realpath, dir)) { in is_system_library()
344 static bool realpath_fd(int fd, std::string* realpath) { in realpath_fd() argument
361 realpath->assign(buf, length); in realpath_fd()
589 bool read(const char* realpath, off64_t file_size) { in read() argument
591 return elf_reader.Read(realpath, fd_, file_offset_, file_size); in read()
884 off64_t* file_offset, std::string* realpath) { in open_library_in_zipfile() argument
940 if (realpath_fd(fd, realpath)) { in open_library_in_zipfile()
941 *realpath += separator; in open_library_in_zipfile()
947 *realpath = normalized_path; in open_library_in_zipfile()
965 std::string* realpath) { in open_library_at_path() argument
968 fd = open_library_in_zipfile(zip_archive_cache, path, file_offset, realpath); in open_library_at_path()
975 if (!realpath_fd(fd, realpath)) { in open_library_at_path()
980 *realpath = path; in open_library_at_path()
991 std::string* realpath) { in open_library_on_paths() argument
998 int fd = open_library_at_path(zip_archive_cache, buf, file_offset, realpath); in open_library_on_paths()
1010 off64_t* file_offset, std::string* realpath) { in open_library() argument
1015 return open_library_at_path(zip_archive_cache, name, file_offset, realpath); in open_library()
1021 … open_library_on_paths(zip_archive_cache, name, file_offset, ns->get_ld_library_paths(), realpath); in open_library()
1025 …open_library_on_paths(zip_archive_cache, name, file_offset, needed_by->get_dt_runpath(), realpath); in open_library()
1026 if (fd != -1 && !ns->is_accessible(*realpath)) { in open_library()
1034 …_library_on_paths(zip_archive_cache, name, file_offset, ns->get_default_library_paths(), realpath); in open_library()
1040 int open_executable(const char* path, off64_t* file_offset, std::string* realpath) { in open_executable() argument
1042 return open_library_at_path(&zip_archive_cache, path, file_offset, realpath); in open_executable()
1107 static bool find_loaded_library_by_realpath(android_namespace_t* ns, const char* realpath, in find_loaded_library_by_realpath() argument
1109 auto predicate = [&](soinfo* si) { return strcmp(realpath, si->get_realpath()) == 0; }; in find_loaded_library_by_realpath()
1132 const std::string& realpath, in load_library() argument
1140 ns->get_name(), name, rtld_flags, realpath.c_str(), search_linked_namespaces); in load_library()
1189 if ((fs_stat.f_type != TMPFS_MAGIC) && (!ns->is_accessible(realpath))) { in load_library()
1205 name, realpath.c_str(), sopath, ns->get_name()); in load_library()
1222 name, realpath.c_str(), in load_library()
1233 soinfo* si = soinfo_alloc(ns, realpath.c_str(), &file_stat, file_offset, rtld_flags); in load_library()
1238 if (!task->read(realpath.c_str(), file_stat.st_size)) { in load_library()
1297 std::string realpath; in load_library() local
1298 if (!realpath_fd(extinfo->library_fd, &realpath)) { in load_library()
1305 realpath = name; in load_library()
1310 return load_library(ns, task, load_tasks, rtld_flags, realpath, search_linked_namespaces); in load_library()
1320 std::string realpath; in load_library() local
1321 int fd = open_library(ns, zip_archive_cache, name, needed_by, &file_offset, &realpath); in load_library()
1339 return load_library(ns, task, load_tasks, rtld_flags, realpath, search_linked_namespaces); in load_library()
2145 if (realpath(name, original_path) != nullptr) { in do_dlopen()
3339 if (realpath(default_ld_paths[i], real_path) != nullptr) { in init_default_namespace_no_config()