1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* A POSIX-like <errno.h>.
5 Copyright (C) 2008 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@
27 /* The include_next requires a split double-inclusion guard. */
28 #@INCLUDE_NEXT@ @NEXT_ERRNO_H@
34 /* On native Windows platforms, many macros are not defined. */
35 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
37 /* POSIX says that EAGAIN and EWOULDBLOCK may have the same value. */
38 # define EWOULDBLOCK EAGAIN
40 /* Values >= 100 seem safe to use. */
42 # define GNULIB_defined_ETXTBSY 1
44 /* These are intentionally the same values as the WSA* error numbers, defined
46 # define EINPROGRESS 10036
47 # define EALREADY 10037
48 # define ENOTSOCK 10038
49 # define EDESTADDRREQ 10039
50 # define EMSGSIZE 10040
51 # define EPROTOTYPE 10041
52 # define ENOPROTOOPT 10042
53 # define EPROTONOSUPPORT 10043
54 # define ESOCKTNOSUPPORT 10044 /* not required by POSIX */
55 # define EOPNOTSUPP 10045
56 # define EPFNOSUPPORT 10046 /* not required by POSIX */
57 # define EAFNOSUPPORT 10047
58 # define EADDRINUSE 10048
59 # define EADDRNOTAVAIL 10049
60 # define ENETDOWN 10050
61 # define ENETUNREACH 10051
62 # define ENETRESET 10052
63 # define ECONNABORTED 10053
64 # define ECONNRESET 10054
65 # define ENOBUFS 10055
66 # define EISCONN 10056
67 # define ENOTCONN 10057
68 # define ESHUTDOWN 10058 /* not required by POSIX */
69 # define ETOOMANYREFS 10059 /* not required by POSIX */
70 # define ETIMEDOUT 10060
71 # define ECONNREFUSED 10061
73 # define EHOSTDOWN 10064 /* not required by POSIX */
74 # define EHOSTUNREACH 10065
75 # define EPROCLIM 10067 /* not required by POSIX */
76 # define EUSERS 10068 /* not required by POSIX */
79 # define EREMOTE 10071 /* not required by POSIX */
80 # define GNULIB_defined_ESOCK 1
85 /* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros
86 EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */
87 # if @EMULTIHOP_HIDDEN@
88 # define EMULTIHOP @EMULTIHOP_VALUE@
89 # define GNULIB_defined_EMULTIHOP 1
92 # define ENOLINK @ENOLINK_VALUE@
93 # define GNULIB_defined_ENOLINK 1
95 # if @EOVERFLOW_HIDDEN@
96 # define EOVERFLOW @EOVERFLOW_VALUE@
97 # define GNULIB_defined_EOVERFLOW 1
101 /* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK,
102 EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined.
103 Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151,
104 HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133.
106 Note: When one of these systems defines some of these macros some day,
107 binaries will have to be recompiled so that they recognizes the new
108 errno values from the system. */
112 # define GNULIB_defined_ENOMSG 1
117 # define GNULIB_defined_EIDRM 1
121 # define ENOLINK 2002
122 # define GNULIB_defined_ENOLINK 1
127 # define GNULIB_defined_EPROTO 1
131 # define EMULTIHOP 2004
132 # define GNULIB_defined_EMULTIHOP 1
136 # define EBADMSG 2005
137 # define GNULIB_defined_EBADMSG 1
141 # define EOVERFLOW 2006
142 # define GNULIB_defined_EOVERFLOW 1
146 # define ENOTSUP 2007
147 # define GNULIB_defined_ENOTSUP 1
151 # define ECANCELED 2008
152 # define GNULIB_defined_ECANCELED 1
156 #endif /* _GL_ERRNO_H */
157 #endif /* _GL_ERRNO_H */