"Fossies" - the Fresh Open Source Software Archive

Member "libzip-1.6.0/lib/zip_err_str.c" (24 Jan 2020, 1489 Bytes) of package /linux/misc/libzip-1.6.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "zip_err_str.c" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 1.5.2_vs_1.6.0.

    1 /*
    2    This file was generated automatically by ./make_zip_err_str.sh
    3    from ./zip.h; make changes there.
    4  */
    5 
    6 #include "zipint.h"
    7 
    8 const char * const _zip_err_str[] = {
    9     "No error",
   10     "Multi-disk zip archives not supported",
   11     "Renaming temporary file failed",
   12     "Closing zip archive failed",
   13     "Seek error",
   14     "Read error",
   15     "Write error",
   16     "CRC error",
   17     "Containing zip archive was closed",
   18     "No such file",
   19     "File already exists",
   20     "Can't open file",
   21     "Failure to create temporary file",
   22     "Zlib error",
   23     "Malloc failure",
   24     "Entry has been changed",
   25     "Compression method not supported",
   26     "Premature end of file",
   27     "Invalid argument",
   28     "Not a zip archive",
   29     "Internal error",
   30     "Zip archive inconsistent",
   31     "Can't remove file",
   32     "Entry has been deleted",
   33     "Encryption method not supported",
   34     "Read-only archive",
   35     "No password provided",
   36     "Wrong password provided",
   37     "Operation not supported",
   38     "Resource still in use",
   39     "Tell error",
   40     "Compressed data invalid",
   41     "Operation cancelled",
   42 };
   43 
   44 const int _zip_nerr_str = sizeof(_zip_err_str)/sizeof(_zip_err_str[0]);
   45 
   46 #define N ZIP_ET_NONE
   47 #define S ZIP_ET_SYS
   48 #define Z ZIP_ET_ZLIB
   49 
   50 const int _zip_err_type[] = {
   51     N,
   52     N,
   53     S,
   54     S,
   55     S,
   56     S,
   57     S,
   58     N,
   59     N,
   60     N,
   61     N,
   62     S,
   63     S,
   64     Z,
   65     N,
   66     N,
   67     N,
   68     N,
   69     N,
   70     N,
   71     N,
   72     N,
   73     S,
   74     N,
   75     N,
   76     N,
   77     N,
   78     N,
   79     N,
   80     N,
   81     S,
   82     N,
   83     N,
   84 };