Annotation of pgp/src/ziperr.h, revision 1.1.1.3

1.1.1.3 ! root        1: /*
        !             2: 
        !             3:  Copyright (C) 1990,1991 Mark Adler, Richard B. Wales, and Jean-loup Gailly.
        !             4:  Permission is granted to any individual or institution to use, copy, or
        !             5:  redistribute this software so long as all of the original files are included
        !             6:  unmodified, that it is not sold for profit, and that this copyright notice
        !             7:  is retained.
        !             8: 
        !             9: */
        !            10: 
        !            11: /*
        !            12:  *  ziperr.h by Mark Adler.
        !            13:  */
        !            14: 
        !            15: /* Error return values.  The values 0..4 and 12..18 follow the conventions
        !            16:    of PKZIP.   The values 4..10 are all assigned to "insufficient memory"
        !            17:    by PKZIP, so the codes 5..10 are used here for other purposes. */
        !            18: #define ZE_MISS         -1      /* used by procname(), zipbare() */
        !            19: #define ZE_OK           0       /* success */
        !            20: #define ZE_EOF          2       /* unexpected end of zip file */
        !            21: #define ZE_FORM         3       /* zip file structure error */
        !            22: #define ZE_MEM          4       /* out of memory */
        !            23: #define ZE_LOGIC        5       /* internal logic error */
        !            24: #define ZE_BIG          6       /* entry too large to split */
        !            25: #define ZE_NOTE         7       /* invalid comment format */
        !            26: #define ZE_ABORT        9       /* user interrupt or termination */
        !            27: #define ZE_TEMP         10      /* error using a temp file */
        !            28: #define ZE_READ         11      /* read or seek error */
        !            29: #define ZE_NONE         12      /* nothing to do */
        !            30: #define ZE_NAME         13      /* missing or empty zip file */
        !            31: #define ZE_WRITE        14      /* error writing to a file */
        !            32: #define ZE_CREAT        15      /* couldn't open to write */
        !            33: #define ZE_PARMS        16      /* bad command line */
        !            34: #define ZE_OPEN         18      /* could not open a specified file to read */
        !            35: /* Macro to determine whether to call perror() or not */
        !            36: #define PERR(e) (e==ZE_READ||e==ZE_WRITE||e==ZE_CREAT||e==ZE_TEMP||e==ZE_OPEN)
        !            37: 
        !            38: #ifdef GLOBALS
        !            39: /* Error messages for the err() function in the zip programs */
        !            40: char *errors[] = {
        !            41: /*  1 */  "",
        !            42: /*  2 */  "Unexpected end of zip file",
        !            43: /*  3 */  "Zip file structure invalid",
        !            44: /*  4 */  "Out of memory",
        !            45: /*  5 */  "Internal logic error",
        !            46: /*  6 */  "Entry too big to split",
        !            47: /*  7 */  "Invalid comment format",
        !            48: /*  8 */  "",
        !            49: /*  9 */  "Interrupted",
        !            50: /* 10 */  "Temporary file failure",
        !            51: /* 11 */  "Input file read failure",
        !            52: /* 12 */  "Nothing to do!",
        !            53: /* 13 */  "Missing or empty zip file",
        !            54: /* 14 */  "Output file write failure",
        !            55: /* 15 */  "Could not create output file",
        !            56: /* 16 */  "Invalid command arguments",
        !            57: /* 17 */  "",
        !            58: /* 18 */  "File not found or no read permission",
        !            59: };
        !            60: #else /* !GLOBALS */
        !            61: extern char *errors[];          /* Error messages for err() */
        !            62: #endif /* ?GLOBALS */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.