Annotation of 43BSDReno/include/sysexits.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1987 Regents of the University of California.
                      3:  * All rights reserved.
                      4:  *
                      5:  * Redistribution and use in source and binary forms are permitted
                      6:  * provided that: (1) source distributions retain this entire copyright
                      7:  * notice and comment, and (2) distributions including binaries display
                      8:  * the following acknowledgement:  ``This product includes software
                      9:  * developed by the University of California, Berkeley and its contributors''
                     10:  * in the documentation or other materials provided with the distribution
                     11:  * and in all advertising materials mentioning features or use of this
                     12:  * software. Neither the name of the University nor the names of its
                     13:  * contributors may be used to endorse or promote products derived
                     14:  * from this software without specific prior written permission.
                     15:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
                     16:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
                     17:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     18:  *
                     19:  *     @(#)sysexits.h  4.6 (Berkeley) 6/1/90
                     20:  */
                     21: 
                     22: /*
                     23: **  SYSEXITS.H -- Exit status codes for system programs.
                     24: **
                     25: **     This include file attempts to categorize possible error
                     26: **     exit statuses for system programs, notably delivermail
                     27: **     and the Berkeley network.
                     28: **
                     29: **     Error numbers begin at EX__BASE to reduce the possibility of
                     30: **     clashing with other exit statuses that random programs may
                     31: **     already return.  The meaning of the codes is approximately
                     32: **     as follows:
                     33: **
                     34: **     EX_USAGE -- The command was used incorrectly, e.g., with
                     35: **             the wrong number of arguments, a bad flag, a bad
                     36: **             syntax in a parameter, or whatever.
                     37: **     EX_DATAERR -- The input data was incorrect in some way.
                     38: **             This should only be used for user's data & not
                     39: **             system files.
                     40: **     EX_NOINPUT -- An input file (not a system file) did not
                     41: **             exist or was not readable.  This could also include
                     42: **             errors like "No message" to a mailer (if it cared
                     43: **             to catch it).
                     44: **     EX_NOUSER -- The user specified did not exist.  This might
                     45: **             be used for mail addresses or remote logins.
                     46: **     EX_NOHOST -- The host specified did not exist.  This is used
                     47: **             in mail addresses or network requests.
                     48: **     EX_UNAVAILABLE -- A service is unavailable.  This can occur
                     49: **             if a support program or file does not exist.  This
                     50: **             can also be used as a catchall message when something
                     51: **             you wanted to do doesn't work, but you don't know
                     52: **             why.
                     53: **     EX_SOFTWARE -- An internal software error has been detected.
                     54: **             This should be limited to non-operating system related
                     55: **             errors as possible.
                     56: **     EX_OSERR -- An operating system error has been detected.
                     57: **             This is intended to be used for such things as "cannot
                     58: **             fork", "cannot create pipe", or the like.  It includes
                     59: **             things like getuid returning a user that does not
                     60: **             exist in the passwd file.
                     61: **     EX_OSFILE -- Some system file (e.g., /etc/passwd, /etc/utmp,
                     62: **             etc.) does not exist, cannot be opened, or has some
                     63: **             sort of error (e.g., syntax error).
                     64: **     EX_CANTCREAT -- A (user specified) output file cannot be
                     65: **             created.
                     66: **     EX_IOERR -- An error occurred while doing I/O on some file.
                     67: **     EX_TEMPFAIL -- temporary failure, indicating something that
                     68: **             is not really an error.  In sendmail, this means
                     69: **             that a mailer (e.g.) could not create a connection,
                     70: **             and the request should be reattempted later.
                     71: **     EX_PROTOCOL -- the remote system returned something that
                     72: **             was "not possible" during a protocol exchange.
                     73: **     EX_NOPERM -- You did not have sufficient permission to
                     74: **             perform the operation.  This is not intended for
                     75: **             file system problems, which should use NOINPUT or
                     76: **             CANTCREAT, but rather for higher level permissions.
                     77: **             For example, kre uses this to restrict who students
                     78: **             can send mail to.
                     79: **
                     80: **     Maintained by Eric Allman (eric@berkeley, ucbvax!eric) --
                     81: **             please mail changes to me.
                     82: **
                     83: **                     @(#)sysexits.h  4.6             6/1/90
                     84: */
                     85: 
                     86: # define EX_OK         0       /* successful termination */
                     87: 
                     88: # define EX__BASE      64      /* base value for error messages */
                     89: 
                     90: # define EX_USAGE      64      /* command line usage error */
                     91: # define EX_DATAERR    65      /* data format error */
                     92: # define EX_NOINPUT    66      /* cannot open input */
                     93: # define EX_NOUSER     67      /* addressee unknown */
                     94: # define EX_NOHOST     68      /* host name unknown */
                     95: # define EX_UNAVAILABLE        69      /* service unavailable */
                     96: # define EX_SOFTWARE   70      /* internal software error */
                     97: # define EX_OSERR      71      /* system error (e.g., can't fork) */
                     98: # define EX_OSFILE     72      /* critical OS file missing */
                     99: # define EX_CANTCREAT  73      /* can't create (user) output file */
                    100: # define EX_IOERR      74      /* input/output error */
                    101: # define EX_TEMPFAIL   75      /* temp failure; user is invited to retry */
                    102: # define EX_PROTOCOL   76      /* remote error in protocol */
                    103: # define EX_NOPERM     77      /* permission denied */
                    104: # define EX_CONFIG     78      /* configuration error */

unix.superglobalmegacorp.com

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