create {hp300,i386,tahoe,vax}/include/ansi.h
[unix-history] / usr / src / include / sysexits.h
index 6b22caf..d6fd90b 100644 (file)
@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 1987 Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)sysexits.h  4.7 (Berkeley) %G%
+ */
+
 /*
 **  SYSEXITS.H -- Exit status codes for system programs.
 **
 /*
 **  SYSEXITS.H -- Exit status codes for system programs.
 **
 **             is not really an error.  In sendmail, this means
 **             that a mailer (e.g.) could not create a connection,
 **             and the request should be reattempted later.
 **             is not really an error.  In sendmail, this means
 **             that a mailer (e.g.) could not create a connection,
 **             and the request should be reattempted later.
+**     EX_PROTOCOL -- the remote system returned something that
+**             was "not possible" during a protocol exchange.
+**     EX_NOPERM -- You did not have sufficient permission to
+**             perform the operation.  This is not intended for
+**             file system problems, which should use NOINPUT or
+**             CANTCREAT, but rather for higher level permissions.
+**             For example, kre uses this to restrict who students
+**             can send mail to.
 **
 **
-**     Maintained by IngVAX:eric (eric@berkeley, ucbvax!eric) --
+**     Maintained by Eric Allman (eric@berkeley, ucbvax!eric) --
 **             please mail changes to me.
 **
 **             please mail changes to me.
 **
-**                     @(#)sysexits.h  1.3     %G%
+**                     @(#)sysexits.h  4.7             %G%
 */
 
 # define EX_OK         0       /* successful termination */
 */
 
 # define EX_OK         0       /* successful termination */
@@ -70,3 +87,8 @@
 # define EX_CANTCREAT  73      /* can't create (user) output file */
 # define EX_IOERR      74      /* input/output error */
 # define EX_TEMPFAIL   75      /* temp failure; user is invited to retry */
 # define EX_CANTCREAT  73      /* can't create (user) output file */
 # define EX_IOERR      74      /* input/output error */
 # define EX_TEMPFAIL   75      /* temp failure; user is invited to retry */
+# define EX_PROTOCOL   76      /* remote error in protocol */
+# define EX_NOPERM     77      /* permission denied */
+# define EX_CONFIG     78      /* configuration error */
+
+# define EX__MAX       78      /* maximum listed value */