home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / h / hpack78s.zip / errorlvl.h < prev    next >
Text File  |  1992-09-17  |  3KB  |  58 lines

  1. /****************************************************************************
  2. *                                                                            *
  3. *                            HPACK Multi-System Archiver                        *
  4. *                            ===========================                        *
  5. *                                                                            *
  6. *                              HPACK Error Return ID's                        *
  7. *                            ERRORLVL.H  Updated 14/03/92                    *
  8. *                                                                            *
  9. * This program is protected by copyright and as such any use or copying of    *
  10. *  this code for your own purposes directly or indirectly is highly uncool    *
  11. *                      and if you do so there will be....trubble.                *
  12. *                 And remember: We know where your kids go to school.            *
  13. *                                                                            *
  14. *        Copyright 1991 - 1992  Peter C.Gutmann.  All rights reserved        *
  15. *                                                                            *
  16. ****************************************************************************/
  17.  
  18. /* The following are the error-level return values for HPACK.  To be ANSI-
  19.    compliant they should start with EXIT_SUCCESS and EXIT_FAILURE, however
  20.    few compilers seem to have these #defines, thus we use our own.  There
  21.    are four levels of errors: No error = 0, severe errors = 0xx, standard
  22.    errors = 1xx, and minor errors = 2xx.  Most programmers will just treat
  23.    all 1xx and all 2xx errors as a single error type */
  24.  
  25. enum { EXIT_OK,                    /* No error */
  26.  
  27.      /* Severe errors */
  28.      EXIT_INT_ERR,                /* Internal error */
  29.      EXIT_NO_MEM,                /* Out of memory */
  30.      EXIT_NO_DISK,                /* Out of disk space */
  31.      EXIT_NO_ARCH,                /* Can't open archive file */
  32.      EXIT_NO_TEMP,                /* Can't open temp file */
  33.      EXIT_NO_PATH,                /* Can't find path */
  34.      EXIT_NO_BASE,                /* Can't access base directory */
  35.      EXIT_NO_MKDIR,                /* Can't create directory */
  36.      EXIT_BREAK,                /* User interrupt */
  37.      EXIT_FILE_ERR,                /* Unknown file error */
  38.      EXIT_DIR_CORRUPT,            /* Archive directory corrupted */
  39.  
  40.      /* Standard errors */
  41.      EXIT_LONG_PATH = 100,        /* Path too long */
  42.      EXIT_NO_OVERRIDE,            /* Can't override base path */
  43.      EXIT_NEST,                    /* Dirs.nested too deeply */
  44.      EXIT_SCRIPT_ERR,            /* Error(s) in script file */
  45.      EXIT_NOT_ARCH,                /* Not an HPACK archive */
  46.      EXIT_BAD_KEYFILE,            /* Bad keyfile */
  47.      EXIT_NOTHING,                /* Nothing to do */
  48.      EXIT_COMMAND,                /* Unknown command */
  49.      EXIT_OPTION,                /* Unknown option */
  50.  
  51.      /* Minor errors */
  52.      EXIT_PASS = 200,            /* Differing or incorrect password(s) */
  53.      EXIT_CHANGE,                /* Bad attempt to change archive */
  54.      EXIT_NOLONG,                /* Long arg.format not supported */
  55.      EXIT_BADWILD,                /* Bad wildcard format */
  56.      EXIT_SECURITY,                /* General security/encryption error */
  57.      EXIT_NOCRYPT };            /* Cannot read encrypted archive */
  58.