BSD 4_3_Tahoe release
[unix-history] / usr / include / sysexits.h
index 71e736b..9be67fa 100644 (file)
@@ -1,3 +1,22 @@
+/*
+ * Copyright (c) 1987 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ *     @(#)sysexits.h  4.5 (Berkeley) 7/6/88
+ */
+
 /*
 **  SYSEXITS.H -- Exit status codes for system programs.
 **
 /*
 **  SYSEXITS.H -- Exit status codes for system programs.
 **
 **     EX_CANTCREAT -- A (user specified) output file cannot be
 **             created.
 **     EX_IOERR -- An error occurred while doing I/O on some file.
 **     EX_CANTCREAT -- A (user specified) output file cannot be
 **             created.
 **     EX_IOERR -- An error occurred while doing I/O on some file.
+**     EX_TEMPFAIL -- temporary failure, indicating something that
+**             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 Eric Allman (eric@berkeley, ucbvax!eric) --
+**             please mail changes to me.
+**
+**                     @(#)sysexits.h  4.5             7/6/88
 */
 
 # define EX_OK         0       /* successful termination */
 */
 
 # define EX_OK         0       /* successful termination */
@@ -60,3 +96,7 @@
 # define EX_OSFILE     72      /* critical OS file missing */
 # define EX_CANTCREAT  73      /* can't create (user) output file */
 # define EX_IOERR      74      /* input/output error */
 # define EX_OSFILE     72      /* critical OS file missing */
 # 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 */