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