3 #ifndef _SYS_EXITS_H_INCLUDED_
4 #define _SYS_EXITS_H_INCLUDED_
10 /* sendmail-compatible exit status handling
12 /* #include <sys_exits.h>
20 const int status
; /* exit status code */
21 const char *dsn
; /* DSN detail */
22 const char *text
; /* descriptive text */
25 extern const char *sys_exits_strerror(int);
26 extern const SYS_EXITS_DETAIL
*sys_exits_detail(int);
27 extern int sys_exits_softerror(int);
29 #define SYS_EXITS_CODE(n) ((n) >= EX__BASE && (n) <= EX__MAX)
31 #define EX__BASE 64 /* base value for error messages */
33 #define EX_USAGE 64 /* command line usage error */
34 #define EX_DATAERR 65 /* data format error */
35 #define EX_NOINPUT 66 /* cannot open input */
36 #define EX_NOUSER 67 /* addressee unknown */
37 #define EX_NOHOST 68 /* host name unknown */
38 #define EX_UNAVAILABLE 69 /* service unavailable */
39 #define EX_SOFTWARE 70 /* internal software error */
40 #define EX_OSERR 71 /* system error (e.g., can't fork) */
41 #define EX_OSFILE 72 /* critical OS file missing */
42 #define EX_CANTCREAT 73 /* can't create (user) output file */
43 #define EX_IOERR 74 /* input/output error */
44 #define EX_TEMPFAIL 75 /* temporary failure */
45 #define EX_PROTOCOL 76 /* remote error in protocol */
46 #define EX_NOPERM 77 /* permission denied */
47 #define EX_CONFIG 78 /* configuration error */
49 #define EX__MAX 78 /* maximum listed value */
54 /* The Secure Mailer license must be distributed with this software.
57 /* IBM T.J. Watson Research
59 /* Yorktown Heights, NY 10598, USA