]> git.cworth.org Git - tar/blob - lib/sysexits.in.h
Imported Upstream version 1.20
[tar] / lib / sysexits.in.h
1 /* exit() exit codes for some BSD system programs.
2    Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
16
17 /* Written by Simon Josefsson based on sysexits(3) man page */
18
19 #ifndef _GL_SYSEXITS_H
20
21 #if @HAVE_SYSEXITS_H@
22
23 /* IRIX 6.5 has an <unistd.h> that defines a macro EX_OK with a nonzero
24    value.  Override it.  See
25    <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00361.html>  */
26 # ifdef __sgi
27 #  include <unistd.h>
28 #  undef EX_OK
29 # endif
30
31 /* The include_next requires a split double-inclusion guard.  */
32 # @INCLUDE_NEXT@ @NEXT_SYSEXITS_H@
33
34 /* HP-UX 11 <sysexits.h> ends at EX_NOPERM.  */
35 # ifndef EX_CONFIG
36 #  define EX_CONFIG 78
37 # endif
38
39 #endif
40
41 #ifndef _GL_SYSEXITS_H
42 #define _GL_SYSEXITS_H
43
44 #if !@HAVE_SYSEXITS_H@
45
46 # define EX_OK 0 /* same value as EXIT_SUCCESS */
47
48 # define EX_USAGE 64
49 # define EX_DATAERR 65
50 # define EX_NOINPUT 66
51 # define EX_NOUSER 67
52 # define EX_NOHOST 68
53 # define EX_UNAVAILABLE 69
54 # define EX_SOFTWARE 70
55 # define EX_OSERR 71
56 # define EX_OSFILE 72
57 # define EX_CANTCREAT 73
58 # define EX_IOERR 74
59 # define EX_TEMPFAIL 75
60 # define EX_PROTOCOL 76
61 # define EX_NOPERM 77
62 # define EX_CONFIG 78
63
64 #endif
65
66 #endif /* _GL_SYSEXITS_H */
67 #endif /* _GL_SYSEXITS_H */