130
/* Those codes, from Visual Studio 2010, conflict with other values */
133
138
* The following defines redefine the Windows Socket errors as
134
139
* BSD errors so Tcl_PosixError can do the right thing.
138
# define EWOULDBLOCK EAGAIN
141
# define EALREADY 149 /* operation already in progress */
144
# define ENOTSOCK 95 /* Socket operation on non-socket */
147
# define EDESTADDRREQ 96 /* Destination address required */
150
# define EMSGSIZE 97 /* Message too long */
153
# define EPROTOTYPE 98 /* Protocol wrong type for socket */
156
# define ENOPROTOOPT 99 /* Protocol not available */
158
#ifndef EPROTONOSUPPORT
159
# define EPROTONOSUPPORT 120 /* Protocol not supported */
161
#ifndef ESOCKTNOSUPPORT
162
# define ESOCKTNOSUPPORT 121 /* Socket type not supported */
165
# define EOPNOTSUPP 122 /* Operation not supported on socket */
168
# define EPFNOSUPPORT 123 /* Protocol family not supported */
171
# define EAFNOSUPPORT 124 /* Address family not supported */
174
# define EADDRINUSE 125 /* Address already in use */
176
#ifndef EADDRNOTAVAIL
177
# define EADDRNOTAVAIL 126 /* Can't assign requested address */
180
# define ENETDOWN 127 /* Network is down */
183
# define ENETUNREACH 128 /* Network is unreachable */
186
# define ENETRESET 129 /* Network dropped connection on reset */
189
# define ECONNABORTED 130 /* Software caused connection abort */
192
# define ECONNRESET 131 /* Connection reset by peer */
195
# define ENOBUFS 132 /* No buffer space available */
198
# define EISCONN 133 /* Socket is already connected */
201
# define ENOTCONN 134 /* Socket is not connected */
204
# define ESHUTDOWN 143 /* Can't send after socket shutdown */
207
# define ETOOMANYREFS 144 /* Too many references: can't splice */
210
# define ETIMEDOUT 145 /* Connection timed out */
213
# define ECONNREFUSED 146 /* Connection refused */
216
# define ELOOP 90 /* Symbolic link loop */
219
# define EHOSTDOWN 147 /* Host is down */
222
# define EHOSTUNREACH 148 /* No route to host */
225
# define ENOTEMPTY 93 /* directory not empty */
228
# define EUSERS 94 /* Too many users (for UFS) */
231
# define EDQUOT 69 /* Disc quota exceeded */
234
# define ESTALE 151 /* Stale NFS file handle */
237
# define EREMOTE 66 /* The object is remote */
143
#define EWOULDBLOCK EAGAIN
145
#define EALREADY 149 /* operation already in progress */
147
#define ENOTSOCK 95 /* Socket operation on non-socket */
149
#define EDESTADDRREQ 96 /* Destination address required */
151
#define EMSGSIZE 97 /* Message too long */
153
#define EPROTOTYPE 98 /* Protocol wrong type for socket */
155
#define ENOPROTOOPT 99 /* Protocol not available */
156
#undef EPROTONOSUPPORT
157
#define EPROTONOSUPPORT 120 /* Protocol not supported */
158
#undef ESOCKTNOSUPPORT
159
#define ESOCKTNOSUPPORT 121 /* Socket type not supported */
161
#define EOPNOTSUPP 122 /* Operation not supported on socket */
163
#define EPFNOSUPPORT 123 /* Protocol family not supported */
165
#define EAFNOSUPPORT 124 /* Address family not supported */
167
#define EADDRINUSE 125 /* Address already in use */
169
#define EADDRNOTAVAIL 126 /* Can't assign requested address */
171
#define ENETDOWN 127 /* Network is down */
173
#define ENETUNREACH 128 /* Network is unreachable */
175
#define ENETRESET 129 /* Network dropped connection on reset */
177
#define ECONNABORTED 130 /* Software caused connection abort */
179
#define ECONNRESET 131 /* Connection reset by peer */
181
#define ENOBUFS 132 /* No buffer space available */
183
#define EISCONN 133 /* Socket is already connected */
185
#define ENOTCONN 134 /* Socket is not connected */
187
#define ESHUTDOWN 143 /* Can't send after socket shutdown */
189
#define ETOOMANYREFS 144 /* Too many references: can't splice */
191
#define ETIMEDOUT 145 /* Connection timed out */
193
#define ECONNREFUSED 146 /* Connection refused */
195
#define ELOOP 90 /* Symbolic link loop */
197
#define EHOSTDOWN 147 /* Host is down */
199
#define EHOSTUNREACH 148 /* No route to host */
201
#define ENOTEMPTY 93 /* directory not empty */
203
#define EUSERS 94 /* Too many users (for UFS) */
205
#define EDQUOT 69 /* Disc quota exceeded */
207
#define ESTALE 151 /* Stale NFS file handle */
209
#define EREMOTE 66 /* The object is remote */
241
212
* It is very hard to determine how Windows reacts to attempting to