Lines Matching full:realpath
184 static bool is_system_library(const std::string& realpath) {
186 if (file_is_in_dir(realpath, dir)) {
437 // 1. For regular path it converts it to realpath()
438 // 2. For path in a zip file it uses realpath on the zipfile
446 if (realpath(original_path, resolved_path) != nullptr) {
471 if (realpath(zip_path.c_str(), resolved_path) == nullptr) {
552 static bool realpath_fd(int fd, std::string* realpath) {
560 *realpath = &buf[0];
870 soinfo::soinfo(android_namespace_t* ns, const char* realpath,
875 if (realpath != nullptr) {
876 realpath_ = realpath;
1168 bool read(const char* realpath, off64_t file_size) {
1170 return elf_reader.Read(realpath, fd_, file_offset_, file_size);
1482 off64_t* file_offset, std::string* realpath) {
1538 if (realpath_fd(fd, realpath)) {
1539 *realpath += separator;
1541 PRINT("warning: unable to get realpath for the library \"%s\". Will use given path.",
1543 *realpath = normalized_path;
1562 std::string* realpath) {
1571 fd = open_library_in_zipfile(zip_archive_cache, buf, file_offset, realpath);
1578 if (!realpath_fd(fd, realpath)) {
1579 PRINT("warning: unable to get realpath for the library \"%s\". Will use given path.", buf);
1580 *realpath = buf;
1596 off64_t* file_offset, std::string* realpath) {
1604 fd = open_library_in_zipfile(zip_archive_cache, name, file_offset, realpath);
1611 if (!realpath_fd(fd, realpath)) {
1612 PRINT("warning: unable to get realpath for the library \"%s\". Will use given path.", name);
1613 *realpath = name;
1622 int fd = open_library_on_paths(zip_archive_cache, name, file_offset, ns->get_ld_library_paths(), realpath);
1624 fd = open_library_on_paths(zip_archive_cache, name, file_offset, needed_by->get_dt_runpath(), realpath);
1626 if (fd != -1 && !ns->is_accessible(*realpath)) {
1632 fd = open_library_on_paths(zip_archive_cache, name, file_offset, ns->get_default_library_paths(), realpath);
1639 g_default_namespace.get_default_library_paths(), realpath);
1684 const std::string& realpath) {
1743 if (!ns->is_accessible(realpath)) {
1755 name, realpath.c_str(), sopath, ns->get_name());
1770 name, realpath.c_str(),
1780 soinfo* si = soinfo_alloc(ns, realpath.c_str(), &file_stat, file_offset, rtld_flags);
1788 if (!task->read(realpath.c_str(), file_stat.st_size)) {
1825 std::string realpath;
1832 if (!realpath_fd(extinfo->library_fd, &realpath)) {
1833 PRINT("warning: unable to get realpath for the library \"%s\" by extinfo->library_fd. "
1835 realpath = name;
1840 return load_library(ns, task, load_tasks, rtld_flags, realpath);
1844 int fd = open_library(ns, zip_archive_cache, name, needed_by, &file_offset, &realpath);
1853 return load_library(ns, task, load_tasks, rtld_flags, realpath);