Lines Matching refs:entry_name
702 static bool UnzipToMemory(ZipArchiveHandle zip, const std::string& entry_name, in UnzipToMemory() argument
705 if (FindEntry(zip, entry_name, &zip_entry) != 0) { in UnzipToMemory()
706 fprintf(stderr, "archive does not contain '%s'\n", entry_name.c_str()); in UnzipToMemory()
711 die("entry '%s' is too large: %" PRIu64, entry_name.c_str(), zip_entry.uncompressed_length); in UnzipToMemory()
715 fprintf(stderr, "extracting %s (%zu MB) to RAM...\n", entry_name.c_str(), in UnzipToMemory()
720 if (error != 0) die("failed to extract '%s': %s", entry_name.c_str(), ErrorCodeString(error)); in UnzipToMemory()
776 static unique_fd unzip_to_file(ZipArchiveHandle zip, const char* entry_name) { in unzip_to_file() argument
777 unique_fd fd(make_temporary_fd(entry_name)); in unzip_to_file()
780 if (FindEntry(zip, entry_name, &zip_entry) != 0) { in unzip_to_file()
781 fprintf(stderr, "archive does not contain '%s'\n", entry_name); in unzip_to_file()
786 fprintf(stderr, "extracting %s (%" PRIu64 " MB) to disk...", entry_name, in unzip_to_file()
791 die("\nfailed to extract '%s': %s", entry_name, ErrorCodeString(error)); in unzip_to_file()
795 die("\nlseek on extracted file '%s' failed: %s", entry_name, strerror(errno)); in unzip_to_file()