Searched defs:zip_path (Results 1 - 3 of 3) sorted by relevance

/bionic/linker/tests/
H A Dlinker_utils_test.cpp89 std::string zip_path; local
92 ASSERT_FALSE(parse_zip_path("/not/a/zip/path/file.zip", &zip_path, &entry_path));
93 ASSERT_FALSE(parse_zip_path("/not/a/zip/path/file.zip!path/in/zip", &zip_path, &entry_path));
94 ASSERT_TRUE(parse_zip_path("/zip/path/file.zip!/path/in/zip", &zip_path, &entry_path));
95 ASSERT_EQ("/zip/path/file.zip", zip_path);
98 ASSERT_TRUE(parse_zip_path("/zip/path/file2.zip!/", &zip_path, &entry_path));
99 ASSERT_EQ("/zip/path/file2.zip", zip_path);
/bionic/linker/
H A Dlinker_utils.cpp140 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path) { argument
166 *zip_path = buf;
224 std::string zip_path; local
234 if (parse_zip_path(normalized_path.c_str(), &zip_path, &entry_path)) {
235 if (realpath(zip_path.c_str(), resolved_path) == nullptr) {
236 DL_WARN("Warning: unable to resolve \"%s\": %s", zip_path.c_str(), strerror(errno));
H A Dlinker.cpp888 bool get_or_open(const char* zip_path, ZipArchiveHandle* handle);
895 bool ZipArchiveCache::get_or_open(const char* zip_path, ZipArchiveHandle* handle) { argument
896 std::string key(zip_path);
904 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC));
954 const char* zip_path = buf; local
956 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC));
962 if (!zip_archive_cache->get_or_open(zip_path, &handle)) {

Completed in 325 milliseconds