# 2.11BSD#431 - /usr/include/sysexits.h

##### Macros

    EX_CANTCREAT      X
    EX_CONFIG         X
    EX_DATAERR        X
    EX_IOERR          X
    EX_NOHOST         X
    EX_NOINPUT        X
    EX_NOPERM         X
    EX_NOUSER         X
    EX_OK             X
    EX_OSERR          X
    EX_OSFILE         X
    EX_PROTOCOL       X
    EX_SOFTWARE       X
    EX_TEMPFAIL       X
    EX_UNAVAILABLE    X
    EX_USAGE          X
    EX__BASE          X

       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 this notice is preserved and that due credit is given
       7:  * to the University of California at Berkeley. The name of the University
       8:  * may not be used to endorse or promote products derived from this
       9:  * software without specific prior written permission. This software
      10:  * is provided ``as is'' without express or implied warranty.
      11:  *
      12:  *	@(#)sysexits.h	4.4.1 (2.11BSD) 1996/11/29
      13:  */
      14:
      15: /*
      16: **  SYSEXITS.H -- Exit status codes for system programs.
      17: **
      18: **	This include file attempts to categorize possible error
      19: **	exit statuses for system programs, notably delivermail
      20: **	and the Berkeley network.
      21: **
      22: **	Error numbers begin at EX__BASE to reduce the possibility of
      23: **	clashing with other exit statuses that random programs may
      24: **	already return.  The meaning of the codes is approximately
      25: **	as follows:
      26: **
      27: **	EX_USAGE -- The command was used incorrectly, e.g., with
      28: **		the wrong number of arguments, a bad flag, a bad
      29: **		syntax in a parameter, or whatever.
      30: **	EX_DATAERR -- The input data was incorrect in some way.
      31: **		This should only be used for user's data & not
      32: **		system files.
      33: **	EX_NOINPUT -- An input file (not a system file) did not
      34: **		exist or was not readable.  This could also include
      35: **		errors like "No message" to a mailer (if it cared
      36: **		to catch it).
      37: **	EX_NOUSER -- The user specified did not exist.  This might
      38: **		be used for mail addresses or remote logins.
      39: **	EX_NOHOST -- The host specified did not exist.  This is used
      40: **		in mail addresses or network requests.
      41: **	EX_UNAVAILABLE -- A service is unavailable.  This can occur
      42: **		if a support program or file does not exist.  This
      43: **		can also be used as a catchall message when something
      44: **		you wanted to do doesn't work, but you don't know
      45: **		why.
      46: **	EX_SOFTWARE -- An internal software error has been detected.
      47: **		This should be limited to non-operating system related
      48: **		errors as possible.
      49: **	EX_OSERR -- An operating system error has been detected.
      50: **		This is intended to be used for such things as "cannot
      51: **		fork", "cannot create pipe", or the like.  It includes
      52: **		things like getuid returning a user that does not
      53: **		exist in the passwd file.
      54: **	EX_OSFILE -- Some system file (e.g., /etc/passwd, /var/run/utmp,
      55: **		etc.) does not exist, cannot be opened, or has some
      56: **		sort of error (e.g., syntax error).
      57: **	EX_CANTCREAT -- A (user specified) output file cannot be
      58: **		created.
      59: **	EX_IOERR -- An error occurred while doing I/O on some file.
      60: **	EX_TEMPFAIL -- temporary failure, indicating something that
      61: **		is not really an error.  In sendmail, this means
      62: **		that a mailer (e.g.) could not create a connection,
      63: **		and the request should be reattempted later.
      64: **	EX_PROTOCOL -- the remote system returned something that
      65: **		was "not possible" during a protocol exchange.
      66: **	EX_NOPERM -- You did not have sufficient permission to
      67: **		perform the operation.  This is not intended for
      68: **		file system problems, which should use NOINPUT or
      69: **		CANTCREAT, but rather for higher level permissions.
      70: **		For example, kre uses this to restrict who students
      71: **		can send mail to.
      72: **
      73: **	Maintained by Eric Allman (eric@berkeley, ucbvax!eric) --
      74: **		please mail changes to me.
      75: **
      76: **			@(#)sysexits.h	4.4		3/24/88
      77: */
      78:
      79: # define EX_OK      0   /* successful termination */
      80:
      81: # define EX__BASE   64  /* base value for error messages */
      82:
      83: # define EX_USAGE   64  /* command line usage error */
      84: # define EX_DATAERR 65  /* data format error */
      85: # define EX_NOINPUT 66  /* cannot open input */
      86: # define EX_NOUSER  67  /* addressee unknown */
      87: # define EX_NOHOST  68  /* host name unknown */
      88: # define EX_UNAVAILABLE 69  /* service unavailable */
      89: # define EX_SOFTWARE    70  /* internal software error */
      90: # define EX_OSERR   71  /* system error (e.g., can't fork) */
      91: # define EX_OSFILE  72  /* critical OS file missing */
      92: # define EX_CANTCREAT   73  /* can't create (user) output file */
      93: # define EX_IOERR   74  /* input/output error */
      94: # define EX_TEMPFAIL    75  /* temp failure; user is invited to retry */
      95: # define EX_PROTOCOL    76  /* remote error in protocol */
      96: # define EX_NOPERM  77  /* permission denied */
      97: # define EX_CONFIG  78  /* configuration error */

#### Defined macros

EX_CANTCREAT defined in line 92; used 13 times

- in /usr/src/ucb/strcompact.c line 109
- in /usr/src/ucb/symcompact.c line 222
- in /usr/src/ucb/symorder.c line 151
- in /usr/src/usr.bin/uucp/uux.c line 260, 276, 288, 333, 339, 380
- in /usr/src/usr.sbin/sendmail.MX/src/recipient.c line 296
- in /usr/src/usr.sbin/sendmail/src/deliver.c line 1215, 1234
- in /usr/src/usr.sbin/sendmail/src/recipient.c line 303

EX_CONFIG defined in line 97; never used
EX_DATAERR defined in line 84; used 11 times

- in /usr/src/new/notes/src/nfmail.c line 428
- in /usr/src/ucb/strcompact.c line 77-82(2)
- in /usr/src/ucb/symcompact.c line 86-91(2), 111, 129
- in /usr/src/ucb/symorder.c line 75-80(2), 100, 118

EX_IOERR defined in line 93; used 6 times

- in /usr/src/usr.bin/uucp/uux.c line 199-203(2), 405, 426
- in /usr/src/usr.sbin/sendmail/src/deliver.c line 1145, 1153

EX_NOHOST defined in line 87; used 7 times

- in /usr/src/usr.bin/uucp/uux.c line 184
- in /usr/src/usr.sbin/sendmail.MX/aux/arpa.c line 261
- in /usr/src/usr.sbin/sendmail.MX/src/daemon.c line 327, 345
- in /usr/src/usr.sbin/sendmail/aux/arpa.c line 261
- in /usr/src/usr.sbin/sendmail/src/daemon.c line 327, 345

EX_NOINPUT defined in line 85; used 8 times

- in /usr/src/ucb/sccs.c line 983
- in /usr/src/ucb/strcompact.c line 72
- in /usr/src/ucb/symcompact.c line 79
- in /usr/src/ucb/symorder.c line 68, 128
- in /usr/src/usr.bin/uucp/uux.c line 293, 305
- in /usr/src/usr.sbin/sendmail/aux/mailstats.c line 45

EX_NOPERM defined in line 96; used 1 times

- in /usr/src/sbin/reboot/reboot.c line 114

EX_NOUSER defined in line 86; used 5 times

- in /usr/src/ucb/vacation.c line 124
- in /usr/src/usr.sbin/sendmail.MX/src/recipient.c line 309
- in /usr/src/usr.sbin/sendmail.MX/src/usersmtp.c line 256
- in /usr/src/usr.sbin/sendmail/src/recipient.c line 316
- in /usr/src/usr.sbin/sendmail/src/usersmtp.c line 251

EX_OK defined in line 79; used 64 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 264-267(2)
- in /usr/src/new/notes/src/nfmail.c line 162, 375
- in /usr/src/sbin/testnet/testnet.c line 19
- in /usr/src/ucb/sccs.c line 1055
- in /usr/src/ucb/strcompact.c line 88, 187
- in /usr/src/ucb/symcompact.c line 97, 287
- in /usr/src/ucb/symorder.c line 86, 297
- in /usr/src/ucb/vacation.c line 98, 151
- in /usr/src/usr.sbin/sa/sa.c line 441, 453
- in /usr/src/usr.sbin/sendmail.MX/aux/arpa.c line 328, 404
- in /usr/src/usr.sbin/sendmail.MX/src/daemon.c line 438
- in /usr/src/usr.sbin/sendmail.MX/src/err.c line 66
- in /usr/src/usr.sbin/sendmail.MX/src/main.c line 437, 488, 497, 684, 753, 776
- in /usr/src/usr.sbin/sendmail.MX/src/queue.c line 314, 631
- in /usr/src/usr.sbin/sendmail.MX/src/savemail.c line 122
- in /usr/src/usr.sbin/sendmail.MX/src/sendmail.h line 565
- in /usr/src/usr.sbin/sendmail.MX/src/usersmtp.c line 200, 254, 316, 360
- in /usr/src/usr.sbin/sendmail/aux/arpa.c line 328, 404
- in /usr/src/usr.sbin/sendmail/aux/uname.c line 18
- in /usr/src/usr.sbin/sendmail/src/daemon.c line 438
- in /usr/src/usr.sbin/sendmail/src/deliver.c line 367, 377, 415, 447, 619, 726, 736, 987, 1010, 1246, 1370
- in /usr/src/usr.sbin/sendmail/src/err.c line 57
- in /usr/src/usr.sbin/sendmail/src/main.c line 432, 492, 501, 688, 757, 780
- in /usr/src/usr.sbin/sendmail/src/queue.c line 303, 618
- in /usr/src/usr.sbin/sendmail/src/savemail.c line 116
- in /usr/src/usr.sbin/sendmail/src/sendmail.h line 563
- in /usr/src/usr.sbin/sendmail/src/usersmtp.c line 196, 249, 311, 355

EX_OSERR defined in line 90; used 29 times

- in /usr/src/bin/rmail.c line 120
- in /usr/src/new/nntp/xmit/nntpxmit.c line 826
- in /usr/src/sbin/reboot/reboot.c line 136, 154
- in /usr/src/sbin/testnet/testnet.c line 16
- in /usr/src/ucb/sccs.c line 559, 684, 819, 1158, 1216, 1287-1292(2), 1313, 1478, 1505
- in /usr/src/ucb/symcompact.c line 117, 152
- in /usr/src/ucb/symorder.c line 106
- in /usr/src/ucb/vacation.c line 459
- in /usr/src/usr.sbin/sendmail.MX/aux/arpa.c line 284
- in /usr/src/usr.sbin/sendmail.MX/src/err.c line 71
- in /usr/src/usr.sbin/sendmail.MX/src/queue.c line 990
- in /usr/src/usr.sbin/sendmail/aux/arpa.c line 284
- in /usr/src/usr.sbin/sendmail/aux/mailstats.c line 51
- in /usr/src/usr.sbin/sendmail/aux/rmail.c line 135
- in /usr/src/usr.sbin/sendmail/src/deliver.c line 839, 1199
- in /usr/src/usr.sbin/sendmail/src/err.c line 62
- in /usr/src/usr.sbin/sendmail/src/queue.c line 979

EX_OSFILE defined in line 91; used 7 times

- in /usr/src/new/kermit5.188/ckustr.c line 72, 400
- in /usr/src/usr.lib/libstubs/stubs.c line 249
- in /usr/src/usr.sbin/sendmail.MX/src/daemon.c line 363
- in /usr/src/usr.sbin/sendmail.MX/src/readcf.c line 81
- in /usr/src/usr.sbin/sendmail/src/daemon.c line 363
- in /usr/src/usr.sbin/sendmail/src/readcf.c line 75

EX_PROTOCOL defined in line 95; used 8 times

- in /usr/src/usr.sbin/sendmail.MX/src/usersmtp.c line 206, 259, 298, 319
- in /usr/src/usr.sbin/sendmail/src/usersmtp.c line 202, 254, 293, 314

EX_SOFTWARE defined in line 89; used 24 times

- in /usr/src/ucb/sccs.c line 592, 702, 1474
- in /usr/src/ucb/strcompact.c line 102, 189
- in /usr/src/usr.bin/uucp/uux.c line 18
- in /usr/src/usr.sbin/sendmail.MX/aux/arpa.c line 150
- in /usr/src/usr.sbin/sendmail.MX/src/err.c line 69
- in /usr/src/usr.sbin/sendmail.MX/src/main.c line 474, 961
- in /usr/src/usr.sbin/sendmail.MX/src/savemail.c line 93, 236, 337, 418
- in /usr/src/usr.sbin/sendmail/aux/arpa.c line 150
- in /usr/src/usr.sbin/sendmail/src/deliver.c line 178, 626
- in /usr/src/usr.sbin/sendmail/src/err.c line 60
- in /usr/src/usr.sbin/sendmail/src/main.c line 478, 965
- in /usr/src/usr.sbin/sendmail/src/savemail.c line 87, 230, 331, 412

EX_TEMPFAIL defined in line 94; used 28 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 264, 1039
- in /usr/src/usr.sbin/sendmail.MX/src/daemon.c line 338, 421, 427
- in /usr/src/usr.sbin/sendmail.MX/src/main.c line 752
- in /usr/src/usr.sbin/sendmail.MX/src/sendmail.h line 565
- in /usr/src/usr.sbin/sendmail.MX/src/usersmtp.c line 211, 252, 294, 314
- in /usr/src/usr.sbin/sendmail/src/daemon.c line 338, 421, 427
- in /usr/src/usr.sbin/sendmail/src/deliver.c line 449, 633-634(2), 875, 943, 987, 1005-1008(2)
- in /usr/src/usr.sbin/sendmail/src/main.c line 756
- in /usr/src/usr.sbin/sendmail/src/sendmail.h line 563
- in /usr/src/usr.sbin/sendmail/src/usersmtp.c line 207, 247, 289, 309

EX_UNAVAILABLE defined in line 88; used 20 times

- in /usr/src/bin/mail.c line 432
- in /usr/src/new/notes/src/nfmail.c line 258, 279, 500
- in /usr/src/ucb/sccs.c line 720
- in /usr/src/usr.sbin/sendmail.MX/src/daemon.c line 430
- in /usr/src/usr.sbin/sendmail.MX/src/usersmtp.c line 216, 258, 296, 318
- in /usr/src/usr.sbin/sendmail/src/daemon.c line 430
- in /usr/src/usr.sbin/sendmail/src/deliver.c line 233-238(2), 877, 940, 1256
- in /usr/src/usr.sbin/sendmail/src/usersmtp.c line 212, 253, 291, 313

EX_USAGE defined in line 83; used 28 times

- in /usr/src/bin/mail.c line 565
- in /usr/src/bin/rmail.c line 51
- in /usr/src/new/nntp/xmit/nntpxmit.c line 185, 233
- in /usr/src/new/notes/src/nfmail.c line 146
- in /usr/src/sbin/reboot/reboot.c line 75
- in /usr/src/ucb/sccs.c line 262, 273, 289, 429, 487
- in /usr/src/ucb/strcompact.c line 65
- in /usr/src/ucb/symcompact.c line 72
- in /usr/src/ucb/symorder.c line 61
- in /usr/src/ucb/vacation.c line 106, 114, 178, 186, 433
- in /usr/src/usr.bin/uucp/uux.c line 399
- in /usr/src/usr.sbin/sa/sa.c line 508
- in /usr/src/usr.sbin/sendmail.MX/src/main.c line 685
- in /usr/src/usr.sbin/sendmail.MX/src/parseaddr.c line 105
- in /usr/src/usr.sbin/sendmail.MX/src/readcf.c line 760
- in /usr/src/usr.sbin/sendmail/aux/rmail.c line 65
- in /usr/src/usr.sbin/sendmail/src/main.c line 689
- in /usr/src/usr.sbin/sendmail/src/parseaddr.c line 99
- in /usr/src/usr.sbin/sendmail/src/readcf.c line 755

EX__BASE defined in line 81; used 5 times

- in /usr/src/usr.sbin/sendmail.MX/src/sysexits.c line 64-66(2)
- in /usr/src/usr.sbin/sendmail/src/deliver.c line 934
- in /usr/src/usr.sbin/sendmail/src/sysexits.c line 60-63(2)

#### Usage of this include

sysexits.h used 29 times

- in /usr/src/bin/mail.c line 16
- in /usr/src/bin/rmail.c line 16
- in /usr/src/new/kermit5.188/ckustr.c line 16
- in /usr/src/new/nntp/xmit/nntpxmit.c line 78-80(2)
- in /usr/src/new/notes/src/nfmail.c line 4
- in /usr/src/sbin/reboot/reboot.c line 22
- in /usr/src/sbin/testnet/testnet.c line 4
- in /usr/src/ucb/sccs.c line 21
- in /usr/src/ucb/strcompact.c line 35
- in /usr/src/ucb/symcompact.c line 43
- in /usr/src/ucb/symorder.c line 29
- in /usr/src/ucb/vacation.c line 18
- in /usr/src/usr.bin/uucp/uucp.h line 56
- in /usr/src/usr.lib/libstubs/stubs.c line 3
- in /usr/src/usr.sbin/sa/sa.c line 24
- in /usr/src/usr.sbin/sendmail.MX/aux/arpa.c line 24
- in /usr/src/usr.sbin/sendmail.MX/src/sendmail.h line 556
- in /usr/src/usr.sbin/sendmail.MX/src/sysexits.c line 21
- in /usr/src/usr.sbin/sendmail.MX/src/usersmtp.c line 27
- in /usr/src/usr.sbin/sendmail.MX/src/util.c line 18
- in /usr/src/usr.sbin/sendmail/aux/arpa.c line 24
- in /usr/src/usr.sbin/sendmail/aux/rmail.c line 30
- in /usr/src/usr.sbin/sendmail/aux/uname.c line 2
- in /usr/src/usr.sbin/sendmail/src/sendmail.h line 554
- in /usr/src/usr.sbin/sendmail/src/sysexits.c line 15
- in /usr/src/usr.sbin/sendmail/src/usersmtp.c line 13
- in /usr/src/usr.sbin/sendmail/src/util.c line 18
- in /usr/src/usr.sbin/syslogd/syslogd.c line 48

Last modified: 1996-11-30 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 2494 |