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