blob: f4dcf1d27b46e45f8fffbcdbc7a247e1f404161a [file] [log] [blame]
From 327a318dbdb7d91986cc0d8fa46b44118bf8463d Mon Sep 17 00:00:00 2001
From: Michael Crouse <mcrouse@chromium.org>
Date: Tue, 5 Jan 2021 09:06:54 -0800
Subject: [PATCH] add built zip_err_str.c
---
third_party/libzip/src/zip_err_str.c | 84 ++++++++++++++++++++++++++++
1 file changed, 84 insertions(+)
create mode 100644 third_party/libzip/src/zip_err_str.c
diff --git a/third_party/libzip/src/zip_err_str.c b/third_party/libzip/src/zip_err_str.c
new file mode 100644
index 000000000000..d3efa54a1fe4
--- /dev/null
+++ b/third_party/libzip/src/zip_err_str.c
@@ -0,0 +1,84 @@
+/*
+ This file was generated automatically by CMake
+ from zip.h; make changes there.
+*/
+
+#include "lib/zipint.h"
+
+const char * const _zip_err_str[] = {
+ "No error",
+ "Multi-disk zip archives not supported",
+ "Renaming temporary file failed",
+ "Closing zip archive failed",
+ "Seek error",
+ "Read error",
+ "Write error",
+ "CRC error",
+ "Containing zip archive was closed",
+ "No such file",
+ "File already exists",
+ "Can't open file",
+ "Failure to create temporary file",
+ "Zlib error",
+ "Malloc failure",
+ "Entry has been changed",
+ "Compression method not supported",
+ "Premature end of file",
+ "Invalid argument",
+ "Not a zip archive",
+ "Internal error",
+ "Zip archive inconsistent",
+ "Can't remove file",
+ "Entry has been deleted",
+ "Encryption method not supported",
+ "Read-only archive",
+ "No password provided",
+ "Wrong password provided",
+ "Operation not supported",
+ "Resource still in use",
+ "Tell error",
+ "Compressed data invalid",
+ "Operation cancelled",
+};
+
+const int _zip_nerr_str = sizeof(_zip_err_str)/sizeof(_zip_err_str[0]);
+
+#define N ZIP_ET_NONE
+#define S ZIP_ET_SYS
+#define Z ZIP_ET_ZLIB
+
+const int _zip_err_type[] = {
+ N,
+ N,
+ S,
+ S,
+ S,
+ S,
+ S,
+ N,
+ N,
+ N,
+ N,
+ S,
+ S,
+ Z,
+ N,
+ N,
+ N,
+ N,
+ N,
+ N,
+ N,
+ N,
+ S,
+ N,
+ N,
+ N,
+ N,
+ N,
+ N,
+ N,
+ S,
+ N,
+ N,
+};
\ No newline at end of file
--
2.29.2.729.g45daf8777d-goog