Lines Matching refs:realpath
184 static bool is_system_library(const std::string& realpath) { in is_system_library() argument
186 if (file_is_in_dir(realpath, dir)) { in is_system_library()
446 if (realpath(original_path, resolved_path) != nullptr) { in resolve_paths()
471 if (realpath(zip_path.c_str(), resolved_path) == nullptr) { in resolve_paths()
552 static bool realpath_fd(int fd, std::string* realpath) { in realpath_fd() argument
560 *realpath = &buf[0]; in realpath_fd()
870 soinfo::soinfo(android_namespace_t* ns, const char* realpath, in soinfo() argument
875 if (realpath != nullptr) { in soinfo()
876 realpath_ = realpath; in soinfo()
1168 bool read(const char* realpath, off64_t file_size) { in read() argument
1170 return elf_reader.Read(realpath, fd_, file_offset_, file_size); in read()
1482 off64_t* file_offset, std::string* realpath) { in open_library_in_zipfile() argument
1538 if (realpath_fd(fd, realpath)) { in open_library_in_zipfile()
1539 *realpath += separator; in open_library_in_zipfile()
1543 *realpath = normalized_path; in open_library_in_zipfile()
1562 std::string* realpath) { in open_library_on_paths() argument
1571 fd = open_library_in_zipfile(zip_archive_cache, buf, file_offset, realpath); in open_library_on_paths()
1578 if (!realpath_fd(fd, realpath)) { in open_library_on_paths()
1580 *realpath = buf; in open_library_on_paths()
1596 off64_t* file_offset, std::string* realpath) { in open_library() argument
1604 fd = open_library_in_zipfile(zip_archive_cache, name, file_offset, realpath); in open_library()
1611 if (!realpath_fd(fd, realpath)) { in open_library()
1613 *realpath = name; in open_library()
1622 … open_library_on_paths(zip_archive_cache, name, file_offset, ns->get_ld_library_paths(), realpath); in open_library()
1624 …open_library_on_paths(zip_archive_cache, name, file_offset, needed_by->get_dt_runpath(), realpath); in open_library()
1626 if (fd != -1 && !ns->is_accessible(*realpath)) { in open_library()
1632 …_library_on_paths(zip_archive_cache, name, file_offset, ns->get_default_library_paths(), realpath); in open_library()
1639 g_default_namespace.get_default_library_paths(), realpath); in open_library()
1684 const std::string& realpath) { in load_library() argument
1743 if (!ns->is_accessible(realpath)) { in load_library()
1755 name, realpath.c_str(), sopath, ns->get_name()); in load_library()
1770 name, realpath.c_str(), in load_library()
1780 soinfo* si = soinfo_alloc(ns, realpath.c_str(), &file_stat, file_offset, rtld_flags); in load_library()
1788 if (!task->read(realpath.c_str(), file_stat.st_size)) { in load_library()
1825 std::string realpath; in load_library() local
1832 if (!realpath_fd(extinfo->library_fd, &realpath)) { in load_library()
1835 realpath = name; in load_library()
1840 return load_library(ns, task, load_tasks, rtld_flags, realpath); in load_library()
1844 int fd = open_library(ns, zip_archive_cache, name, needed_by, &file_offset, &realpath); in load_library()
1853 return load_library(ns, task, load_tasks, rtld_flags, realpath); in load_library()