15
13
GNU General Public License for more details.
17
15
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. */
16
along with this program; if not, see <http://www.gnu.org/licenses/>. */
21
18
#ifndef _@GUARD_PREFIX@_ERRNO_H
35
32
/* On native Windows platforms, many macros are not defined. */
36
33
# 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
35
/* These are the same values as defined by MSVC 10, for interoperability. */
39
# define GNULIB_defined_ENOMSG 1
44
# define GNULIB_defined_EIDRM 1
49
# define GNULIB_defined_ENOLINK 1
54
# define GNULIB_defined_EPROTO 1
59
# define GNULIB_defined_EBADMSG 1
63
# define EOVERFLOW 132
64
# define GNULIB_defined_EOVERFLOW 1
69
# define GNULIB_defined_ENOTSUP 1
73
# define ENETRESET 117
74
# define GNULIB_defined_ENETRESET 1
78
# define ECONNABORTED 106
79
# define GNULIB_defined_ECONNABORTED 1
83
# define ECANCELED 105
84
# define GNULIB_defined_ECANCELED 1
88
# define EOWNERDEAD 133
89
# define GNULIB_defined_EOWNERDEAD 1
92
# ifndef ENOTRECOVERABLE
93
# define ENOTRECOVERABLE 127
94
# define GNULIB_defined_ENOTRECOVERABLE 1
98
# define EINPROGRESS 112
100
# define ENOTSOCK 128
101
# define EDESTADDRREQ 109
102
# define EMSGSIZE 115
103
# define EPROTOTYPE 136
104
# define ENOPROTOOPT 123
105
# define EPROTONOSUPPORT 135
106
# define EOPNOTSUPP 130
107
# define EAFNOSUPPORT 102
108
# define EADDRINUSE 100
109
# define EADDRNOTAVAIL 101
110
# define ENETDOWN 116
111
# define ENETUNREACH 118
112
# define ECONNRESET 108
115
# define ENOTCONN 126
116
# define ETIMEDOUT 138
117
# define ECONNREFUSED 107
119
# define EHOSTUNREACH 110
120
# define EWOULDBLOCK 140
121
# define GNULIB_defined_ESOCK 1
126
# define ENODATA 120 /* not required by POSIX */
127
# define ENOSR 124 /* not required by POSIX */
128
# define ENOSTR 125 /* not required by POSIX */
129
# define ETIME 137 /* not required by POSIX */
130
# define EOTHER 131 /* not required by POSIX */
131
# define GNULIB_defined_ESTREAMS 1
45
134
/* These are intentionally the same values as the WSA* error numbers, defined
46
135
in <winsock2.h>. */
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
136
# define ESOCKTNOSUPPORT 10044 /* not required by POSIX */
56
# define EOPNOTSUPP 10045
57
137
# 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
138
# define ESHUTDOWN 10058 /* not required by POSIX */
70
139
# define ETOOMANYREFS 10059 /* not required by POSIX */
71
# define ETIMEDOUT 10060
72
# define ECONNREFUSED 10061
74
140
# define EHOSTDOWN 10064 /* not required by POSIX */
75
# define EHOSTUNREACH 10065
76
141
# define EPROCLIM 10067 /* not required by POSIX */
77
142
# define EUSERS 10068 /* not required by POSIX */
78
143
# define EDQUOT 10069
79
144
# define ESTALE 10070
80
145
# define EREMOTE 10071 /* not required by POSIX */
81
# define GNULIB_defined_ESOCK 1
146
# define GNULIB_defined_EWINSOCK 1
174
239
# define GNULIB_defined_ECANCELED 1
242
/* On many platforms, the macros EOWNERDEAD and ENOTRECOVERABLE are not
247
/* Use the same values as defined for Solaris >= 8, for
249
# define EOWNERDEAD 58
250
# define ENOTRECOVERABLE 59
251
# elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
252
/* We have a conflict here: pthreads-win32 defines these values
253
differently than MSVC 10. It's hairy to decide which one to use. */
254
# if defined __MINGW32__ && !defined USE_WINDOWS_THREADS
255
/* Use the same values as defined by pthreads-win32, for
257
# define EOWNERDEAD 43
258
# define ENOTRECOVERABLE 44
260
/* Use the same values as defined by MSVC 10, for
262
# define EOWNERDEAD 133
263
# define ENOTRECOVERABLE 127
266
# define EOWNERDEAD 2013
267
# define ENOTRECOVERABLE 2014
269
# define GNULIB_defined_EOWNERDEAD 1
270
# define GNULIB_defined_ENOTRECOVERABLE 1
178
273
#endif /* _@GUARD_PREFIX@_ERRNO_H */
179
274
#endif /* _@GUARD_PREFIX@_ERRNO_H */