cbc47335e1993092e6d813a3113fcdc8b0860301
[debian/tar] / gnu / errno.in.h
1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* A POSIX-like <errno.h>.
4
5    Copyright (C) 2008-2013 Free Software Foundation, Inc.
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 3, or (at your option)
10    any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, see <http://www.gnu.org/licenses/>.  */
19
20 #ifndef _@GUARD_PREFIX@_ERRNO_H
21
22 #if __GNUC__ >= 3
23 @PRAGMA_SYSTEM_HEADER@
24 #endif
25 @PRAGMA_COLUMNS@
26
27 /* The include_next requires a split double-inclusion guard.  */
28 #@INCLUDE_NEXT@ @NEXT_ERRNO_H@
29
30 #ifndef _@GUARD_PREFIX@_ERRNO_H
31 #define _@GUARD_PREFIX@_ERRNO_H
32
33
34 /* On native Windows platforms, many macros are not defined.  */
35 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
36
37 /* These are the same values as defined by MSVC 10, for interoperability.  */
38
39 #  ifndef ENOMSG
40 #   define ENOMSG    122
41 #   define GNULIB_defined_ENOMSG 1
42 #  endif
43
44 #  ifndef EIDRM
45 #   define EIDRM     111
46 #   define GNULIB_defined_EIDRM 1
47 #  endif
48
49 #  ifndef ENOLINK
50 #   define ENOLINK   121
51 #   define GNULIB_defined_ENOLINK 1
52 #  endif
53
54 #  ifndef EPROTO
55 #   define EPROTO    134
56 #   define GNULIB_defined_EPROTO 1
57 #  endif
58
59 #  ifndef EBADMSG
60 #   define EBADMSG   104
61 #   define GNULIB_defined_EBADMSG 1
62 #  endif
63
64 #  ifndef EOVERFLOW
65 #   define EOVERFLOW 132
66 #   define GNULIB_defined_EOVERFLOW 1
67 #  endif
68
69 #  ifndef ENOTSUP
70 #   define ENOTSUP   129
71 #   define GNULIB_defined_ENOTSUP 1
72 #  endif
73
74 #  ifndef ENETRESET
75 #   define ENETRESET 117
76 #   define GNULIB_defined_ENETRESET 1
77 #  endif
78
79 #  ifndef ECONNABORTED
80 #   define ECONNABORTED 106
81 #   define GNULIB_defined_ECONNABORTED 1
82 #  endif
83
84 #  ifndef ECANCELED
85 #   define ECANCELED 105
86 #   define GNULIB_defined_ECANCELED 1
87 #  endif
88
89 #  ifndef EOWNERDEAD
90 #   define EOWNERDEAD 133
91 #   define GNULIB_defined_EOWNERDEAD 1
92 #  endif
93
94 #  ifndef ENOTRECOVERABLE
95 #   define ENOTRECOVERABLE 127
96 #   define GNULIB_defined_ENOTRECOVERABLE 1
97 #  endif
98
99 #  ifndef EINPROGRESS
100 #   define EINPROGRESS     112
101 #   define EALREADY        103
102 #   define ENOTSOCK        128
103 #   define EDESTADDRREQ    109
104 #   define EMSGSIZE        115
105 #   define EPROTOTYPE      136
106 #   define ENOPROTOOPT     123
107 #   define EPROTONOSUPPORT 135
108 #   define EOPNOTSUPP      130
109 #   define EAFNOSUPPORT    102
110 #   define EADDRINUSE      100
111 #   define EADDRNOTAVAIL   101
112 #   define ENETDOWN        116
113 #   define ENETUNREACH     118
114 #   define ECONNRESET      108
115 #   define ENOBUFS         119
116 #   define EISCONN         113
117 #   define ENOTCONN        126
118 #   define ETIMEDOUT       138
119 #   define ECONNREFUSED    107
120 #   define ELOOP           114
121 #   define EHOSTUNREACH    110
122 #   define EWOULDBLOCK     140
123 #   define GNULIB_defined_ESOCK 1
124 #  endif
125
126 #  ifndef ETXTBSY
127 #   define ETXTBSY         139
128 #   define ENODATA         120  /* not required by POSIX */
129 #   define ENOSR           124  /* not required by POSIX */
130 #   define ENOSTR          125  /* not required by POSIX */
131 #   define ETIME           137  /* not required by POSIX */
132 #   define EOTHER          131  /* not required by POSIX */
133 #   define GNULIB_defined_ESTREAMS 1
134 #  endif
135
136 /* These are intentionally the same values as the WSA* error numbers, defined
137    in <winsock2.h>.  */
138 #  define ESOCKTNOSUPPORT 10044  /* not required by POSIX */
139 #  define EPFNOSUPPORT    10046  /* not required by POSIX */
140 #  define ESHUTDOWN       10058  /* not required by POSIX */
141 #  define ETOOMANYREFS    10059  /* not required by POSIX */
142 #  define EHOSTDOWN       10064  /* not required by POSIX */
143 #  define EPROCLIM        10067  /* not required by POSIX */
144 #  define EUSERS          10068  /* not required by POSIX */
145 #  define EDQUOT          10069
146 #  define ESTALE          10070
147 #  define EREMOTE         10071  /* not required by POSIX */
148 #  define GNULIB_defined_EWINSOCK 1
149
150 # endif
151
152
153 /* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros
154    EMULTIHOP, ENOLINK, EOVERFLOW are not defined.  */
155 # if @EMULTIHOP_HIDDEN@
156 #  define EMULTIHOP @EMULTIHOP_VALUE@
157 #  define GNULIB_defined_EMULTIHOP 1
158 # endif
159 # if @ENOLINK_HIDDEN@
160 #  define ENOLINK   @ENOLINK_VALUE@
161 #  define GNULIB_defined_ENOLINK 1
162 # endif
163 # if @EOVERFLOW_HIDDEN@
164 #  define EOVERFLOW @EOVERFLOW_VALUE@
165 #  define GNULIB_defined_EOVERFLOW 1
166 # endif
167
168
169 /* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK,
170    EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined.
171    Likewise, on NonStop Kernel, EDQUOT is not defined.
172    Define them here.  Values >= 2000 seem safe to use: Solaris ESTALE = 151,
173    HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133.
174
175    Note: When one of these systems defines some of these macros some day,
176    binaries will have to be recompiled so that they recognizes the new
177    errno values from the system.  */
178
179 # ifndef ENOMSG
180 #  define ENOMSG    2000
181 #  define GNULIB_defined_ENOMSG 1
182 # endif
183
184 # ifndef EIDRM
185 #  define EIDRM     2001
186 #  define GNULIB_defined_EIDRM 1
187 # endif
188
189 # ifndef ENOLINK
190 #  define ENOLINK   2002
191 #  define GNULIB_defined_ENOLINK 1
192 # endif
193
194 # ifndef EPROTO
195 #  define EPROTO    2003
196 #  define GNULIB_defined_EPROTO 1
197 # endif
198
199 # ifndef EMULTIHOP
200 #  define EMULTIHOP 2004
201 #  define GNULIB_defined_EMULTIHOP 1
202 # endif
203
204 # ifndef EBADMSG
205 #  define EBADMSG   2005
206 #  define GNULIB_defined_EBADMSG 1
207 # endif
208
209 # ifndef EOVERFLOW
210 #  define EOVERFLOW 2006
211 #  define GNULIB_defined_EOVERFLOW 1
212 # endif
213
214 # ifndef ENOTSUP
215 #  define ENOTSUP   2007
216 #  define GNULIB_defined_ENOTSUP 1
217 # endif
218
219 # ifndef ENETRESET
220 #  define ENETRESET 2011
221 #  define GNULIB_defined_ENETRESET 1
222 # endif
223
224 # ifndef ECONNABORTED
225 #  define ECONNABORTED 2012
226 #  define GNULIB_defined_ECONNABORTED 1
227 # endif
228
229 # ifndef ESTALE
230 #  define ESTALE    2009
231 #  define GNULIB_defined_ESTALE 1
232 # endif
233
234 # ifndef EDQUOT
235 #  define EDQUOT 2010
236 #  define GNULIB_defined_EDQUOT 1
237 # endif
238
239 # ifndef ECANCELED
240 #  define ECANCELED 2008
241 #  define GNULIB_defined_ECANCELED 1
242 # endif
243
244 /* On many platforms, the macros EOWNERDEAD and ENOTRECOVERABLE are not
245    defined.  */
246
247 # ifndef EOWNERDEAD
248 #  if defined __sun
249     /* Use the same values as defined for Solaris >= 8, for
250        interoperability.  */
251 #   define EOWNERDEAD      58
252 #   define ENOTRECOVERABLE 59
253 #  elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
254     /* We have a conflict here: pthreads-win32 defines these values
255        differently than MSVC 10.  It's hairy to decide which one to use.  */
256 #   if defined __MINGW32__ && !defined USE_WINDOWS_THREADS
257      /* Use the same values as defined by pthreads-win32, for
258         interoperability.  */
259 #    define EOWNERDEAD      43
260 #    define ENOTRECOVERABLE 44
261 #   else
262      /* Use the same values as defined by MSVC 10, for
263         interoperability.  */
264 #    define EOWNERDEAD      133
265 #    define ENOTRECOVERABLE 127
266 #   endif
267 #  else
268 #   define EOWNERDEAD      2013
269 #   define ENOTRECOVERABLE 2014
270 #  endif
271 #  define GNULIB_defined_EOWNERDEAD 1
272 #  define GNULIB_defined_ENOTRECOVERABLE 1
273 # endif
274
275 # ifndef EILSEQ
276 #  define EILSEQ 2015
277 #  define GNULIB_defined_EILSEQ 1
278 # endif
279
280 #endif /* _@GUARD_PREFIX@_ERRNO_H */
281 #endif /* _@GUARD_PREFIX@_ERRNO_H */