home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / uucp / auucp+-1.02 / fuucp_plus_src.lzh / sendmail / exitcodes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-21  |  1.5 KB  |  50 lines

  1. /* @(#)exitcodes.h    3.3 3/7/88 09:57:34 */
  2.  
  3. /*
  4.  *    Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll
  5.  * 
  6.  * See the file COPYING, distributed with smail, for restriction
  7.  * and warranty information.
  8.  *
  9.  * namei master id: @(#)exitcodes.h    3.3 3/7/88 09:57:34
  10.  */
  11.  
  12. /*
  13.  * exitcodes:
  14.  *
  15.  *     "standard" exit code values for sites that do not have
  16.  *     a <sysexits.h> include file
  17.  */
  18.  
  19. #ifndef HAVE_SYSEXITS
  20.  
  21. /*
  22.  * use the default values for exit codes unless somebody want's to
  23.  * override
  24.  */
  25. # ifndef EX_BASE
  26. #  define EX_BASE 64
  27. # endif    /* EX_BASE */
  28.  
  29. # define EX_OK        0        /* successful termination */
  30. # define EX_USAGE    (EX_BASE+0)    /* command line usage error */
  31. # define EX_DATAERR    (EX_BASE+1)    /* data format error */
  32. # define EX_NOINPUT    (EX_BASE+2)    /* cannot open input */
  33. # define EX_NOUSER    (EX_BASE+3)    /* addressee unknown */
  34. # define EX_NOHOST    (EX_BASE+4)    /* host name unknown */
  35. # define EX_UNAVAILABLE    (EX_BASE+5)    /* service unavailable */
  36. # define EX_SOFTWARE    (EX_BASE+6)    /* internal software error */
  37. # define EX_OSERR    (EX_BASE+7)    /* system error */
  38. # define EX_OSFILE    (EX_BASE+8)    /* critical OS file missing */
  39. # define EX_CANTCREAT    (EX_BASE+9)    /* can't create (user) output file */
  40. # define EX_IOERR    (EX_BASE+10)    /* error in file i/o */
  41. # define EX_TEMPFAIL    (EX_BASE+11)    /* temp failure; user can retry */
  42. # define EX_PROTOCOL    (EX_BASE+12)    /* remote error in protocol */
  43. # define EX_NOPERM    (EX_BASE+13)    /* permission denied */
  44. #else    /* HAVE_SYSEXITS */
  45.  
  46. # include <sysexits.h>
  47.  
  48. #endif    /* HAVE_SYSEXITS */
  49.  
  50.