Lines Matching refs:entry_name
503 static bool UnzipToMemory(ZipArchiveHandle zip, const std::string& entry_name, in UnzipToMemory() argument
505 ZipString zip_entry_name(entry_name.c_str()); in UnzipToMemory()
508 fprintf(stderr, "archive does not contain '%s'\n", entry_name.c_str()); in UnzipToMemory()
514 fprintf(stderr, "extracting %s (%zu MB) to RAM...\n", entry_name.c_str(), in UnzipToMemory()
519 if (error != 0) die("failed to extract '%s': %s", entry_name.c_str(), ErrorCodeString(error)); in UnzipToMemory()
614 static int unzip_to_file(ZipArchiveHandle zip, const char* entry_name) { in unzip_to_file() argument
615 unique_fd fd(make_temporary_fd(entry_name)); in unzip_to_file()
617 ZipString zip_entry_name(entry_name); in unzip_to_file()
620 fprintf(stderr, "archive does not contain '%s'\n", entry_name); in unzip_to_file()
625 fprintf(stderr, "extracting %s (%" PRIu32 " MB) to disk...", entry_name, in unzip_to_file()
630 die("\nfailed to extract '%s': %s", entry_name, ErrorCodeString(error)); in unzip_to_file()
634 die("\nlseek on extracted file '%s' failed: %s", entry_name, strerror(errno)); in unzip_to_file()