Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

ziperr.h

00001 /*
00002   Copyright (c) 1990-1999 Info-ZIP.  All rights reserved.
00003 
00004   See the accompanying file LICENSE, version 1999-Oct-05 or later
00005   (the contents of which are also included in zip.h) for terms of use.
00006   If, for some reason, both of these files are missing, the Info-ZIP license
00007   also may be found at:  ftp://ftp.cdrom.com/pub/infozip/license.html
00008 */
00009 /*
00010  *  ziperr.h by Mark Adler
00011  */
00012 
00013 /* Error return values.  The values 0..4 and 12..18 follow the conventions
00014    of PKZIP.   The values 4..10 are all assigned to "insufficient memory"
00015    by PKZIP, so the codes 5..10 are used here for other purposes. */
00016 #define ZE_MISS         -1      /* used by procname(), zipbare() */
00017 #define ZE_OK           0       /* success */
00018 #define ZE_EOF          2       /* unexpected end of zip file */
00019 #define ZE_FORM         3       /* zip file structure error */
00020 #define ZE_MEM          4       /* out of memory */
00021 #define ZE_LOGIC        5       /* internal logic error */
00022 #define ZE_BIG          6       /* entry too large to split */
00023 #define ZE_NOTE         7       /* invalid comment format */
00024 #define ZE_TEST         8       /* zip test (-T) failed or out of memory */
00025 #define ZE_ABORT        9       /* user interrupt or termination */
00026 #define ZE_TEMP         10      /* error using a temp file */
00027 #define ZE_READ         11      /* read or seek error */
00028 #define ZE_NONE         12      /* nothing to do */
00029 #define ZE_NAME         13      /* missing or empty zip file */
00030 #define ZE_WRITE        14      /* error writing to a file */
00031 #define ZE_CREAT        15      /* couldn't open to write */
00032 #define ZE_PARMS        16      /* bad command line */
00033 #define ZE_OPEN         18      /* could not open a specified file to read */
00034 
00035 #define ZE_MAXERR       18      /* the highest error number */
00036 
00037 /* Macro to determine whether to call perror() or not */
00038 #define PERR(e) (e==ZE_READ||e==ZE_WRITE||e==ZE_CREAT||e==ZE_TEMP||e==ZE_OPEN)
00039 
00040 #ifdef GLOBALS
00041 /* Error messages for the ziperr() function in the zip programs */
00042 char *errors[ZE_MAXERR] = {
00043 /*  1 */  "",
00044 /*  2 */  "Unexpected end of zip file",
00045 /*  3 */  "Zip file structure invalid",
00046 /*  4 */  "Out of memory",
00047 /*  5 */  "Internal logic error",
00048 /*  6 */  "Entry too big to split",
00049 /*  7 */  "Invalid comment format",
00050 /*  8 */  "Zip file invalid or could not spawn unzip",
00051 /*  9 */  "Interrupted",
00052 /* 10 */  "Temporary file failure",
00053 /* 11 */  "Input file read failure",
00054 /* 12 */  "Nothing to do!",
00055 /* 13 */  "Missing or empty zip file",
00056 /* 14 */  "Output file write failure",
00057 /* 15 */  "Could not create output file",
00058 /* 16 */  "Invalid command arguments",
00059 /* 17 */  "",
00060 /* 18 */  "File not found or no read permission"
00061 #  ifdef AZTEC_C
00062           ,     /* extremely lame compiler bug workaround */
00063 #  endif
00064 };
00065 #else /* !GLOBALS */
00066 extern char *errors[ZE_MAXERR]; /* Error messages for ziperr() */
00067 #endif /* ?GLOBALS */

Generated on Wed Oct 26 14:46:52 2005 for Lgi by  doxygen 1.4.1