1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* A POSIX-like <errno.h>.
5 Copyright (C) 2008-2010 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, write to the Free Software Foundation,
19 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
24 @PRAGMA_SYSTEM_HEADER@
28 /* The include_next requires a split double-inclusion guard. */
29 #@INCLUDE_NEXT@ @NEXT_ERRNO_H@
35 /* On native Windows platforms, many macros are not defined. */
36 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
38 /* POSIX says that EAGAIN and EWOULDBLOCK may have the same value. */
39 # define EWOULDBLOCK EAGAIN
41 /* Values >= 100 seem safe to use. */
43 # define GNULIB_defined_ETXTBSY 1
45 /* These are intentionally the same values as the WSA* error numbers, defined
47 # define EINPROGRESS 10036
48 # define EALREADY 10037
49 # define ENOTSOCK 10038
50 # define EDESTADDRREQ 10039
51 # define EMSGSIZE 10040
52 # define EPROTOTYPE 10041
53 # define ENOPROTOOPT 10042
54 # define EPROTONOSUPPORT 10043
55 # define ESOCKTNOSUPPORT 10044 /* not required by POSIX */
56 # define EOPNOTSUPP 10045
57 # define EPFNOSUPPORT 10046 /* not required by POSIX */
58 # define EAFNOSUPPORT 10047
59 # define EADDRINUSE 10048
60 # define EADDRNOTAVAIL 10049
61 # define ENETDOWN 10050
62 # define ENETUNREACH 10051
63 # define ENETRESET 10052
64 # define ECONNABORTED 10053
65 # define ECONNRESET 10054
66 # define ENOBUFS 10055
67 # define EISCONN 10056
68 # define ENOTCONN 10057
69 # define ESHUTDOWN 10058 /* not required by POSIX */
70 # define ETOOMANYREFS 10059 /* not required by POSIX */
71 # define ETIMEDOUT 10060
72 # define ECONNREFUSED 10061
74 # define EHOSTDOWN 10064 /* not required by POSIX */
75 # define EHOSTUNREACH 10065
76 # define EPROCLIM 10067 /* not required by POSIX */
77 # define EUSERS 10068 /* not required by POSIX */
80 # define EREMOTE 10071 /* not required by POSIX */
81 # define GNULIB_defined_ESOCK 1
86 /* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros
87 EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */
88 # if @EMULTIHOP_HIDDEN@
89 # define EMULTIHOP @EMULTIHOP_VALUE@
90 # define GNULIB_defined_EMULTIHOP 1
93 # define ENOLINK @ENOLINK_VALUE@
94 # define GNULIB_defined_ENOLINK 1
96 # if @EOVERFLOW_HIDDEN@
97 # define EOVERFLOW @EOVERFLOW_VALUE@
98 # define GNULIB_defined_EOVERFLOW 1
102 /* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK,
103 EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined.
104 Likewise, on NonStop Kernel, EDQUOT is not defined.
105 Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151,
106 HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133.
108 Note: When one of these systems defines some of these macros some day,
109 binaries will have to be recompiled so that they recognizes the new
110 errno values from the system. */
114 # define GNULIB_defined_ENOMSG 1
119 # define GNULIB_defined_EIDRM 1
123 # define ENOLINK 2002
124 # define GNULIB_defined_ENOLINK 1
129 # define GNULIB_defined_EPROTO 1
133 # define EMULTIHOP 2004
134 # define GNULIB_defined_EMULTIHOP 1
138 # define EBADMSG 2005
139 # define GNULIB_defined_EBADMSG 1
143 # define EOVERFLOW 2006
144 # define GNULIB_defined_EOVERFLOW 1
148 # define ENOTSUP 2007
149 # define GNULIB_defined_ENOTSUP 1
154 # define GNULIB_defined_ESTALE 1
159 # define GNULIB_defined_EDQUOT 1
163 # define ECANCELED 2008
164 # define GNULIB_defined_ECANCELED 1
168 #endif /* _GL_ERRNO_H */
169 #endif /* _GL_ERRNO_H */