BSD 4_3_Tahoe release
[unix-history] / usr / include / sysexits.h
index 73cd12f..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.
 **
 **             and the request should be reattempted later.
 **     EX_PROTOCOL -- the remote system returned something that
 **             was "not possible" during a protocol exchange.
 **             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.
 **
 **
 **     Maintained by Eric Allman (eric@berkeley, ucbvax!eric) --
 **             please mail changes to me.
 **
-**                     @(#)sysexits.h  3.1             8/29/82
+**                     @(#)sysexits.h  4.5             7/6/88
 */
 
 # define EX_OK         0       /* successful termination */
 */
 
 # define EX_OK         0       /* successful termination */
@@ -73,3 +98,5 @@
 # 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_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 */