1 | n/a | |
---|
2 | n/a | /* Errno module */ |
---|
3 | n/a | |
---|
4 | n/a | #include "Python.h" |
---|
5 | n/a | |
---|
6 | n/a | /* Windows socket errors (WSA*) */ |
---|
7 | n/a | #ifdef MS_WINDOWS |
---|
8 | n/a | #define WIN32_LEAN_AND_MEAN |
---|
9 | n/a | #include <windows.h> |
---|
10 | n/a | /* The following constants were added to errno.h in VS2010 but have |
---|
11 | n/a | preferred WSA equivalents. */ |
---|
12 | n/a | #undef EADDRINUSE |
---|
13 | n/a | #undef EADDRNOTAVAIL |
---|
14 | n/a | #undef EAFNOSUPPORT |
---|
15 | n/a | #undef EALREADY |
---|
16 | n/a | #undef ECONNABORTED |
---|
17 | n/a | #undef ECONNREFUSED |
---|
18 | n/a | #undef ECONNRESET |
---|
19 | n/a | #undef EDESTADDRREQ |
---|
20 | n/a | #undef EHOSTUNREACH |
---|
21 | n/a | #undef EINPROGRESS |
---|
22 | n/a | #undef EISCONN |
---|
23 | n/a | #undef ELOOP |
---|
24 | n/a | #undef EMSGSIZE |
---|
25 | n/a | #undef ENETDOWN |
---|
26 | n/a | #undef ENETRESET |
---|
27 | n/a | #undef ENETUNREACH |
---|
28 | n/a | #undef ENOBUFS |
---|
29 | n/a | #undef ENOPROTOOPT |
---|
30 | n/a | #undef ENOTCONN |
---|
31 | n/a | #undef ENOTSOCK |
---|
32 | n/a | #undef EOPNOTSUPP |
---|
33 | n/a | #undef EPROTONOSUPPORT |
---|
34 | n/a | #undef EPROTOTYPE |
---|
35 | n/a | #undef ETIMEDOUT |
---|
36 | n/a | #undef EWOULDBLOCK |
---|
37 | n/a | #endif |
---|
38 | n/a | |
---|
39 | n/a | /* |
---|
40 | n/a | * Pull in the system error definitions |
---|
41 | n/a | */ |
---|
42 | n/a | |
---|
43 | n/a | static PyMethodDef errno_methods[] = { |
---|
44 | n/a | {NULL, NULL} |
---|
45 | n/a | }; |
---|
46 | n/a | |
---|
47 | n/a | /* Helper function doing the dictionary inserting */ |
---|
48 | n/a | |
---|
49 | n/a | static void |
---|
50 | n/a | _inscode(PyObject *d, PyObject *de, const char *name, int code) |
---|
51 | n/a | { |
---|
52 | n/a | PyObject *u = PyUnicode_FromString(name); |
---|
53 | n/a | PyObject *v = PyLong_FromLong((long) code); |
---|
54 | n/a | |
---|
55 | n/a | /* Don't bother checking for errors; they'll be caught at the end |
---|
56 | n/a | * of the module initialization function by the caller of |
---|
57 | n/a | * initerrno(). |
---|
58 | n/a | */ |
---|
59 | n/a | if (u && v) { |
---|
60 | n/a | /* insert in modules dict */ |
---|
61 | n/a | PyDict_SetItem(d, u, v); |
---|
62 | n/a | /* insert in errorcode dict */ |
---|
63 | n/a | PyDict_SetItem(de, v, u); |
---|
64 | n/a | } |
---|
65 | n/a | Py_XDECREF(u); |
---|
66 | n/a | Py_XDECREF(v); |
---|
67 | n/a | } |
---|
68 | n/a | |
---|
69 | n/a | PyDoc_STRVAR(errno__doc__, |
---|
70 | n/a | "This module makes available standard errno system symbols.\n\ |
---|
71 | n/a | \n\ |
---|
72 | n/a | The value of each symbol is the corresponding integer value,\n\ |
---|
73 | n/a | e.g., on most systems, errno.ENOENT equals the integer 2.\n\ |
---|
74 | n/a | \n\ |
---|
75 | n/a | The dictionary errno.errorcode maps numeric codes to symbol names,\n\ |
---|
76 | n/a | e.g., errno.errorcode[2] could be the string 'ENOENT'.\n\ |
---|
77 | n/a | \n\ |
---|
78 | n/a | Symbols that are not relevant to the underlying system are not defined.\n\ |
---|
79 | n/a | \n\ |
---|
80 | n/a | To map error codes to error messages, use the function os.strerror(),\n\ |
---|
81 | n/a | e.g. os.strerror(2) could return 'No such file or directory'."); |
---|
82 | n/a | |
---|
83 | n/a | static struct PyModuleDef errnomodule = { |
---|
84 | n/a | PyModuleDef_HEAD_INIT, |
---|
85 | n/a | "errno", |
---|
86 | n/a | errno__doc__, |
---|
87 | n/a | -1, |
---|
88 | n/a | errno_methods, |
---|
89 | n/a | NULL, |
---|
90 | n/a | NULL, |
---|
91 | n/a | NULL, |
---|
92 | n/a | NULL |
---|
93 | n/a | }; |
---|
94 | n/a | |
---|
95 | n/a | PyMODINIT_FUNC |
---|
96 | n/a | PyInit_errno(void) |
---|
97 | n/a | { |
---|
98 | n/a | PyObject *m, *d, *de; |
---|
99 | n/a | m = PyModule_Create(&errnomodule); |
---|
100 | n/a | if (m == NULL) |
---|
101 | n/a | return NULL; |
---|
102 | n/a | d = PyModule_GetDict(m); |
---|
103 | n/a | de = PyDict_New(); |
---|
104 | n/a | if (!d || !de || PyDict_SetItemString(d, "errorcode", de) < 0) |
---|
105 | n/a | return NULL; |
---|
106 | n/a | |
---|
107 | n/a | /* Macro so I don't have to edit each and every line below... */ |
---|
108 | n/a | #define inscode(d, ds, de, name, code, comment) _inscode(d, de, name, code) |
---|
109 | n/a | |
---|
110 | n/a | /* |
---|
111 | n/a | * The names and comments are borrowed from linux/include/errno.h, |
---|
112 | n/a | * which should be pretty all-inclusive. However, the Solaris specific |
---|
113 | n/a | * names and comments are borrowed from sys/errno.h in Solaris. |
---|
114 | n/a | * MacOSX specific names and comments are borrowed from sys/errno.h in |
---|
115 | n/a | * MacOSX. |
---|
116 | n/a | */ |
---|
117 | n/a | |
---|
118 | n/a | #ifdef ENODEV |
---|
119 | n/a | inscode(d, ds, de, "ENODEV", ENODEV, "No such device"); |
---|
120 | n/a | #endif |
---|
121 | n/a | #ifdef ENOCSI |
---|
122 | n/a | inscode(d, ds, de, "ENOCSI", ENOCSI, "No CSI structure available"); |
---|
123 | n/a | #endif |
---|
124 | n/a | #ifdef EHOSTUNREACH |
---|
125 | n/a | inscode(d, ds, de, "EHOSTUNREACH", EHOSTUNREACH, "No route to host"); |
---|
126 | n/a | #else |
---|
127 | n/a | #ifdef WSAEHOSTUNREACH |
---|
128 | n/a | inscode(d, ds, de, "EHOSTUNREACH", WSAEHOSTUNREACH, "No route to host"); |
---|
129 | n/a | #endif |
---|
130 | n/a | #endif |
---|
131 | n/a | #ifdef ENOMSG |
---|
132 | n/a | inscode(d, ds, de, "ENOMSG", ENOMSG, "No message of desired type"); |
---|
133 | n/a | #endif |
---|
134 | n/a | #ifdef EUCLEAN |
---|
135 | n/a | inscode(d, ds, de, "EUCLEAN", EUCLEAN, "Structure needs cleaning"); |
---|
136 | n/a | #endif |
---|
137 | n/a | #ifdef EL2NSYNC |
---|
138 | n/a | inscode(d, ds, de, "EL2NSYNC", EL2NSYNC, "Level 2 not synchronized"); |
---|
139 | n/a | #endif |
---|
140 | n/a | #ifdef EL2HLT |
---|
141 | n/a | inscode(d, ds, de, "EL2HLT", EL2HLT, "Level 2 halted"); |
---|
142 | n/a | #endif |
---|
143 | n/a | #ifdef ENODATA |
---|
144 | n/a | inscode(d, ds, de, "ENODATA", ENODATA, "No data available"); |
---|
145 | n/a | #endif |
---|
146 | n/a | #ifdef ENOTBLK |
---|
147 | n/a | inscode(d, ds, de, "ENOTBLK", ENOTBLK, "Block device required"); |
---|
148 | n/a | #endif |
---|
149 | n/a | #ifdef ENOSYS |
---|
150 | n/a | inscode(d, ds, de, "ENOSYS", ENOSYS, "Function not implemented"); |
---|
151 | n/a | #endif |
---|
152 | n/a | #ifdef EPIPE |
---|
153 | n/a | inscode(d, ds, de, "EPIPE", EPIPE, "Broken pipe"); |
---|
154 | n/a | #endif |
---|
155 | n/a | #ifdef EINVAL |
---|
156 | n/a | inscode(d, ds, de, "EINVAL", EINVAL, "Invalid argument"); |
---|
157 | n/a | #else |
---|
158 | n/a | #ifdef WSAEINVAL |
---|
159 | n/a | inscode(d, ds, de, "EINVAL", WSAEINVAL, "Invalid argument"); |
---|
160 | n/a | #endif |
---|
161 | n/a | #endif |
---|
162 | n/a | #ifdef EOVERFLOW |
---|
163 | n/a | inscode(d, ds, de, "EOVERFLOW", EOVERFLOW, "Value too large for defined data type"); |
---|
164 | n/a | #endif |
---|
165 | n/a | #ifdef EADV |
---|
166 | n/a | inscode(d, ds, de, "EADV", EADV, "Advertise error"); |
---|
167 | n/a | #endif |
---|
168 | n/a | #ifdef EINTR |
---|
169 | n/a | inscode(d, ds, de, "EINTR", EINTR, "Interrupted system call"); |
---|
170 | n/a | #else |
---|
171 | n/a | #ifdef WSAEINTR |
---|
172 | n/a | inscode(d, ds, de, "EINTR", WSAEINTR, "Interrupted system call"); |
---|
173 | n/a | #endif |
---|
174 | n/a | #endif |
---|
175 | n/a | #ifdef EUSERS |
---|
176 | n/a | inscode(d, ds, de, "EUSERS", EUSERS, "Too many users"); |
---|
177 | n/a | #else |
---|
178 | n/a | #ifdef WSAEUSERS |
---|
179 | n/a | inscode(d, ds, de, "EUSERS", WSAEUSERS, "Too many users"); |
---|
180 | n/a | #endif |
---|
181 | n/a | #endif |
---|
182 | n/a | #ifdef ENOTEMPTY |
---|
183 | n/a | inscode(d, ds, de, "ENOTEMPTY", ENOTEMPTY, "Directory not empty"); |
---|
184 | n/a | #else |
---|
185 | n/a | #ifdef WSAENOTEMPTY |
---|
186 | n/a | inscode(d, ds, de, "ENOTEMPTY", WSAENOTEMPTY, "Directory not empty"); |
---|
187 | n/a | #endif |
---|
188 | n/a | #endif |
---|
189 | n/a | #ifdef ENOBUFS |
---|
190 | n/a | inscode(d, ds, de, "ENOBUFS", ENOBUFS, "No buffer space available"); |
---|
191 | n/a | #else |
---|
192 | n/a | #ifdef WSAENOBUFS |
---|
193 | n/a | inscode(d, ds, de, "ENOBUFS", WSAENOBUFS, "No buffer space available"); |
---|
194 | n/a | #endif |
---|
195 | n/a | #endif |
---|
196 | n/a | #ifdef EPROTO |
---|
197 | n/a | inscode(d, ds, de, "EPROTO", EPROTO, "Protocol error"); |
---|
198 | n/a | #endif |
---|
199 | n/a | #ifdef EREMOTE |
---|
200 | n/a | inscode(d, ds, de, "EREMOTE", EREMOTE, "Object is remote"); |
---|
201 | n/a | #else |
---|
202 | n/a | #ifdef WSAEREMOTE |
---|
203 | n/a | inscode(d, ds, de, "EREMOTE", WSAEREMOTE, "Object is remote"); |
---|
204 | n/a | #endif |
---|
205 | n/a | #endif |
---|
206 | n/a | #ifdef ENAVAIL |
---|
207 | n/a | inscode(d, ds, de, "ENAVAIL", ENAVAIL, "No XENIX semaphores available"); |
---|
208 | n/a | #endif |
---|
209 | n/a | #ifdef ECHILD |
---|
210 | n/a | inscode(d, ds, de, "ECHILD", ECHILD, "No child processes"); |
---|
211 | n/a | #endif |
---|
212 | n/a | #ifdef ELOOP |
---|
213 | n/a | inscode(d, ds, de, "ELOOP", ELOOP, "Too many symbolic links encountered"); |
---|
214 | n/a | #else |
---|
215 | n/a | #ifdef WSAELOOP |
---|
216 | n/a | inscode(d, ds, de, "ELOOP", WSAELOOP, "Too many symbolic links encountered"); |
---|
217 | n/a | #endif |
---|
218 | n/a | #endif |
---|
219 | n/a | #ifdef EXDEV |
---|
220 | n/a | inscode(d, ds, de, "EXDEV", EXDEV, "Cross-device link"); |
---|
221 | n/a | #endif |
---|
222 | n/a | #ifdef E2BIG |
---|
223 | n/a | inscode(d, ds, de, "E2BIG", E2BIG, "Arg list too long"); |
---|
224 | n/a | #endif |
---|
225 | n/a | #ifdef ESRCH |
---|
226 | n/a | inscode(d, ds, de, "ESRCH", ESRCH, "No such process"); |
---|
227 | n/a | #endif |
---|
228 | n/a | #ifdef EMSGSIZE |
---|
229 | n/a | inscode(d, ds, de, "EMSGSIZE", EMSGSIZE, "Message too long"); |
---|
230 | n/a | #else |
---|
231 | n/a | #ifdef WSAEMSGSIZE |
---|
232 | n/a | inscode(d, ds, de, "EMSGSIZE", WSAEMSGSIZE, "Message too long"); |
---|
233 | n/a | #endif |
---|
234 | n/a | #endif |
---|
235 | n/a | #ifdef EAFNOSUPPORT |
---|
236 | n/a | inscode(d, ds, de, "EAFNOSUPPORT", EAFNOSUPPORT, "Address family not supported by protocol"); |
---|
237 | n/a | #else |
---|
238 | n/a | #ifdef WSAEAFNOSUPPORT |
---|
239 | n/a | inscode(d, ds, de, "EAFNOSUPPORT", WSAEAFNOSUPPORT, "Address family not supported by protocol"); |
---|
240 | n/a | #endif |
---|
241 | n/a | #endif |
---|
242 | n/a | #ifdef EBADR |
---|
243 | n/a | inscode(d, ds, de, "EBADR", EBADR, "Invalid request descriptor"); |
---|
244 | n/a | #endif |
---|
245 | n/a | #ifdef EHOSTDOWN |
---|
246 | n/a | inscode(d, ds, de, "EHOSTDOWN", EHOSTDOWN, "Host is down"); |
---|
247 | n/a | #else |
---|
248 | n/a | #ifdef WSAEHOSTDOWN |
---|
249 | n/a | inscode(d, ds, de, "EHOSTDOWN", WSAEHOSTDOWN, "Host is down"); |
---|
250 | n/a | #endif |
---|
251 | n/a | #endif |
---|
252 | n/a | #ifdef EPFNOSUPPORT |
---|
253 | n/a | inscode(d, ds, de, "EPFNOSUPPORT", EPFNOSUPPORT, "Protocol family not supported"); |
---|
254 | n/a | #else |
---|
255 | n/a | #ifdef WSAEPFNOSUPPORT |
---|
256 | n/a | inscode(d, ds, de, "EPFNOSUPPORT", WSAEPFNOSUPPORT, "Protocol family not supported"); |
---|
257 | n/a | #endif |
---|
258 | n/a | #endif |
---|
259 | n/a | #ifdef ENOPROTOOPT |
---|
260 | n/a | inscode(d, ds, de, "ENOPROTOOPT", ENOPROTOOPT, "Protocol not available"); |
---|
261 | n/a | #else |
---|
262 | n/a | #ifdef WSAENOPROTOOPT |
---|
263 | n/a | inscode(d, ds, de, "ENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available"); |
---|
264 | n/a | #endif |
---|
265 | n/a | #endif |
---|
266 | n/a | #ifdef EBUSY |
---|
267 | n/a | inscode(d, ds, de, "EBUSY", EBUSY, "Device or resource busy"); |
---|
268 | n/a | #endif |
---|
269 | n/a | #ifdef EWOULDBLOCK |
---|
270 | n/a | inscode(d, ds, de, "EWOULDBLOCK", EWOULDBLOCK, "Operation would block"); |
---|
271 | n/a | #else |
---|
272 | n/a | #ifdef WSAEWOULDBLOCK |
---|
273 | n/a | inscode(d, ds, de, "EWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block"); |
---|
274 | n/a | #endif |
---|
275 | n/a | #endif |
---|
276 | n/a | #ifdef EBADFD |
---|
277 | n/a | inscode(d, ds, de, "EBADFD", EBADFD, "File descriptor in bad state"); |
---|
278 | n/a | #endif |
---|
279 | n/a | #ifdef EDOTDOT |
---|
280 | n/a | inscode(d, ds, de, "EDOTDOT", EDOTDOT, "RFS specific error"); |
---|
281 | n/a | #endif |
---|
282 | n/a | #ifdef EISCONN |
---|
283 | n/a | inscode(d, ds, de, "EISCONN", EISCONN, "Transport endpoint is already connected"); |
---|
284 | n/a | #else |
---|
285 | n/a | #ifdef WSAEISCONN |
---|
286 | n/a | inscode(d, ds, de, "EISCONN", WSAEISCONN, "Transport endpoint is already connected"); |
---|
287 | n/a | #endif |
---|
288 | n/a | #endif |
---|
289 | n/a | #ifdef ENOANO |
---|
290 | n/a | inscode(d, ds, de, "ENOANO", ENOANO, "No anode"); |
---|
291 | n/a | #endif |
---|
292 | n/a | #ifdef ESHUTDOWN |
---|
293 | n/a | inscode(d, ds, de, "ESHUTDOWN", ESHUTDOWN, "Cannot send after transport endpoint shutdown"); |
---|
294 | n/a | #else |
---|
295 | n/a | #ifdef WSAESHUTDOWN |
---|
296 | n/a | inscode(d, ds, de, "ESHUTDOWN", WSAESHUTDOWN, "Cannot send after transport endpoint shutdown"); |
---|
297 | n/a | #endif |
---|
298 | n/a | #endif |
---|
299 | n/a | #ifdef ECHRNG |
---|
300 | n/a | inscode(d, ds, de, "ECHRNG", ECHRNG, "Channel number out of range"); |
---|
301 | n/a | #endif |
---|
302 | n/a | #ifdef ELIBBAD |
---|
303 | n/a | inscode(d, ds, de, "ELIBBAD", ELIBBAD, "Accessing a corrupted shared library"); |
---|
304 | n/a | #endif |
---|
305 | n/a | #ifdef ENONET |
---|
306 | n/a | inscode(d, ds, de, "ENONET", ENONET, "Machine is not on the network"); |
---|
307 | n/a | #endif |
---|
308 | n/a | #ifdef EBADE |
---|
309 | n/a | inscode(d, ds, de, "EBADE", EBADE, "Invalid exchange"); |
---|
310 | n/a | #endif |
---|
311 | n/a | #ifdef EBADF |
---|
312 | n/a | inscode(d, ds, de, "EBADF", EBADF, "Bad file number"); |
---|
313 | n/a | #else |
---|
314 | n/a | #ifdef WSAEBADF |
---|
315 | n/a | inscode(d, ds, de, "EBADF", WSAEBADF, "Bad file number"); |
---|
316 | n/a | #endif |
---|
317 | n/a | #endif |
---|
318 | n/a | #ifdef EMULTIHOP |
---|
319 | n/a | inscode(d, ds, de, "EMULTIHOP", EMULTIHOP, "Multihop attempted"); |
---|
320 | n/a | #endif |
---|
321 | n/a | #ifdef EIO |
---|
322 | n/a | inscode(d, ds, de, "EIO", EIO, "I/O error"); |
---|
323 | n/a | #endif |
---|
324 | n/a | #ifdef EUNATCH |
---|
325 | n/a | inscode(d, ds, de, "EUNATCH", EUNATCH, "Protocol driver not attached"); |
---|
326 | n/a | #endif |
---|
327 | n/a | #ifdef EPROTOTYPE |
---|
328 | n/a | inscode(d, ds, de, "EPROTOTYPE", EPROTOTYPE, "Protocol wrong type for socket"); |
---|
329 | n/a | #else |
---|
330 | n/a | #ifdef WSAEPROTOTYPE |
---|
331 | n/a | inscode(d, ds, de, "EPROTOTYPE", WSAEPROTOTYPE, "Protocol wrong type for socket"); |
---|
332 | n/a | #endif |
---|
333 | n/a | #endif |
---|
334 | n/a | #ifdef ENOSPC |
---|
335 | n/a | inscode(d, ds, de, "ENOSPC", ENOSPC, "No space left on device"); |
---|
336 | n/a | #endif |
---|
337 | n/a | #ifdef ENOEXEC |
---|
338 | n/a | inscode(d, ds, de, "ENOEXEC", ENOEXEC, "Exec format error"); |
---|
339 | n/a | #endif |
---|
340 | n/a | #ifdef EALREADY |
---|
341 | n/a | inscode(d, ds, de, "EALREADY", EALREADY, "Operation already in progress"); |
---|
342 | n/a | #else |
---|
343 | n/a | #ifdef WSAEALREADY |
---|
344 | n/a | inscode(d, ds, de, "EALREADY", WSAEALREADY, "Operation already in progress"); |
---|
345 | n/a | #endif |
---|
346 | n/a | #endif |
---|
347 | n/a | #ifdef ENETDOWN |
---|
348 | n/a | inscode(d, ds, de, "ENETDOWN", ENETDOWN, "Network is down"); |
---|
349 | n/a | #else |
---|
350 | n/a | #ifdef WSAENETDOWN |
---|
351 | n/a | inscode(d, ds, de, "ENETDOWN", WSAENETDOWN, "Network is down"); |
---|
352 | n/a | #endif |
---|
353 | n/a | #endif |
---|
354 | n/a | #ifdef ENOTNAM |
---|
355 | n/a | inscode(d, ds, de, "ENOTNAM", ENOTNAM, "Not a XENIX named type file"); |
---|
356 | n/a | #endif |
---|
357 | n/a | #ifdef EACCES |
---|
358 | n/a | inscode(d, ds, de, "EACCES", EACCES, "Permission denied"); |
---|
359 | n/a | #else |
---|
360 | n/a | #ifdef WSAEACCES |
---|
361 | n/a | inscode(d, ds, de, "EACCES", WSAEACCES, "Permission denied"); |
---|
362 | n/a | #endif |
---|
363 | n/a | #endif |
---|
364 | n/a | #ifdef ELNRNG |
---|
365 | n/a | inscode(d, ds, de, "ELNRNG", ELNRNG, "Link number out of range"); |
---|
366 | n/a | #endif |
---|
367 | n/a | #ifdef EILSEQ |
---|
368 | n/a | inscode(d, ds, de, "EILSEQ", EILSEQ, "Illegal byte sequence"); |
---|
369 | n/a | #endif |
---|
370 | n/a | #ifdef ENOTDIR |
---|
371 | n/a | inscode(d, ds, de, "ENOTDIR", ENOTDIR, "Not a directory"); |
---|
372 | n/a | #endif |
---|
373 | n/a | #ifdef ENOTUNIQ |
---|
374 | n/a | inscode(d, ds, de, "ENOTUNIQ", ENOTUNIQ, "Name not unique on network"); |
---|
375 | n/a | #endif |
---|
376 | n/a | #ifdef EPERM |
---|
377 | n/a | inscode(d, ds, de, "EPERM", EPERM, "Operation not permitted"); |
---|
378 | n/a | #endif |
---|
379 | n/a | #ifdef EDOM |
---|
380 | n/a | inscode(d, ds, de, "EDOM", EDOM, "Math argument out of domain of func"); |
---|
381 | n/a | #endif |
---|
382 | n/a | #ifdef EXFULL |
---|
383 | n/a | inscode(d, ds, de, "EXFULL", EXFULL, "Exchange full"); |
---|
384 | n/a | #endif |
---|
385 | n/a | #ifdef ECONNREFUSED |
---|
386 | n/a | inscode(d, ds, de, "ECONNREFUSED", ECONNREFUSED, "Connection refused"); |
---|
387 | n/a | #else |
---|
388 | n/a | #ifdef WSAECONNREFUSED |
---|
389 | n/a | inscode(d, ds, de, "ECONNREFUSED", WSAECONNREFUSED, "Connection refused"); |
---|
390 | n/a | #endif |
---|
391 | n/a | #endif |
---|
392 | n/a | #ifdef EISDIR |
---|
393 | n/a | inscode(d, ds, de, "EISDIR", EISDIR, "Is a directory"); |
---|
394 | n/a | #endif |
---|
395 | n/a | #ifdef EPROTONOSUPPORT |
---|
396 | n/a | inscode(d, ds, de, "EPROTONOSUPPORT", EPROTONOSUPPORT, "Protocol not supported"); |
---|
397 | n/a | #else |
---|
398 | n/a | #ifdef WSAEPROTONOSUPPORT |
---|
399 | n/a | inscode(d, ds, de, "EPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported"); |
---|
400 | n/a | #endif |
---|
401 | n/a | #endif |
---|
402 | n/a | #ifdef EROFS |
---|
403 | n/a | inscode(d, ds, de, "EROFS", EROFS, "Read-only file system"); |
---|
404 | n/a | #endif |
---|
405 | n/a | #ifdef EADDRNOTAVAIL |
---|
406 | n/a | inscode(d, ds, de, "EADDRNOTAVAIL", EADDRNOTAVAIL, "Cannot assign requested address"); |
---|
407 | n/a | #else |
---|
408 | n/a | #ifdef WSAEADDRNOTAVAIL |
---|
409 | n/a | inscode(d, ds, de, "EADDRNOTAVAIL", WSAEADDRNOTAVAIL, "Cannot assign requested address"); |
---|
410 | n/a | #endif |
---|
411 | n/a | #endif |
---|
412 | n/a | #ifdef EIDRM |
---|
413 | n/a | inscode(d, ds, de, "EIDRM", EIDRM, "Identifier removed"); |
---|
414 | n/a | #endif |
---|
415 | n/a | #ifdef ECOMM |
---|
416 | n/a | inscode(d, ds, de, "ECOMM", ECOMM, "Communication error on send"); |
---|
417 | n/a | #endif |
---|
418 | n/a | #ifdef ESRMNT |
---|
419 | n/a | inscode(d, ds, de, "ESRMNT", ESRMNT, "Srmount error"); |
---|
420 | n/a | #endif |
---|
421 | n/a | #ifdef EREMOTEIO |
---|
422 | n/a | inscode(d, ds, de, "EREMOTEIO", EREMOTEIO, "Remote I/O error"); |
---|
423 | n/a | #endif |
---|
424 | n/a | #ifdef EL3RST |
---|
425 | n/a | inscode(d, ds, de, "EL3RST", EL3RST, "Level 3 reset"); |
---|
426 | n/a | #endif |
---|
427 | n/a | #ifdef EBADMSG |
---|
428 | n/a | inscode(d, ds, de, "EBADMSG", EBADMSG, "Not a data message"); |
---|
429 | n/a | #endif |
---|
430 | n/a | #ifdef ENFILE |
---|
431 | n/a | inscode(d, ds, de, "ENFILE", ENFILE, "File table overflow"); |
---|
432 | n/a | #endif |
---|
433 | n/a | #ifdef ELIBMAX |
---|
434 | n/a | inscode(d, ds, de, "ELIBMAX", ELIBMAX, "Attempting to link in too many shared libraries"); |
---|
435 | n/a | #endif |
---|
436 | n/a | #ifdef ESPIPE |
---|
437 | n/a | inscode(d, ds, de, "ESPIPE", ESPIPE, "Illegal seek"); |
---|
438 | n/a | #endif |
---|
439 | n/a | #ifdef ENOLINK |
---|
440 | n/a | inscode(d, ds, de, "ENOLINK", ENOLINK, "Link has been severed"); |
---|
441 | n/a | #endif |
---|
442 | n/a | #ifdef ENETRESET |
---|
443 | n/a | inscode(d, ds, de, "ENETRESET", ENETRESET, "Network dropped connection because of reset"); |
---|
444 | n/a | #else |
---|
445 | n/a | #ifdef WSAENETRESET |
---|
446 | n/a | inscode(d, ds, de, "ENETRESET", WSAENETRESET, "Network dropped connection because of reset"); |
---|
447 | n/a | #endif |
---|
448 | n/a | #endif |
---|
449 | n/a | #ifdef ETIMEDOUT |
---|
450 | n/a | inscode(d, ds, de, "ETIMEDOUT", ETIMEDOUT, "Connection timed out"); |
---|
451 | n/a | #else |
---|
452 | n/a | #ifdef WSAETIMEDOUT |
---|
453 | n/a | inscode(d, ds, de, "ETIMEDOUT", WSAETIMEDOUT, "Connection timed out"); |
---|
454 | n/a | #endif |
---|
455 | n/a | #endif |
---|
456 | n/a | #ifdef ENOENT |
---|
457 | n/a | inscode(d, ds, de, "ENOENT", ENOENT, "No such file or directory"); |
---|
458 | n/a | #endif |
---|
459 | n/a | #ifdef EEXIST |
---|
460 | n/a | inscode(d, ds, de, "EEXIST", EEXIST, "File exists"); |
---|
461 | n/a | #endif |
---|
462 | n/a | #ifdef EDQUOT |
---|
463 | n/a | inscode(d, ds, de, "EDQUOT", EDQUOT, "Quota exceeded"); |
---|
464 | n/a | #else |
---|
465 | n/a | #ifdef WSAEDQUOT |
---|
466 | n/a | inscode(d, ds, de, "EDQUOT", WSAEDQUOT, "Quota exceeded"); |
---|
467 | n/a | #endif |
---|
468 | n/a | #endif |
---|
469 | n/a | #ifdef ENOSTR |
---|
470 | n/a | inscode(d, ds, de, "ENOSTR", ENOSTR, "Device not a stream"); |
---|
471 | n/a | #endif |
---|
472 | n/a | #ifdef EBADSLT |
---|
473 | n/a | inscode(d, ds, de, "EBADSLT", EBADSLT, "Invalid slot"); |
---|
474 | n/a | #endif |
---|
475 | n/a | #ifdef EBADRQC |
---|
476 | n/a | inscode(d, ds, de, "EBADRQC", EBADRQC, "Invalid request code"); |
---|
477 | n/a | #endif |
---|
478 | n/a | #ifdef ELIBACC |
---|
479 | n/a | inscode(d, ds, de, "ELIBACC", ELIBACC, "Can not access a needed shared library"); |
---|
480 | n/a | #endif |
---|
481 | n/a | #ifdef EFAULT |
---|
482 | n/a | inscode(d, ds, de, "EFAULT", EFAULT, "Bad address"); |
---|
483 | n/a | #else |
---|
484 | n/a | #ifdef WSAEFAULT |
---|
485 | n/a | inscode(d, ds, de, "EFAULT", WSAEFAULT, "Bad address"); |
---|
486 | n/a | #endif |
---|
487 | n/a | #endif |
---|
488 | n/a | #ifdef EFBIG |
---|
489 | n/a | inscode(d, ds, de, "EFBIG", EFBIG, "File too large"); |
---|
490 | n/a | #endif |
---|
491 | n/a | #ifdef EDEADLK |
---|
492 | n/a | inscode(d, ds, de, "EDEADLK", EDEADLK, "Resource deadlock would occur"); |
---|
493 | n/a | #endif |
---|
494 | n/a | #ifdef ENOTCONN |
---|
495 | n/a | inscode(d, ds, de, "ENOTCONN", ENOTCONN, "Transport endpoint is not connected"); |
---|
496 | n/a | #else |
---|
497 | n/a | #ifdef WSAENOTCONN |
---|
498 | n/a | inscode(d, ds, de, "ENOTCONN", WSAENOTCONN, "Transport endpoint is not connected"); |
---|
499 | n/a | #endif |
---|
500 | n/a | #endif |
---|
501 | n/a | #ifdef EDESTADDRREQ |
---|
502 | n/a | inscode(d, ds, de, "EDESTADDRREQ", EDESTADDRREQ, "Destination address required"); |
---|
503 | n/a | #else |
---|
504 | n/a | #ifdef WSAEDESTADDRREQ |
---|
505 | n/a | inscode(d, ds, de, "EDESTADDRREQ", WSAEDESTADDRREQ, "Destination address required"); |
---|
506 | n/a | #endif |
---|
507 | n/a | #endif |
---|
508 | n/a | #ifdef ELIBSCN |
---|
509 | n/a | inscode(d, ds, de, "ELIBSCN", ELIBSCN, ".lib section in a.out corrupted"); |
---|
510 | n/a | #endif |
---|
511 | n/a | #ifdef ENOLCK |
---|
512 | n/a | inscode(d, ds, de, "ENOLCK", ENOLCK, "No record locks available"); |
---|
513 | n/a | #endif |
---|
514 | n/a | #ifdef EISNAM |
---|
515 | n/a | inscode(d, ds, de, "EISNAM", EISNAM, "Is a named type file"); |
---|
516 | n/a | #endif |
---|
517 | n/a | #ifdef ECONNABORTED |
---|
518 | n/a | inscode(d, ds, de, "ECONNABORTED", ECONNABORTED, "Software caused connection abort"); |
---|
519 | n/a | #else |
---|
520 | n/a | #ifdef WSAECONNABORTED |
---|
521 | n/a | inscode(d, ds, de, "ECONNABORTED", WSAECONNABORTED, "Software caused connection abort"); |
---|
522 | n/a | #endif |
---|
523 | n/a | #endif |
---|
524 | n/a | #ifdef ENETUNREACH |
---|
525 | n/a | inscode(d, ds, de, "ENETUNREACH", ENETUNREACH, "Network is unreachable"); |
---|
526 | n/a | #else |
---|
527 | n/a | #ifdef WSAENETUNREACH |
---|
528 | n/a | inscode(d, ds, de, "ENETUNREACH", WSAENETUNREACH, "Network is unreachable"); |
---|
529 | n/a | #endif |
---|
530 | n/a | #endif |
---|
531 | n/a | #ifdef ESTALE |
---|
532 | n/a | inscode(d, ds, de, "ESTALE", ESTALE, "Stale NFS file handle"); |
---|
533 | n/a | #else |
---|
534 | n/a | #ifdef WSAESTALE |
---|
535 | n/a | inscode(d, ds, de, "ESTALE", WSAESTALE, "Stale NFS file handle"); |
---|
536 | n/a | #endif |
---|
537 | n/a | #endif |
---|
538 | n/a | #ifdef ENOSR |
---|
539 | n/a | inscode(d, ds, de, "ENOSR", ENOSR, "Out of streams resources"); |
---|
540 | n/a | #endif |
---|
541 | n/a | #ifdef ENOMEM |
---|
542 | n/a | inscode(d, ds, de, "ENOMEM", ENOMEM, "Out of memory"); |
---|
543 | n/a | #endif |
---|
544 | n/a | #ifdef ENOTSOCK |
---|
545 | n/a | inscode(d, ds, de, "ENOTSOCK", ENOTSOCK, "Socket operation on non-socket"); |
---|
546 | n/a | #else |
---|
547 | n/a | #ifdef WSAENOTSOCK |
---|
548 | n/a | inscode(d, ds, de, "ENOTSOCK", WSAENOTSOCK, "Socket operation on non-socket"); |
---|
549 | n/a | #endif |
---|
550 | n/a | #endif |
---|
551 | n/a | #ifdef ESTRPIPE |
---|
552 | n/a | inscode(d, ds, de, "ESTRPIPE", ESTRPIPE, "Streams pipe error"); |
---|
553 | n/a | #endif |
---|
554 | n/a | #ifdef EMLINK |
---|
555 | n/a | inscode(d, ds, de, "EMLINK", EMLINK, "Too many links"); |
---|
556 | n/a | #endif |
---|
557 | n/a | #ifdef ERANGE |
---|
558 | n/a | inscode(d, ds, de, "ERANGE", ERANGE, "Math result not representable"); |
---|
559 | n/a | #endif |
---|
560 | n/a | #ifdef ELIBEXEC |
---|
561 | n/a | inscode(d, ds, de, "ELIBEXEC", ELIBEXEC, "Cannot exec a shared library directly"); |
---|
562 | n/a | #endif |
---|
563 | n/a | #ifdef EL3HLT |
---|
564 | n/a | inscode(d, ds, de, "EL3HLT", EL3HLT, "Level 3 halted"); |
---|
565 | n/a | #endif |
---|
566 | n/a | #ifdef ECONNRESET |
---|
567 | n/a | inscode(d, ds, de, "ECONNRESET", ECONNRESET, "Connection reset by peer"); |
---|
568 | n/a | #else |
---|
569 | n/a | #ifdef WSAECONNRESET |
---|
570 | n/a | inscode(d, ds, de, "ECONNRESET", WSAECONNRESET, "Connection reset by peer"); |
---|
571 | n/a | #endif |
---|
572 | n/a | #endif |
---|
573 | n/a | #ifdef EADDRINUSE |
---|
574 | n/a | inscode(d, ds, de, "EADDRINUSE", EADDRINUSE, "Address already in use"); |
---|
575 | n/a | #else |
---|
576 | n/a | #ifdef WSAEADDRINUSE |
---|
577 | n/a | inscode(d, ds, de, "EADDRINUSE", WSAEADDRINUSE, "Address already in use"); |
---|
578 | n/a | #endif |
---|
579 | n/a | #endif |
---|
580 | n/a | #ifdef EOPNOTSUPP |
---|
581 | n/a | inscode(d, ds, de, "EOPNOTSUPP", EOPNOTSUPP, "Operation not supported on transport endpoint"); |
---|
582 | n/a | #else |
---|
583 | n/a | #ifdef WSAEOPNOTSUPP |
---|
584 | n/a | inscode(d, ds, de, "EOPNOTSUPP", WSAEOPNOTSUPP, "Operation not supported on transport endpoint"); |
---|
585 | n/a | #endif |
---|
586 | n/a | #endif |
---|
587 | n/a | #ifdef EREMCHG |
---|
588 | n/a | inscode(d, ds, de, "EREMCHG", EREMCHG, "Remote address changed"); |
---|
589 | n/a | #endif |
---|
590 | n/a | #ifdef EAGAIN |
---|
591 | n/a | inscode(d, ds, de, "EAGAIN", EAGAIN, "Try again"); |
---|
592 | n/a | #endif |
---|
593 | n/a | #ifdef ENAMETOOLONG |
---|
594 | n/a | inscode(d, ds, de, "ENAMETOOLONG", ENAMETOOLONG, "File name too long"); |
---|
595 | n/a | #else |
---|
596 | n/a | #ifdef WSAENAMETOOLONG |
---|
597 | n/a | inscode(d, ds, de, "ENAMETOOLONG", WSAENAMETOOLONG, "File name too long"); |
---|
598 | n/a | #endif |
---|
599 | n/a | #endif |
---|
600 | n/a | #ifdef ENOTTY |
---|
601 | n/a | inscode(d, ds, de, "ENOTTY", ENOTTY, "Not a typewriter"); |
---|
602 | n/a | #endif |
---|
603 | n/a | #ifdef ERESTART |
---|
604 | n/a | inscode(d, ds, de, "ERESTART", ERESTART, "Interrupted system call should be restarted"); |
---|
605 | n/a | #endif |
---|
606 | n/a | #ifdef ESOCKTNOSUPPORT |
---|
607 | n/a | inscode(d, ds, de, "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, "Socket type not supported"); |
---|
608 | n/a | #else |
---|
609 | n/a | #ifdef WSAESOCKTNOSUPPORT |
---|
610 | n/a | inscode(d, ds, de, "ESOCKTNOSUPPORT", WSAESOCKTNOSUPPORT, "Socket type not supported"); |
---|
611 | n/a | #endif |
---|
612 | n/a | #endif |
---|
613 | n/a | #ifdef ETIME |
---|
614 | n/a | inscode(d, ds, de, "ETIME", ETIME, "Timer expired"); |
---|
615 | n/a | #endif |
---|
616 | n/a | #ifdef EBFONT |
---|
617 | n/a | inscode(d, ds, de, "EBFONT", EBFONT, "Bad font file format"); |
---|
618 | n/a | #endif |
---|
619 | n/a | #ifdef EDEADLOCK |
---|
620 | n/a | inscode(d, ds, de, "EDEADLOCK", EDEADLOCK, "Error EDEADLOCK"); |
---|
621 | n/a | #endif |
---|
622 | n/a | #ifdef ETOOMANYREFS |
---|
623 | n/a | inscode(d, ds, de, "ETOOMANYREFS", ETOOMANYREFS, "Too many references: cannot splice"); |
---|
624 | n/a | #else |
---|
625 | n/a | #ifdef WSAETOOMANYREFS |
---|
626 | n/a | inscode(d, ds, de, "ETOOMANYREFS", WSAETOOMANYREFS, "Too many references: cannot splice"); |
---|
627 | n/a | #endif |
---|
628 | n/a | #endif |
---|
629 | n/a | #ifdef EMFILE |
---|
630 | n/a | inscode(d, ds, de, "EMFILE", EMFILE, "Too many open files"); |
---|
631 | n/a | #else |
---|
632 | n/a | #ifdef WSAEMFILE |
---|
633 | n/a | inscode(d, ds, de, "EMFILE", WSAEMFILE, "Too many open files"); |
---|
634 | n/a | #endif |
---|
635 | n/a | #endif |
---|
636 | n/a | #ifdef ETXTBSY |
---|
637 | n/a | inscode(d, ds, de, "ETXTBSY", ETXTBSY, "Text file busy"); |
---|
638 | n/a | #endif |
---|
639 | n/a | #ifdef EINPROGRESS |
---|
640 | n/a | inscode(d, ds, de, "EINPROGRESS", EINPROGRESS, "Operation now in progress"); |
---|
641 | n/a | #else |
---|
642 | n/a | #ifdef WSAEINPROGRESS |
---|
643 | n/a | inscode(d, ds, de, "EINPROGRESS", WSAEINPROGRESS, "Operation now in progress"); |
---|
644 | n/a | #endif |
---|
645 | n/a | #endif |
---|
646 | n/a | #ifdef ENXIO |
---|
647 | n/a | inscode(d, ds, de, "ENXIO", ENXIO, "No such device or address"); |
---|
648 | n/a | #endif |
---|
649 | n/a | #ifdef ENOPKG |
---|
650 | n/a | inscode(d, ds, de, "ENOPKG", ENOPKG, "Package not installed"); |
---|
651 | n/a | #endif |
---|
652 | n/a | #ifdef WSASY |
---|
653 | n/a | inscode(d, ds, de, "WSASY", WSASY, "Error WSASY"); |
---|
654 | n/a | #endif |
---|
655 | n/a | #ifdef WSAEHOSTDOWN |
---|
656 | n/a | inscode(d, ds, de, "WSAEHOSTDOWN", WSAEHOSTDOWN, "Host is down"); |
---|
657 | n/a | #endif |
---|
658 | n/a | #ifdef WSAENETDOWN |
---|
659 | n/a | inscode(d, ds, de, "WSAENETDOWN", WSAENETDOWN, "Network is down"); |
---|
660 | n/a | #endif |
---|
661 | n/a | #ifdef WSAENOTSOCK |
---|
662 | n/a | inscode(d, ds, de, "WSAENOTSOCK", WSAENOTSOCK, "Socket operation on non-socket"); |
---|
663 | n/a | #endif |
---|
664 | n/a | #ifdef WSAEHOSTUNREACH |
---|
665 | n/a | inscode(d, ds, de, "WSAEHOSTUNREACH", WSAEHOSTUNREACH, "No route to host"); |
---|
666 | n/a | #endif |
---|
667 | n/a | #ifdef WSAELOOP |
---|
668 | n/a | inscode(d, ds, de, "WSAELOOP", WSAELOOP, "Too many symbolic links encountered"); |
---|
669 | n/a | #endif |
---|
670 | n/a | #ifdef WSAEMFILE |
---|
671 | n/a | inscode(d, ds, de, "WSAEMFILE", WSAEMFILE, "Too many open files"); |
---|
672 | n/a | #endif |
---|
673 | n/a | #ifdef WSAESTALE |
---|
674 | n/a | inscode(d, ds, de, "WSAESTALE", WSAESTALE, "Stale NFS file handle"); |
---|
675 | n/a | #endif |
---|
676 | n/a | #ifdef WSAVERNOTSUPPORTED |
---|
677 | n/a | inscode(d, ds, de, "WSAVERNOTSUPPORTED", WSAVERNOTSUPPORTED, "Error WSAVERNOTSUPPORTED"); |
---|
678 | n/a | #endif |
---|
679 | n/a | #ifdef WSAENETUNREACH |
---|
680 | n/a | inscode(d, ds, de, "WSAENETUNREACH", WSAENETUNREACH, "Network is unreachable"); |
---|
681 | n/a | #endif |
---|
682 | n/a | #ifdef WSAEPROCLIM |
---|
683 | n/a | inscode(d, ds, de, "WSAEPROCLIM", WSAEPROCLIM, "Error WSAEPROCLIM"); |
---|
684 | n/a | #endif |
---|
685 | n/a | #ifdef WSAEFAULT |
---|
686 | n/a | inscode(d, ds, de, "WSAEFAULT", WSAEFAULT, "Bad address"); |
---|
687 | n/a | #endif |
---|
688 | n/a | #ifdef WSANOTINITIALISED |
---|
689 | n/a | inscode(d, ds, de, "WSANOTINITIALISED", WSANOTINITIALISED, "Error WSANOTINITIALISED"); |
---|
690 | n/a | #endif |
---|
691 | n/a | #ifdef WSAEUSERS |
---|
692 | n/a | inscode(d, ds, de, "WSAEUSERS", WSAEUSERS, "Too many users"); |
---|
693 | n/a | #endif |
---|
694 | n/a | #ifdef WSAMAKEASYNCREPL |
---|
695 | n/a | inscode(d, ds, de, "WSAMAKEASYNCREPL", WSAMAKEASYNCREPL, "Error WSAMAKEASYNCREPL"); |
---|
696 | n/a | #endif |
---|
697 | n/a | #ifdef WSAENOPROTOOPT |
---|
698 | n/a | inscode(d, ds, de, "WSAENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available"); |
---|
699 | n/a | #endif |
---|
700 | n/a | #ifdef WSAECONNABORTED |
---|
701 | n/a | inscode(d, ds, de, "WSAECONNABORTED", WSAECONNABORTED, "Software caused connection abort"); |
---|
702 | n/a | #endif |
---|
703 | n/a | #ifdef WSAENAMETOOLONG |
---|
704 | n/a | inscode(d, ds, de, "WSAENAMETOOLONG", WSAENAMETOOLONG, "File name too long"); |
---|
705 | n/a | #endif |
---|
706 | n/a | #ifdef WSAENOTEMPTY |
---|
707 | n/a | inscode(d, ds, de, "WSAENOTEMPTY", WSAENOTEMPTY, "Directory not empty"); |
---|
708 | n/a | #endif |
---|
709 | n/a | #ifdef WSAESHUTDOWN |
---|
710 | n/a | inscode(d, ds, de, "WSAESHUTDOWN", WSAESHUTDOWN, "Cannot send after transport endpoint shutdown"); |
---|
711 | n/a | #endif |
---|
712 | n/a | #ifdef WSAEAFNOSUPPORT |
---|
713 | n/a | inscode(d, ds, de, "WSAEAFNOSUPPORT", WSAEAFNOSUPPORT, "Address family not supported by protocol"); |
---|
714 | n/a | #endif |
---|
715 | n/a | #ifdef WSAETOOMANYREFS |
---|
716 | n/a | inscode(d, ds, de, "WSAETOOMANYREFS", WSAETOOMANYREFS, "Too many references: cannot splice"); |
---|
717 | n/a | #endif |
---|
718 | n/a | #ifdef WSAEACCES |
---|
719 | n/a | inscode(d, ds, de, "WSAEACCES", WSAEACCES, "Permission denied"); |
---|
720 | n/a | #endif |
---|
721 | n/a | #ifdef WSATR |
---|
722 | n/a | inscode(d, ds, de, "WSATR", WSATR, "Error WSATR"); |
---|
723 | n/a | #endif |
---|
724 | n/a | #ifdef WSABASEERR |
---|
725 | n/a | inscode(d, ds, de, "WSABASEERR", WSABASEERR, "Error WSABASEERR"); |
---|
726 | n/a | #endif |
---|
727 | n/a | #ifdef WSADESCRIPTIO |
---|
728 | n/a | inscode(d, ds, de, "WSADESCRIPTIO", WSADESCRIPTIO, "Error WSADESCRIPTIO"); |
---|
729 | n/a | #endif |
---|
730 | n/a | #ifdef WSAEMSGSIZE |
---|
731 | n/a | inscode(d, ds, de, "WSAEMSGSIZE", WSAEMSGSIZE, "Message too long"); |
---|
732 | n/a | #endif |
---|
733 | n/a | #ifdef WSAEBADF |
---|
734 | n/a | inscode(d, ds, de, "WSAEBADF", WSAEBADF, "Bad file number"); |
---|
735 | n/a | #endif |
---|
736 | n/a | #ifdef WSAECONNRESET |
---|
737 | n/a | inscode(d, ds, de, "WSAECONNRESET", WSAECONNRESET, "Connection reset by peer"); |
---|
738 | n/a | #endif |
---|
739 | n/a | #ifdef WSAGETSELECTERRO |
---|
740 | n/a | inscode(d, ds, de, "WSAGETSELECTERRO", WSAGETSELECTERRO, "Error WSAGETSELECTERRO"); |
---|
741 | n/a | #endif |
---|
742 | n/a | #ifdef WSAETIMEDOUT |
---|
743 | n/a | inscode(d, ds, de, "WSAETIMEDOUT", WSAETIMEDOUT, "Connection timed out"); |
---|
744 | n/a | #endif |
---|
745 | n/a | #ifdef WSAENOBUFS |
---|
746 | n/a | inscode(d, ds, de, "WSAENOBUFS", WSAENOBUFS, "No buffer space available"); |
---|
747 | n/a | #endif |
---|
748 | n/a | #ifdef WSAEDISCON |
---|
749 | n/a | inscode(d, ds, de, "WSAEDISCON", WSAEDISCON, "Error WSAEDISCON"); |
---|
750 | n/a | #endif |
---|
751 | n/a | #ifdef WSAEINTR |
---|
752 | n/a | inscode(d, ds, de, "WSAEINTR", WSAEINTR, "Interrupted system call"); |
---|
753 | n/a | #endif |
---|
754 | n/a | #ifdef WSAEPROTOTYPE |
---|
755 | n/a | inscode(d, ds, de, "WSAEPROTOTYPE", WSAEPROTOTYPE, "Protocol wrong type for socket"); |
---|
756 | n/a | #endif |
---|
757 | n/a | #ifdef WSAHOS |
---|
758 | n/a | inscode(d, ds, de, "WSAHOS", WSAHOS, "Error WSAHOS"); |
---|
759 | n/a | #endif |
---|
760 | n/a | #ifdef WSAEADDRINUSE |
---|
761 | n/a | inscode(d, ds, de, "WSAEADDRINUSE", WSAEADDRINUSE, "Address already in use"); |
---|
762 | n/a | #endif |
---|
763 | n/a | #ifdef WSAEADDRNOTAVAIL |
---|
764 | n/a | inscode(d, ds, de, "WSAEADDRNOTAVAIL", WSAEADDRNOTAVAIL, "Cannot assign requested address"); |
---|
765 | n/a | #endif |
---|
766 | n/a | #ifdef WSAEALREADY |
---|
767 | n/a | inscode(d, ds, de, "WSAEALREADY", WSAEALREADY, "Operation already in progress"); |
---|
768 | n/a | #endif |
---|
769 | n/a | #ifdef WSAEPROTONOSUPPORT |
---|
770 | n/a | inscode(d, ds, de, "WSAEPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported"); |
---|
771 | n/a | #endif |
---|
772 | n/a | #ifdef WSASYSNOTREADY |
---|
773 | n/a | inscode(d, ds, de, "WSASYSNOTREADY", WSASYSNOTREADY, "Error WSASYSNOTREADY"); |
---|
774 | n/a | #endif |
---|
775 | n/a | #ifdef WSAEWOULDBLOCK |
---|
776 | n/a | inscode(d, ds, de, "WSAEWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block"); |
---|
777 | n/a | #endif |
---|
778 | n/a | #ifdef WSAEPFNOSUPPORT |
---|
779 | n/a | inscode(d, ds, de, "WSAEPFNOSUPPORT", WSAEPFNOSUPPORT, "Protocol family not supported"); |
---|
780 | n/a | #endif |
---|
781 | n/a | #ifdef WSAEOPNOTSUPP |
---|
782 | n/a | inscode(d, ds, de, "WSAEOPNOTSUPP", WSAEOPNOTSUPP, "Operation not supported on transport endpoint"); |
---|
783 | n/a | #endif |
---|
784 | n/a | #ifdef WSAEISCONN |
---|
785 | n/a | inscode(d, ds, de, "WSAEISCONN", WSAEISCONN, "Transport endpoint is already connected"); |
---|
786 | n/a | #endif |
---|
787 | n/a | #ifdef WSAEDQUOT |
---|
788 | n/a | inscode(d, ds, de, "WSAEDQUOT", WSAEDQUOT, "Quota exceeded"); |
---|
789 | n/a | #endif |
---|
790 | n/a | #ifdef WSAENOTCONN |
---|
791 | n/a | inscode(d, ds, de, "WSAENOTCONN", WSAENOTCONN, "Transport endpoint is not connected"); |
---|
792 | n/a | #endif |
---|
793 | n/a | #ifdef WSAEREMOTE |
---|
794 | n/a | inscode(d, ds, de, "WSAEREMOTE", WSAEREMOTE, "Object is remote"); |
---|
795 | n/a | #endif |
---|
796 | n/a | #ifdef WSAEINVAL |
---|
797 | n/a | inscode(d, ds, de, "WSAEINVAL", WSAEINVAL, "Invalid argument"); |
---|
798 | n/a | #endif |
---|
799 | n/a | #ifdef WSAEINPROGRESS |
---|
800 | n/a | inscode(d, ds, de, "WSAEINPROGRESS", WSAEINPROGRESS, "Operation now in progress"); |
---|
801 | n/a | #endif |
---|
802 | n/a | #ifdef WSAGETSELECTEVEN |
---|
803 | n/a | inscode(d, ds, de, "WSAGETSELECTEVEN", WSAGETSELECTEVEN, "Error WSAGETSELECTEVEN"); |
---|
804 | n/a | #endif |
---|
805 | n/a | #ifdef WSAESOCKTNOSUPPORT |
---|
806 | n/a | inscode(d, ds, de, "WSAESOCKTNOSUPPORT", WSAESOCKTNOSUPPORT, "Socket type not supported"); |
---|
807 | n/a | #endif |
---|
808 | n/a | #ifdef WSAGETASYNCERRO |
---|
809 | n/a | inscode(d, ds, de, "WSAGETASYNCERRO", WSAGETASYNCERRO, "Error WSAGETASYNCERRO"); |
---|
810 | n/a | #endif |
---|
811 | n/a | #ifdef WSAMAKESELECTREPL |
---|
812 | n/a | inscode(d, ds, de, "WSAMAKESELECTREPL", WSAMAKESELECTREPL, "Error WSAMAKESELECTREPL"); |
---|
813 | n/a | #endif |
---|
814 | n/a | #ifdef WSAGETASYNCBUFLE |
---|
815 | n/a | inscode(d, ds, de, "WSAGETASYNCBUFLE", WSAGETASYNCBUFLE, "Error WSAGETASYNCBUFLE"); |
---|
816 | n/a | #endif |
---|
817 | n/a | #ifdef WSAEDESTADDRREQ |
---|
818 | n/a | inscode(d, ds, de, "WSAEDESTADDRREQ", WSAEDESTADDRREQ, "Destination address required"); |
---|
819 | n/a | #endif |
---|
820 | n/a | #ifdef WSAECONNREFUSED |
---|
821 | n/a | inscode(d, ds, de, "WSAECONNREFUSED", WSAECONNREFUSED, "Connection refused"); |
---|
822 | n/a | #endif |
---|
823 | n/a | #ifdef WSAENETRESET |
---|
824 | n/a | inscode(d, ds, de, "WSAENETRESET", WSAENETRESET, "Network dropped connection because of reset"); |
---|
825 | n/a | #endif |
---|
826 | n/a | #ifdef WSAN |
---|
827 | n/a | inscode(d, ds, de, "WSAN", WSAN, "Error WSAN"); |
---|
828 | n/a | #endif |
---|
829 | n/a | #ifdef ENOMEDIUM |
---|
830 | n/a | inscode(d, ds, de, "ENOMEDIUM", ENOMEDIUM, "No medium found"); |
---|
831 | n/a | #endif |
---|
832 | n/a | #ifdef EMEDIUMTYPE |
---|
833 | n/a | inscode(d, ds, de, "EMEDIUMTYPE", EMEDIUMTYPE, "Wrong medium type"); |
---|
834 | n/a | #endif |
---|
835 | n/a | #ifdef ECANCELED |
---|
836 | n/a | inscode(d, ds, de, "ECANCELED", ECANCELED, "Operation Canceled"); |
---|
837 | n/a | #endif |
---|
838 | n/a | #ifdef ENOKEY |
---|
839 | n/a | inscode(d, ds, de, "ENOKEY", ENOKEY, "Required key not available"); |
---|
840 | n/a | #endif |
---|
841 | n/a | #ifdef EKEYEXPIRED |
---|
842 | n/a | inscode(d, ds, de, "EKEYEXPIRED", EKEYEXPIRED, "Key has expired"); |
---|
843 | n/a | #endif |
---|
844 | n/a | #ifdef EKEYREVOKED |
---|
845 | n/a | inscode(d, ds, de, "EKEYREVOKED", EKEYREVOKED, "Key has been revoked"); |
---|
846 | n/a | #endif |
---|
847 | n/a | #ifdef EKEYREJECTED |
---|
848 | n/a | inscode(d, ds, de, "EKEYREJECTED", EKEYREJECTED, "Key was rejected by service"); |
---|
849 | n/a | #endif |
---|
850 | n/a | #ifdef EOWNERDEAD |
---|
851 | n/a | inscode(d, ds, de, "EOWNERDEAD", EOWNERDEAD, "Owner died"); |
---|
852 | n/a | #endif |
---|
853 | n/a | #ifdef ENOTRECOVERABLE |
---|
854 | n/a | inscode(d, ds, de, "ENOTRECOVERABLE", ENOTRECOVERABLE, "State not recoverable"); |
---|
855 | n/a | #endif |
---|
856 | n/a | #ifdef ERFKILL |
---|
857 | n/a | inscode(d, ds, de, "ERFKILL", ERFKILL, "Operation not possible due to RF-kill"); |
---|
858 | n/a | #endif |
---|
859 | n/a | |
---|
860 | n/a | /* Solaris-specific errnos */ |
---|
861 | n/a | #ifdef ECANCELED |
---|
862 | n/a | inscode(d, ds, de, "ECANCELED", ECANCELED, "Operation canceled"); |
---|
863 | n/a | #endif |
---|
864 | n/a | #ifdef ENOTSUP |
---|
865 | n/a | inscode(d, ds, de, "ENOTSUP", ENOTSUP, "Operation not supported"); |
---|
866 | n/a | #endif |
---|
867 | n/a | #ifdef EOWNERDEAD |
---|
868 | n/a | inscode(d, ds, de, "EOWNERDEAD", EOWNERDEAD, "Process died with the lock"); |
---|
869 | n/a | #endif |
---|
870 | n/a | #ifdef ENOTRECOVERABLE |
---|
871 | n/a | inscode(d, ds, de, "ENOTRECOVERABLE", ENOTRECOVERABLE, "Lock is not recoverable"); |
---|
872 | n/a | #endif |
---|
873 | n/a | #ifdef ELOCKUNMAPPED |
---|
874 | n/a | inscode(d, ds, de, "ELOCKUNMAPPED", ELOCKUNMAPPED, "Locked lock was unmapped"); |
---|
875 | n/a | #endif |
---|
876 | n/a | #ifdef ENOTACTIVE |
---|
877 | n/a | inscode(d, ds, de, "ENOTACTIVE", ENOTACTIVE, "Facility is not active"); |
---|
878 | n/a | #endif |
---|
879 | n/a | |
---|
880 | n/a | /* MacOSX specific errnos */ |
---|
881 | n/a | #ifdef EAUTH |
---|
882 | n/a | inscode(d, ds, de, "EAUTH", EAUTH, "Authentication error"); |
---|
883 | n/a | #endif |
---|
884 | n/a | #ifdef EBADARCH |
---|
885 | n/a | inscode(d, ds, de, "EBADARCH", EBADARCH, "Bad CPU type in executable"); |
---|
886 | n/a | #endif |
---|
887 | n/a | #ifdef EBADEXEC |
---|
888 | n/a | inscode(d, ds, de, "EBADEXEC", EBADEXEC, "Bad executable (or shared library)"); |
---|
889 | n/a | #endif |
---|
890 | n/a | #ifdef EBADMACHO |
---|
891 | n/a | inscode(d, ds, de, "EBADMACHO", EBADMACHO, "Malformed Mach-o file"); |
---|
892 | n/a | #endif |
---|
893 | n/a | #ifdef EBADRPC |
---|
894 | n/a | inscode(d, ds, de, "EBADRPC", EBADRPC, "RPC struct is bad"); |
---|
895 | n/a | #endif |
---|
896 | n/a | #ifdef EDEVERR |
---|
897 | n/a | inscode(d, ds, de, "EDEVERR", EDEVERR, "Device error"); |
---|
898 | n/a | #endif |
---|
899 | n/a | #ifdef EFTYPE |
---|
900 | n/a | inscode(d, ds, de, "EFTYPE", EFTYPE, "Inappropriate file type or format"); |
---|
901 | n/a | #endif |
---|
902 | n/a | #ifdef ENEEDAUTH |
---|
903 | n/a | inscode(d, ds, de, "ENEEDAUTH", ENEEDAUTH, "Need authenticator"); |
---|
904 | n/a | #endif |
---|
905 | n/a | #ifdef ENOATTR |
---|
906 | n/a | inscode(d, ds, de, "ENOATTR", ENOATTR, "Attribute not found"); |
---|
907 | n/a | #endif |
---|
908 | n/a | #ifdef ENOPOLICY |
---|
909 | n/a | inscode(d, ds, de, "ENOPOLICY", ENOPOLICY, "Policy not found"); |
---|
910 | n/a | #endif |
---|
911 | n/a | #ifdef EPROCLIM |
---|
912 | n/a | inscode(d, ds, de, "EPROCLIM", EPROCLIM, "Too many processes"); |
---|
913 | n/a | #endif |
---|
914 | n/a | #ifdef EPROCUNAVAIL |
---|
915 | n/a | inscode(d, ds, de, "EPROCUNAVAIL", EPROCUNAVAIL, "Bad procedure for program"); |
---|
916 | n/a | #endif |
---|
917 | n/a | #ifdef EPROGMISMATCH |
---|
918 | n/a | inscode(d, ds, de, "EPROGMISMATCH", EPROGMISMATCH, "Program version wrong"); |
---|
919 | n/a | #endif |
---|
920 | n/a | #ifdef EPROGUNAVAIL |
---|
921 | n/a | inscode(d, ds, de, "EPROGUNAVAIL", EPROGUNAVAIL, "RPC prog. not avail"); |
---|
922 | n/a | #endif |
---|
923 | n/a | #ifdef EPWROFF |
---|
924 | n/a | inscode(d, ds, de, "EPWROFF", EPWROFF, "Device power is off"); |
---|
925 | n/a | #endif |
---|
926 | n/a | #ifdef ERPCMISMATCH |
---|
927 | n/a | inscode(d, ds, de, "ERPCMISMATCH", ERPCMISMATCH, "RPC version wrong"); |
---|
928 | n/a | #endif |
---|
929 | n/a | #ifdef ESHLIBVERS |
---|
930 | n/a | inscode(d, ds, de, "ESHLIBVERS", ESHLIBVERS, "Shared library version mismatch"); |
---|
931 | n/a | #endif |
---|
932 | n/a | |
---|
933 | n/a | Py_DECREF(de); |
---|
934 | n/a | return m; |
---|
935 | n/a | } |
---|