Annotation of researchv10no/ipc/bin/OLDdkcc/sysexits.h, revision 1.1.1.1

1.1       root        1: /*
                      2: **  SYSEXITS.H -- Exit status codes for system programs.
                      3: **             @(#)sysexits.h  2.1 DKHOST 84/08/10
                      4: **
                      5: **     This include file attempts to categorize possible error
                      6: **     exit statuses for system programs, notably delivermail
                      7: **     and the Berkeley network.
                      8: **
                      9: **     Error numbers begin at EX__BASE to reduce the possibility of
                     10: **     clashing with other exit statuses that random programs may
                     11: **     already return.  The meaning of the codes is approximately
                     12: **     as follows:
                     13: **
                     14: **     EX_USAGE -- The command was used incorrectly, e.g., with
                     15: **             the wrong number of arguments, a bad flag, a bad
                     16: **             syntax in a parameter, or whatever.
                     17: **     EX_DATAERR -- The input data was incorrect in some way.
                     18: **             This should only be used for user's data & not
                     19: **             system files.
                     20: **     EX_NOINPUT -- An input file (not a system file) did not
                     21: **             exist or was not readable.  This could also include
                     22: **             errors like "No message" to a mailer (if it cared
                     23: **             to catch it).
                     24: **     EX_NOUSER -- The user specified did not exist.  This might
                     25: **             be used for mail addresses or remote logins.
                     26: **     EX_NOHOST -- The host specified did not exist.  This is used
                     27: **             in mail addresses or network requests.
                     28: **     EX_UNAVAILABLE -- A service is unavailable.  This can occur
                     29: **             if a support program or file does not exist.  This
                     30: **             can also be used as a catchall message when something
                     31: **             you wanted to do doesn't work, but you don't know
                     32: **             why.
                     33: **     EX_SOFTWARE -- An internal software error has been detected.
                     34: **             This should be limited to non-operating system related
                     35: **             errors as possible.
                     36: **     EX_OSERR -- An operating system error has been detected.
                     37: **             This is intended to be used for such things as "cannot
                     38: **             fork", "cannot create pipe", or the like.  It includes
                     39: **             things like getuid returning a user that does not
                     40: **             exist in the passwd file.
                     41: **     EX_OSFILE -- Some system file (e.g., /etc/passwd, /etc/utmp,
                     42: **             etc.) does not exist, cannot be opened, or has some
                     43: **             sort of error (e.g., syntax error).
                     44: **     EX_CANTCREAT -- A (user specified) output file cannot be
                     45: **             created.
                     46: **     EX_IOERR -- An error occurred while doing I/O on some file.
                     47: **     EX_TEMPFAIL -- temporary failure, indicating something that
                     48: **             is not really an error.  In sendmail, this means
                     49: **             that a mailer (e.g.) could not create a connection,
                     50: **             and the request should be reattempted later.
                     51: **     EX_PROTOCOL -- the remote system returned something that
                     52: **             was "not possible" during a protocol exchange.
                     53: **
                     54: **     Maintained by Eric Allman (eric@berkeley, ucbvax!eric) --
                     55: **             please mail changes to me.
                     56: **
                     57: **                     Berkeley sid: sysexits.h        3.1             8/29/82
                     58: */
                     59: 
                     60: # define EX_OK         0       /* successful termination */
                     61: 
                     62: # define EX__BASE      64      /* base value for error messages */
                     63: 
                     64: # define EX_USAGE      64      /* command line usage error */
                     65: # define EX_DATAERR    65      /* data format error */
                     66: # define EX_NOINPUT    66      /* cannot open input */
                     67: # define EX_NOUSER     67      /* addressee unknown */
                     68: # define EX_NOHOST     68      /* host name unknown */
                     69: # define EX_UNAVAILABLE        69      /* service unavailable */
                     70: # define EX_SOFTWARE   70      /* internal software error */
                     71: # define EX_OSERR      71      /* system error (e.g., can't fork) */
                     72: # define EX_OSFILE     72      /* critical OS file missing */
                     73: # define EX_CANTCREAT  73      /* can't create (user) output file */
                     74: # define EX_IOERR      74      /* input/output error */
                     75: # define EX_TEMPFAIL   75      /* temp failure; user is invited to retry */
                     76: # define EX_PROTOCOL   76      /* remote error in protocol */

unix.superglobalmegacorp.com

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