+++ /dev/null
-/** @file contains exit code definitions for exiting systems applications.\r
-\r
- These exit codes are an extension beyond the two values specified by\r
- ISO/IEC 9899:199409 and defined in <stdlib.h>.\r
-\r
- * Copyright (c) 1987, 1993\r
- * The Regents of the University of California. All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by the University of\r
- * California, Berkeley and its contributors.\r
- * 4. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * @(#)sysexits.h 8.1 (Berkeley) 6/2/93\r
- */\r
-\r
-#ifndef _SYSEXITS_H_\r
-#define _SYSEXITS_H_\r
-\r
-/*\r
- * SYSEXITS.H -- Exit status codes for system programs.\r
- *\r
- * This include file attempts to categorize possible error\r
- * exit statuses for system programs, notably delivermail\r
- * and the Berkeley network.\r
- *\r
- * Error numbers begin at EX__BASE to reduce the possibility of\r
- * clashing with other exit statuses that random programs may\r
- * already return. The meaning of the codes is approximately\r
- * as follows:\r
- *\r
- * EX_USAGE -- The command was used incorrectly, e.g., with\r
- * the wrong number of arguments, a bad flag, a bad\r
- * syntax in a parameter, or whatever.\r
- * EX_DATAERR -- The input data was incorrect in some way.\r
- * This should only be used for user's data & not\r
- * system files.\r
- * EX_NOINPUT -- An input file (not a system file) did not\r
- * exist or was not readable. This could also include\r
- * errors like "No message" to a mailer (if it cared\r
- * to catch it).\r
- * EX_NOUSER -- The user specified did not exist. This might\r
- * be used for mail addresses or remote logins.\r
- * EX_NOHOST -- The host specified did not exist. This is used\r
- * in mail addresses or network requests.\r
- * EX_UNAVAILABLE -- A service is unavailable. This can occur\r
- * if a support program or file does not exist. This\r
- * can also be used as a catchall message when something\r
- * you wanted to do doesn't work, but you don't know\r
- * why.\r
- * EX_SOFTWARE -- An internal software error has been detected.\r
- * This should be limited to non-operating system related\r
- * errors as possible.\r
- * EX_OSERR -- An operating system error has been detected.\r
- * This is intended to be used for such things as "cannot\r
- * fork", "cannot create pipe", or the like. It includes\r
- * things like getuid returning a user that does not\r
- * exist in the passwd file.\r
- * EX_OSFILE -- Some system file (e.g., /etc/passwd, /etc/utmp,\r
- * etc.) does not exist, cannot be opened, or has some\r
- * sort of error (e.g., syntax error).\r
- * EX_CANTCREAT -- A (user specified) output file cannot be\r
- * created.\r
- * EX_IOERR -- An error occurred while doing I/O on some file.\r
- * EX_TEMPFAIL -- temporary failure, indicating something that\r
- * is not really an error. In sendmail, this means\r
- * that a mailer (e.g.) could not create a connection,\r
- * and the request should be reattempted later.\r
- * EX_PROTOCOL -- the remote system returned something that\r
- * was "not possible" during a protocol exchange.\r
- * EX_NOPERM -- You did not have sufficient permission to\r
- * perform the operation. This is not intended for\r
- * file system problems, which should use NOINPUT or\r
- * CANTCREAT, but rather for higher level permissions.\r
- */\r
-\r
-#define EX_OK 0 /* successful termination */\r
-\r
-#define EX__BASE 64 /* base value for error messages */\r
-\r
-#define EX_USAGE 64 /* command line usage error */\r
-#define EX_DATAERR 65 /* data format error */\r
-#define EX_NOINPUT 66 /* cannot open input */\r
-#define EX_NOUSER 67 /* addressee unknown */\r
-#define EX_NOHOST 68 /* host name unknown */\r
-#define EX_UNAVAILABLE 69 /* service unavailable */\r
-#define EX_SOFTWARE 70 /* internal software error */\r
-#define EX_OSERR 71 /* system error (e.g., can't fork) */\r
-#define EX_OSFILE 72 /* critical OS file missing */\r
-#define EX_CANTCREAT 73 /* can't create (user) output file */\r
-#define EX_IOERR 74 /* input/output error */\r
-#define EX_TEMPFAIL 75 /* temp failure; user is invited to retry */\r
-#define EX_PROTOCOL 76 /* remote error in protocol */\r
-#define EX_NOPERM 77 /* permission denied */\r
-#define EX_CONFIG 78 /* configuration error */\r
-\r
-#define EX__MAX 78 /* maximum listed value */\r
-\r
-#endif /* !_SYSEXITS_H_ */\r