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/>. */
18
#ifndef _@GUARD_PREFIX@_ERRNO_H
24
21
@PRAGMA_SYSTEM_HEADER@
27
25
/* The include_next requires a split double-inclusion guard. */
28
26
#@INCLUDE_NEXT@ @NEXT_ERRNO_H@
28
#ifndef _@GUARD_PREFIX@_ERRNO_H
29
#define _@GUARD_PREFIX@_ERRNO_H
34
32
/* On native Windows platforms, many macros are not defined. */
35
33
# 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
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 EINPROGRESS 112
91
# define EDESTADDRREQ 109
93
# define EPROTOTYPE 136
94
# define ENOPROTOOPT 123
95
# define EPROTONOSUPPORT 135
96
# define EOPNOTSUPP 130
97
# define EAFNOSUPPORT 102
98
# define EADDRINUSE 100
99
# define EADDRNOTAVAIL 101
100
# define ENETDOWN 116
101
# define ENETUNREACH 118
102
# define ECONNRESET 108
105
# define ENOTCONN 126
106
# define ETIMEDOUT 138
107
# define ECONNREFUSED 107
109
# define EHOSTUNREACH 110
110
# define EWOULDBLOCK 140
112
# define ENODATA 120 /* not required by POSIX */
113
# define ENOSR 124 /* not required by POSIX */
114
# define ENOSTR 125 /* not required by POSIX */
115
# define ENOTRECOVERABLE 127 /* not required by POSIX */
116
# define EOWNERDEAD 133 /* not required by POSIX */
117
# define ETIME 137 /* not required by POSIX */
118
# define EOTHER 131 /* not required by POSIX */
119
# define GNULIB_defined_ESOCK 1
44
122
/* These are intentionally the same values as the WSA* error numbers, defined
45
123
in <winsock2.h>. */
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
124
# define ESOCKTNOSUPPORT 10044 /* not required by POSIX */
55
# define EOPNOTSUPP 10045
56
125
# 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
126
# define ESHUTDOWN 10058 /* not required by POSIX */
69
127
# define ETOOMANYREFS 10059 /* not required by POSIX */
70
# define ETIMEDOUT 10060
71
# define ECONNREFUSED 10061
73
128
# define EHOSTDOWN 10064 /* not required by POSIX */
74
# define EHOSTUNREACH 10065
75
129
# define EPROCLIM 10067 /* not required by POSIX */
76
130
# define EUSERS 10068 /* not required by POSIX */
77
131
# define EDQUOT 10069
78
132
# define ESTALE 10070
79
133
# define EREMOTE 10071 /* not required by POSIX */
80
# define GNULIB_defined_ESOCK 1
134
# define GNULIB_defined_EWINSOCK 1