1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* A POSIX-like <errno.h>.
5 Copyright (C) 2008-2014 Free Software Foundation, Inc.
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)
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.
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/>. */
20 #ifndef _@GUARD_PREFIX@_ERRNO_H
23 @PRAGMA_SYSTEM_HEADER@
27 /* The include_next requires a split double-inclusion guard. */
28 #@INCLUDE_NEXT@ @NEXT_ERRNO_H@
30 #ifndef _@GUARD_PREFIX@_ERRNO_H
31 #define _@GUARD_PREFIX@_ERRNO_H
34 /* On native Windows platforms, many macros are not defined. */
35 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
37 /* These are the same values as defined by MSVC 10, for interoperability. */
41 # define GNULIB_defined_ENOMSG 1
46 # define GNULIB_defined_EIDRM 1
51 # define GNULIB_defined_ENOLINK 1
56 # define GNULIB_defined_EPROTO 1
61 # define GNULIB_defined_EBADMSG 1
65 # define EOVERFLOW 132
66 # define GNULIB_defined_EOVERFLOW 1
71 # define GNULIB_defined_ENOTSUP 1
75 # define ENETRESET 117
76 # define GNULIB_defined_ENETRESET 1
80 # define ECONNABORTED 106
81 # define GNULIB_defined_ECONNABORTED 1
85 # define ECANCELED 105
86 # define GNULIB_defined_ECANCELED 1
90 # define EOWNERDEAD 133
91 # define GNULIB_defined_EOWNERDEAD 1
94 # ifndef ENOTRECOVERABLE
95 # define ENOTRECOVERABLE 127
96 # define GNULIB_defined_ENOTRECOVERABLE 1
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
117 # define ENOTCONN 126
118 # define ETIMEDOUT 138
119 # define ECONNREFUSED 107
121 # define EHOSTUNREACH 110
122 # define EWOULDBLOCK 140
123 # define GNULIB_defined_ESOCK 1
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
136 /* These are intentionally the same values as the WSA* error numbers, defined
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
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
159 # if @ENOLINK_HIDDEN@
160 # define ENOLINK @ENOLINK_VALUE@
161 # define GNULIB_defined_ENOLINK 1
163 # if @EOVERFLOW_HIDDEN@
164 # define EOVERFLOW @EOVERFLOW_VALUE@
165 # define GNULIB_defined_EOVERFLOW 1
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.
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. */
181 # define GNULIB_defined_ENOMSG 1
186 # define GNULIB_defined_EIDRM 1
190 # define ENOLINK 2002
191 # define GNULIB_defined_ENOLINK 1
196 # define GNULIB_defined_EPROTO 1
200 # define EMULTIHOP 2004
201 # define GNULIB_defined_EMULTIHOP 1
205 # define EBADMSG 2005
206 # define GNULIB_defined_EBADMSG 1
210 # define EOVERFLOW 2006
211 # define GNULIB_defined_EOVERFLOW 1
215 # define ENOTSUP 2007
216 # define GNULIB_defined_ENOTSUP 1
220 # define ENETRESET 2011
221 # define GNULIB_defined_ENETRESET 1
224 # ifndef ECONNABORTED
225 # define ECONNABORTED 2012
226 # define GNULIB_defined_ECONNABORTED 1
231 # define GNULIB_defined_ESTALE 1
236 # define GNULIB_defined_EDQUOT 1
240 # define ECANCELED 2008
241 # define GNULIB_defined_ECANCELED 1
244 /* On many platforms, the macros EOWNERDEAD and ENOTRECOVERABLE are not
249 /* Use the same values as defined for Solaris >= 8, for
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
259 # define EOWNERDEAD 43
260 # define ENOTRECOVERABLE 44
262 /* Use the same values as defined by MSVC 10, for
264 # define EOWNERDEAD 133
265 # define ENOTRECOVERABLE 127
268 # define EOWNERDEAD 2013
269 # define ENOTRECOVERABLE 2014
271 # define GNULIB_defined_EOWNERDEAD 1
272 # define GNULIB_defined_ENOTRECOVERABLE 1
277 # define GNULIB_defined_EILSEQ 1
280 #endif /* _@GUARD_PREFIX@_ERRNO_H */
281 #endif /* _@GUARD_PREFIX@_ERRNO_H */