Home
last modified time | relevance | path

Searched refs:zip_path (Results 1 – 4 of 4) sorted by relevance

/bionic/linker/
Dlinker_utils_test.cpp92 std::string zip_path; in TEST() local
95 ASSERT_FALSE(parse_zip_path("/not/a/zip/path/file.zip", &zip_path, &entry_path)); in TEST()
96 ASSERT_FALSE(parse_zip_path("/not/a/zip/path/file.zip!path/in/zip", &zip_path, &entry_path)); in TEST()
97 ASSERT_TRUE(parse_zip_path("/zip/path/file.zip!/path/in/zip", &zip_path, &entry_path)); in TEST()
98 ASSERT_EQ("/zip/path/file.zip", zip_path); in TEST()
101 ASSERT_TRUE(parse_zip_path("/zip/path/file2.zip!/", &zip_path, &entry_path)); in TEST()
102 ASSERT_EQ("/zip/path/file2.zip", zip_path); in TEST()
Dlinker_utils.cpp140 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path) { in parse_zip_path() argument
166 *zip_path = buf; in parse_zip_path()
235 std::string zip_path; in resolve_path() local
237 if (parse_zip_path(normalized_path.c_str(), &zip_path, &entry_path)) { in resolve_path()
238 if (realpath(zip_path.c_str(), resolved_path) == nullptr) { in resolve_path()
240 zip_path.c_str(), strerror(errno)); in resolve_path()
Dlinker_utils.h41 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path);
Dlinker.cpp845 bool get_or_open(const char* zip_path, ZipArchiveHandle* handle);
852 bool ZipArchiveCache::get_or_open(const char* zip_path, ZipArchiveHandle* handle) { in get_or_open() argument
853 std::string key(zip_path); in get_or_open()
861 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC)); in get_or_open()
910 const char* zip_path = buf; in open_library_in_zipfile() local
912 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC)); in open_library_in_zipfile()
918 if (!zip_archive_cache->get_or_open(zip_path, &handle)) { in open_library_in_zipfile()