Mercurial > cpython-lru_cache-weakref
annotate Modules/errnomodule.c @ 16798:258dcafe2d0b legacy-trunk
Gustavo Niemeyer <niemeyer@conectiva.com>:
Fixed recno support (keys are integers rather than strings).
Work around DB bug that cause stdin to be closed by rnopen() when the
DB file needed to exist but did not (no longer segfaults).
This closes SF tracker patch #403445.
Also wrapped some long lines and added whitespace around operators -- FLD.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 27 Feb 2001 18:56:46 +0000 |
| parents | 6f6f965c5e2d |
| children | 7a11bfc66214 |
| rev | line source |
|---|---|
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
1 |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
2 /* Errno module */ |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
3 |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
4 #include "Python.h" |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
5 |
|
5308
df87d5d1bbdf
(Jack:) Mac only: get GUSI errno.h values too.
Guido van Rossum <guido@python.org>
parents:
4731
diff
changeset
|
6 /* Mac with GUSI has more errors than those in errno.h */ |
|
df87d5d1bbdf
(Jack:) Mac only: get GUSI errno.h values too.
Guido van Rossum <guido@python.org>
parents:
4731
diff
changeset
|
7 #ifdef USE_GUSI |
|
df87d5d1bbdf
(Jack:) Mac only: get GUSI errno.h values too.
Guido van Rossum <guido@python.org>
parents:
4731
diff
changeset
|
8 #include <sys/errno.h> |
|
df87d5d1bbdf
(Jack:) Mac only: get GUSI errno.h values too.
Guido van Rossum <guido@python.org>
parents:
4731
diff
changeset
|
9 #endif |
|
df87d5d1bbdf
(Jack:) Mac only: get GUSI errno.h values too.
Guido van Rossum <guido@python.org>
parents:
4731
diff
changeset
|
10 |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
11 /* Windows socket errors (WSA*): XXX is this the correct path ??? */ |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
12 #ifdef MS_WINDOWS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
13 #include <winsock.h> |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
14 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
15 |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
16 /* |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
17 * Pull in the system error definitions |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
18 */ |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
19 |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
20 static PyMethodDef errno_methods[] = { |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
21 {NULL, NULL} |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
22 }; |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
23 |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
24 /* Helper function doing the dictionary inserting */ |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
25 |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
26 static void |
| 13471 | 27 _inscode(PyObject *d, PyObject *de, char *name, int code) |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
28 { |
|
14346
5397fdf88ec2
Do the absolute minimal amount of modifications to eradicate
Barry Warsaw <barry@python.org>
parents:
13651
diff
changeset
|
29 PyObject *u = PyString_FromString(name); |
|
5397fdf88ec2
Do the absolute minimal amount of modifications to eradicate
Barry Warsaw <barry@python.org>
parents:
13651
diff
changeset
|
30 PyObject *v = PyInt_FromLong((long) code); |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
31 |
|
14346
5397fdf88ec2
Do the absolute minimal amount of modifications to eradicate
Barry Warsaw <barry@python.org>
parents:
13651
diff
changeset
|
32 /* Don't bother checking for errors; they'll be caught at the end |
|
5397fdf88ec2
Do the absolute minimal amount of modifications to eradicate
Barry Warsaw <barry@python.org>
parents:
13651
diff
changeset
|
33 * of the module initialization function by the caller of |
|
5397fdf88ec2
Do the absolute minimal amount of modifications to eradicate
Barry Warsaw <barry@python.org>
parents:
13651
diff
changeset
|
34 * initerrno(). |
|
5397fdf88ec2
Do the absolute minimal amount of modifications to eradicate
Barry Warsaw <barry@python.org>
parents:
13651
diff
changeset
|
35 */ |
|
5397fdf88ec2
Do the absolute minimal amount of modifications to eradicate
Barry Warsaw <barry@python.org>
parents:
13651
diff
changeset
|
36 if (u && v) { |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
37 /* insert in modules dict */ |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
38 PyDict_SetItem(d, u, v); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
39 /* insert in errorcode dict */ |
|
6558
ee307f9845a3
Got rid of the errorstr dictionary, which is redundant now that
Guido van Rossum <guido@python.org>
parents:
6340
diff
changeset
|
40 PyDict_SetItem(de, v, u); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
41 } |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
42 Py_XDECREF(u); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
43 Py_XDECREF(v); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
44 } |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
45 |
|
8947
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
46 static char errno__doc__ [] = |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
47 "This module makes available standard errno system symbols.\n\ |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
48 \n\ |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
49 The value of each symbol is the corresponding integer value,\n\ |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
50 e.g., on most systems, errno.ENOENT equals the integer 2.\n\ |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
51 \n\ |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
52 The dictionary errno.errorcode maps numeric codes to symbol names,\n\ |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
53 e.g., errno.errorcode[2] could be the string 'ENOENT'.\n\ |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
54 \n\ |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
55 Symbols that are not relevant to the underlying system are not defined.\n\ |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
56 \n\ |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
57 To map error codes to error messages, use the function os.strerror(),\n\ |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
58 e.g. os.strerror(2) could return 'No such file or directory'."; |
|
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
59 |
|
9588
38023a425e48
Add DL_EXPORT() to all modules that could possibly be used
Guido van Rossum <guido@python.org>
parents:
8947
diff
changeset
|
60 DL_EXPORT(void) |
|
13651
8a063423e0b7
Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',
Thomas Wouters <thomas@python.org>
parents:
13471
diff
changeset
|
61 initerrno(void) |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
62 { |
|
6558
ee307f9845a3
Got rid of the errorstr dictionary, which is redundant now that
Guido van Rossum <guido@python.org>
parents:
6340
diff
changeset
|
63 PyObject *m, *d, *de; |
|
8947
c91809cd67e5
Added a module docstring (that's all this module needs).
Guido van Rossum <guido@python.org>
parents:
6558
diff
changeset
|
64 m = Py_InitModule3("errno", errno_methods, errno__doc__); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
65 d = PyModule_GetDict(m); |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
66 de = PyDict_New(); |
|
14346
5397fdf88ec2
Do the absolute minimal amount of modifications to eradicate
Barry Warsaw <barry@python.org>
parents:
13651
diff
changeset
|
67 if (!d || !de || PyDict_SetItemString(d, "errorcode", de) < 0) |
|
5397fdf88ec2
Do the absolute minimal amount of modifications to eradicate
Barry Warsaw <barry@python.org>
parents:
13651
diff
changeset
|
68 return; |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
69 |
|
6558
ee307f9845a3
Got rid of the errorstr dictionary, which is redundant now that
Guido van Rossum <guido@python.org>
parents:
6340
diff
changeset
|
70 /* Macro so I don't have to edit each and every line below... */ |
|
ee307f9845a3
Got rid of the errorstr dictionary, which is redundant now that
Guido van Rossum <guido@python.org>
parents:
6340
diff
changeset
|
71 #define inscode(d, ds, de, name, code, comment) _inscode(d, de, name, code) |
|
ee307f9845a3
Got rid of the errorstr dictionary, which is redundant now that
Guido van Rossum <guido@python.org>
parents:
6340
diff
changeset
|
72 |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
73 /* |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
74 * The names and comments are borrowed from linux/include/errno.h, |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
75 * which should be pretty all-inclusive |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
76 */ |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
77 |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
78 #ifdef ENODEV |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
79 inscode(d, ds, de, "ENODEV", ENODEV, "No such device"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
80 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
81 #ifdef ENOCSI |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
82 inscode(d, ds, de, "ENOCSI", ENOCSI, "No CSI structure available"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
83 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
84 #ifdef EHOSTUNREACH |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
85 inscode(d, ds, de, "EHOSTUNREACH", EHOSTUNREACH, "No route to host"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
86 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
87 #ifdef WSAEHOSTUNREACH |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
88 inscode(d, ds, de, "EHOSTUNREACH", WSAEHOSTUNREACH, "No route to host"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
89 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
90 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
91 #ifdef ENOMSG |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
92 inscode(d, ds, de, "ENOMSG", ENOMSG, "No message of desired type"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
93 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
94 #ifdef EUCLEAN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
95 inscode(d, ds, de, "EUCLEAN", EUCLEAN, "Structure needs cleaning"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
96 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
97 #ifdef EL2NSYNC |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
98 inscode(d, ds, de, "EL2NSYNC", EL2NSYNC, "Level 2 not synchronized"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
99 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
100 #ifdef EL2HLT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
101 inscode(d, ds, de, "EL2HLT", EL2HLT, "Level 2 halted"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
102 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
103 #ifdef ENODATA |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
104 inscode(d, ds, de, "ENODATA", ENODATA, "No data available"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
105 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
106 #ifdef ENOTBLK |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
107 inscode(d, ds, de, "ENOTBLK", ENOTBLK, "Block device required"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
108 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
109 #ifdef ENOSYS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
110 inscode(d, ds, de, "ENOSYS", ENOSYS, "Function not implemented"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
111 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
112 #ifdef EPIPE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
113 inscode(d, ds, de, "EPIPE", EPIPE, "Broken pipe"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
114 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
115 #ifdef EINVAL |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
116 inscode(d, ds, de, "EINVAL", EINVAL, "Invalid argument"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
117 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
118 #ifdef WSAEINVAL |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
119 inscode(d, ds, de, "EINVAL", WSAEINVAL, "Invalid argument"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
120 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
121 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
122 #ifdef EOVERFLOW |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
123 inscode(d, ds, de, "EOVERFLOW", EOVERFLOW, "Value too large for defined data type"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
124 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
125 #ifdef EADV |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
126 inscode(d, ds, de, "EADV", EADV, "Advertise error"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
127 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
128 #ifdef EINTR |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
129 inscode(d, ds, de, "EINTR", EINTR, "Interrupted system call"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
130 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
131 #ifdef WSAEINTR |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
132 inscode(d, ds, de, "EINTR", WSAEINTR, "Interrupted system call"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
133 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
134 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
135 #ifdef EUSERS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
136 inscode(d, ds, de, "EUSERS", EUSERS, "Too many users"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
137 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
138 #ifdef WSAEUSERS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
139 inscode(d, ds, de, "EUSERS", WSAEUSERS, "Too many users"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
140 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
141 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
142 #ifdef ENOTEMPTY |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
143 inscode(d, ds, de, "ENOTEMPTY", ENOTEMPTY, "Directory not empty"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
144 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
145 #ifdef WSAENOTEMPTY |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
146 inscode(d, ds, de, "ENOTEMPTY", WSAENOTEMPTY, "Directory not empty"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
147 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
148 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
149 #ifdef ENOBUFS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
150 inscode(d, ds, de, "ENOBUFS", ENOBUFS, "No buffer space available"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
151 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
152 #ifdef WSAENOBUFS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
153 inscode(d, ds, de, "ENOBUFS", WSAENOBUFS, "No buffer space available"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
154 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
155 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
156 #ifdef EPROTO |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
157 inscode(d, ds, de, "EPROTO", EPROTO, "Protocol error"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
158 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
159 #ifdef EREMOTE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
160 inscode(d, ds, de, "EREMOTE", EREMOTE, "Object is remote"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
161 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
162 #ifdef WSAEREMOTE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
163 inscode(d, ds, de, "EREMOTE", WSAEREMOTE, "Object is remote"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
164 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
165 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
166 #ifdef ENAVAIL |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
167 inscode(d, ds, de, "ENAVAIL", ENAVAIL, "No XENIX semaphores available"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
168 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
169 #ifdef ECHILD |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
170 inscode(d, ds, de, "ECHILD", ECHILD, "No child processes"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
171 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
172 #ifdef ELOOP |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
173 inscode(d, ds, de, "ELOOP", ELOOP, "Too many symbolic links encountered"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
174 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
175 #ifdef WSAELOOP |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
176 inscode(d, ds, de, "ELOOP", WSAELOOP, "Too many symbolic links encountered"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
177 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
178 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
179 #ifdef EXDEV |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
180 inscode(d, ds, de, "EXDEV", EXDEV, "Cross-device link"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
181 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
182 #ifdef E2BIG |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
183 inscode(d, ds, de, "E2BIG", E2BIG, "Arg list too long"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
184 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
185 #ifdef ESRCH |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
186 inscode(d, ds, de, "ESRCH", ESRCH, "No such process"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
187 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
188 #ifdef EMSGSIZE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
189 inscode(d, ds, de, "EMSGSIZE", EMSGSIZE, "Message too long"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
190 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
191 #ifdef WSAEMSGSIZE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
192 inscode(d, ds, de, "EMSGSIZE", WSAEMSGSIZE, "Message too long"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
193 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
194 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
195 #ifdef EAFNOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
196 inscode(d, ds, de, "EAFNOSUPPORT", EAFNOSUPPORT, "Address family not supported by protocol"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
197 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
198 #ifdef WSAEAFNOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
199 inscode(d, ds, de, "EAFNOSUPPORT", WSAEAFNOSUPPORT, "Address family not supported by protocol"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
200 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
201 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
202 #ifdef EBADR |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
203 inscode(d, ds, de, "EBADR", EBADR, "Invalid request descriptor"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
204 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
205 #ifdef EHOSTDOWN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
206 inscode(d, ds, de, "EHOSTDOWN", EHOSTDOWN, "Host is down"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
207 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
208 #ifdef WSAEHOSTDOWN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
209 inscode(d, ds, de, "EHOSTDOWN", WSAEHOSTDOWN, "Host is down"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
210 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
211 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
212 #ifdef EPFNOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
213 inscode(d, ds, de, "EPFNOSUPPORT", EPFNOSUPPORT, "Protocol family not supported"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
214 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
215 #ifdef WSAEPFNOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
216 inscode(d, ds, de, "EPFNOSUPPORT", WSAEPFNOSUPPORT, "Protocol family not supported"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
217 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
218 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
219 #ifdef ENOPROTOOPT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
220 inscode(d, ds, de, "ENOPROTOOPT", ENOPROTOOPT, "Protocol not available"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
221 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
222 #ifdef WSAENOPROTOOPT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
223 inscode(d, ds, de, "ENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
224 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
225 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
226 #ifdef EBUSY |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
227 inscode(d, ds, de, "EBUSY", EBUSY, "Device or resource busy"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
228 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
229 #ifdef EWOULDBLOCK |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
230 inscode(d, ds, de, "EWOULDBLOCK", EWOULDBLOCK, "Operation would block"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
231 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
232 #ifdef WSAEWOULDBLOCK |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
233 inscode(d, ds, de, "EWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
234 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
235 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
236 #ifdef EBADFD |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
237 inscode(d, ds, de, "EBADFD", EBADFD, "File descriptor in bad state"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
238 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
239 #ifdef EDOTDOT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
240 inscode(d, ds, de, "EDOTDOT", EDOTDOT, "RFS specific error"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
241 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
242 #ifdef EISCONN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
243 inscode(d, ds, de, "EISCONN", EISCONN, "Transport endpoint is already connected"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
244 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
245 #ifdef WSAEISCONN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
246 inscode(d, ds, de, "EISCONN", WSAEISCONN, "Transport endpoint is already connected"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
247 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
248 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
249 #ifdef ENOANO |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
250 inscode(d, ds, de, "ENOANO", ENOANO, "No anode"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
251 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
252 #ifdef ESHUTDOWN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
253 inscode(d, ds, de, "ESHUTDOWN", ESHUTDOWN, "Cannot send after transport endpoint shutdown"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
254 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
255 #ifdef WSAESHUTDOWN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
256 inscode(d, ds, de, "ESHUTDOWN", WSAESHUTDOWN, "Cannot send after transport endpoint shutdown"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
257 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
258 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
259 #ifdef ECHRNG |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
260 inscode(d, ds, de, "ECHRNG", ECHRNG, "Channel number out of range"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
261 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
262 #ifdef ELIBBAD |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
263 inscode(d, ds, de, "ELIBBAD", ELIBBAD, "Accessing a corrupted shared library"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
264 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
265 #ifdef ENONET |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
266 inscode(d, ds, de, "ENONET", ENONET, "Machine is not on the network"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
267 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
268 #ifdef EBADE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
269 inscode(d, ds, de, "EBADE", EBADE, "Invalid exchange"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
270 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
271 #ifdef EBADF |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
272 inscode(d, ds, de, "EBADF", EBADF, "Bad file number"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
273 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
274 #ifdef WSAEBADF |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
275 inscode(d, ds, de, "EBADF", WSAEBADF, "Bad file number"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
276 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
277 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
278 #ifdef EMULTIHOP |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
279 inscode(d, ds, de, "EMULTIHOP", EMULTIHOP, "Multihop attempted"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
280 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
281 #ifdef EIO |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
282 inscode(d, ds, de, "EIO", EIO, "I/O error"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
283 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
284 #ifdef EUNATCH |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
285 inscode(d, ds, de, "EUNATCH", EUNATCH, "Protocol driver not attached"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
286 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
287 #ifdef EPROTOTYPE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
288 inscode(d, ds, de, "EPROTOTYPE", EPROTOTYPE, "Protocol wrong type for socket"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
289 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
290 #ifdef WSAEPROTOTYPE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
291 inscode(d, ds, de, "EPROTOTYPE", WSAEPROTOTYPE, "Protocol wrong type for socket"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
292 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
293 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
294 #ifdef ENOSPC |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
295 inscode(d, ds, de, "ENOSPC", ENOSPC, "No space left on device"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
296 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
297 #ifdef ENOEXEC |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
298 inscode(d, ds, de, "ENOEXEC", ENOEXEC, "Exec format error"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
299 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
300 #ifdef EALREADY |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
301 inscode(d, ds, de, "EALREADY", EALREADY, "Operation already in progress"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
302 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
303 #ifdef WSAEALREADY |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
304 inscode(d, ds, de, "EALREADY", WSAEALREADY, "Operation already in progress"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
305 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
306 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
307 #ifdef ENETDOWN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
308 inscode(d, ds, de, "ENETDOWN", ENETDOWN, "Network is down"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
309 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
310 #ifdef WSAENETDOWN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
311 inscode(d, ds, de, "ENETDOWN", WSAENETDOWN, "Network is down"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
312 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
313 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
314 #ifdef ENOTNAM |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
315 inscode(d, ds, de, "ENOTNAM", ENOTNAM, "Not a XENIX named type file"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
316 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
317 #ifdef EACCES |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
318 inscode(d, ds, de, "EACCES", EACCES, "Permission denied"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
319 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
320 #ifdef WSAEACCES |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
321 inscode(d, ds, de, "EACCES", WSAEACCES, "Permission denied"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
322 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
323 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
324 #ifdef ELNRNG |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
325 inscode(d, ds, de, "ELNRNG", ELNRNG, "Link number out of range"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
326 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
327 #ifdef EILSEQ |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
328 inscode(d, ds, de, "EILSEQ", EILSEQ, "Illegal byte sequence"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
329 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
330 #ifdef ENOTDIR |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
331 inscode(d, ds, de, "ENOTDIR", ENOTDIR, "Not a directory"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
332 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
333 #ifdef ENOTUNIQ |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
334 inscode(d, ds, de, "ENOTUNIQ", ENOTUNIQ, "Name not unique on network"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
335 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
336 #ifdef EPERM |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
337 inscode(d, ds, de, "EPERM", EPERM, "Operation not permitted"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
338 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
339 #ifdef EDOM |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
340 inscode(d, ds, de, "EDOM", EDOM, "Math argument out of domain of func"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
341 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
342 #ifdef EXFULL |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
343 inscode(d, ds, de, "EXFULL", EXFULL, "Exchange full"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
344 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
345 #ifdef ECONNREFUSED |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
346 inscode(d, ds, de, "ECONNREFUSED", ECONNREFUSED, "Connection refused"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
347 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
348 #ifdef WSAECONNREFUSED |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
349 inscode(d, ds, de, "ECONNREFUSED", WSAECONNREFUSED, "Connection refused"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
350 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
351 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
352 #ifdef EISDIR |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
353 inscode(d, ds, de, "EISDIR", EISDIR, "Is a directory"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
354 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
355 #ifdef EPROTONOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
356 inscode(d, ds, de, "EPROTONOSUPPORT", EPROTONOSUPPORT, "Protocol not supported"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
357 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
358 #ifdef WSAEPROTONOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
359 inscode(d, ds, de, "EPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
360 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
361 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
362 #ifdef EROFS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
363 inscode(d, ds, de, "EROFS", EROFS, "Read-only file system"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
364 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
365 #ifdef EADDRNOTAVAIL |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
366 inscode(d, ds, de, "EADDRNOTAVAIL", EADDRNOTAVAIL, "Cannot assign requested address"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
367 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
368 #ifdef WSAEADDRNOTAVAIL |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
369 inscode(d, ds, de, "EADDRNOTAVAIL", WSAEADDRNOTAVAIL, "Cannot assign requested address"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
370 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
371 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
372 #ifdef EIDRM |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
373 inscode(d, ds, de, "EIDRM", EIDRM, "Identifier removed"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
374 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
375 #ifdef ECOMM |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
376 inscode(d, ds, de, "ECOMM", ECOMM, "Communication error on send"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
377 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
378 #ifdef ESRMNT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
379 inscode(d, ds, de, "ESRMNT", ESRMNT, "Srmount error"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
380 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
381 #ifdef EREMOTEIO |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
382 inscode(d, ds, de, "EREMOTEIO", EREMOTEIO, "Remote I/O error"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
383 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
384 #ifdef EL3RST |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
385 inscode(d, ds, de, "EL3RST", EL3RST, "Level 3 reset"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
386 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
387 #ifdef EBADMSG |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
388 inscode(d, ds, de, "EBADMSG", EBADMSG, "Not a data message"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
389 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
390 #ifdef ENFILE |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
391 inscode(d, ds, de, "ENFILE", ENFILE, "File table overflow"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
392 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
393 #ifdef ELIBMAX |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
394 inscode(d, ds, de, "ELIBMAX", ELIBMAX, "Attempting to link in too many shared libraries"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
395 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
396 #ifdef ESPIPE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
397 inscode(d, ds, de, "ESPIPE", ESPIPE, "Illegal seek"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
398 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
399 #ifdef ENOLINK |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
400 inscode(d, ds, de, "ENOLINK", ENOLINK, "Link has been severed"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
401 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
402 #ifdef ENETRESET |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
403 inscode(d, ds, de, "ENETRESET", ENETRESET, "Network dropped connection because of reset"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
404 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
405 #ifdef WSAENETRESET |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
406 inscode(d, ds, de, "ENETRESET", WSAENETRESET, "Network dropped connection because of reset"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
407 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
408 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
409 #ifdef ETIMEDOUT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
410 inscode(d, ds, de, "ETIMEDOUT", ETIMEDOUT, "Connection timed out"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
411 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
412 #ifdef WSAETIMEDOUT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
413 inscode(d, ds, de, "ETIMEDOUT", WSAETIMEDOUT, "Connection timed out"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
414 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
415 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
416 #ifdef ENOENT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
417 inscode(d, ds, de, "ENOENT", ENOENT, "No such file or directory"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
418 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
419 #ifdef EEXIST |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
420 inscode(d, ds, de, "EEXIST", EEXIST, "File exists"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
421 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
422 #ifdef EDQUOT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
423 inscode(d, ds, de, "EDQUOT", EDQUOT, "Quota exceeded"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
424 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
425 #ifdef WSAEDQUOT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
426 inscode(d, ds, de, "EDQUOT", WSAEDQUOT, "Quota exceeded"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
427 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
428 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
429 #ifdef ENOSTR |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
430 inscode(d, ds, de, "ENOSTR", ENOSTR, "Device not a stream"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
431 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
432 #ifdef EBADSLT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
433 inscode(d, ds, de, "EBADSLT", EBADSLT, "Invalid slot"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
434 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
435 #ifdef EBADRQC |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
436 inscode(d, ds, de, "EBADRQC", EBADRQC, "Invalid request code"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
437 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
438 #ifdef ELIBACC |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
439 inscode(d, ds, de, "ELIBACC", ELIBACC, "Can not access a needed shared library"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
440 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
441 #ifdef EFAULT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
442 inscode(d, ds, de, "EFAULT", EFAULT, "Bad address"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
443 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
444 #ifdef WSAEFAULT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
445 inscode(d, ds, de, "EFAULT", WSAEFAULT, "Bad address"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
446 #endif |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
447 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
448 #ifdef EFBIG |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
449 inscode(d, ds, de, "EFBIG", EFBIG, "File too large"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
450 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
451 #ifdef EDEADLK |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
452 inscode(d, ds, de, "EDEADLK", EDEADLK, "Resource deadlock would occur"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
453 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
454 #ifdef ENOTCONN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
455 inscode(d, ds, de, "ENOTCONN", ENOTCONN, "Transport endpoint is not connected"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
456 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
457 #ifdef WSAENOTCONN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
458 inscode(d, ds, de, "ENOTCONN", WSAENOTCONN, "Transport endpoint is not connected"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
459 #endif |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
460 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
461 #ifdef EDESTADDRREQ |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
462 inscode(d, ds, de, "EDESTADDRREQ", EDESTADDRREQ, "Destination address required"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
463 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
464 #ifdef WSAEDESTADDRREQ |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
465 inscode(d, ds, de, "EDESTADDRREQ", WSAEDESTADDRREQ, "Destination address required"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
466 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
467 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
468 #ifdef ELIBSCN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
469 inscode(d, ds, de, "ELIBSCN", ELIBSCN, ".lib section in a.out corrupted"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
470 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
471 #ifdef ENOLCK |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
472 inscode(d, ds, de, "ENOLCK", ENOLCK, "No record locks available"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
473 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
474 #ifdef EISNAM |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
475 inscode(d, ds, de, "EISNAM", EISNAM, "Is a named type file"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
476 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
477 #ifdef ECONNABORTED |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
478 inscode(d, ds, de, "ECONNABORTED", ECONNABORTED, "Software caused connection abort"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
479 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
480 #ifdef WSAECONNABORTED |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
481 inscode(d, ds, de, "ECONNABORTED", WSAECONNABORTED, "Software caused connection abort"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
482 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
483 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
484 #ifdef ENETUNREACH |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
485 inscode(d, ds, de, "ENETUNREACH", ENETUNREACH, "Network is unreachable"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
486 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
487 #ifdef WSAENETUNREACH |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
488 inscode(d, ds, de, "ENETUNREACH", WSAENETUNREACH, "Network is unreachable"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
489 #endif |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
490 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
491 #ifdef ESTALE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
492 inscode(d, ds, de, "ESTALE", ESTALE, "Stale NFS file handle"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
493 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
494 #ifdef WSAESTALE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
495 inscode(d, ds, de, "ESTALE", WSAESTALE, "Stale NFS file handle"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
496 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
497 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
498 #ifdef ENOSR |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
499 inscode(d, ds, de, "ENOSR", ENOSR, "Out of streams resources"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
500 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
501 #ifdef ENOMEM |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
502 inscode(d, ds, de, "ENOMEM", ENOMEM, "Out of memory"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
503 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
504 #ifdef ENOTSOCK |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
505 inscode(d, ds, de, "ENOTSOCK", ENOTSOCK, "Socket operation on non-socket"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
506 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
507 #ifdef WSAENOTSOCK |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
508 inscode(d, ds, de, "ENOTSOCK", WSAENOTSOCK, "Socket operation on non-socket"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
509 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
510 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
511 #ifdef ESTRPIPE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
512 inscode(d, ds, de, "ESTRPIPE", ESTRPIPE, "Streams pipe error"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
513 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
514 #ifdef EMLINK |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
515 inscode(d, ds, de, "EMLINK", EMLINK, "Too many links"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
516 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
517 #ifdef ERANGE |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
518 inscode(d, ds, de, "ERANGE", ERANGE, "Math result not representable"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
519 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
520 #ifdef ELIBEXEC |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
521 inscode(d, ds, de, "ELIBEXEC", ELIBEXEC, "Cannot exec a shared library directly"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
522 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
523 #ifdef EL3HLT |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
524 inscode(d, ds, de, "EL3HLT", EL3HLT, "Level 3 halted"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
525 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
526 #ifdef ECONNRESET |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
527 inscode(d, ds, de, "ECONNRESET", ECONNRESET, "Connection reset by peer"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
528 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
529 #ifdef WSAECONNRESET |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
530 inscode(d, ds, de, "ECONNRESET", WSAECONNRESET, "Connection reset by peer"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
531 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
532 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
533 #ifdef EADDRINUSE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
534 inscode(d, ds, de, "EADDRINUSE", EADDRINUSE, "Address already in use"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
535 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
536 #ifdef WSAEADDRINUSE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
537 inscode(d, ds, de, "EADDRINUSE", WSAEADDRINUSE, "Address already in use"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
538 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
539 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
540 #ifdef EOPNOTSUPP |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
541 inscode(d, ds, de, "EOPNOTSUPP", EOPNOTSUPP, "Operation not supported on transport endpoint"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
542 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
543 #ifdef WSAEOPNOTSUPP |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
544 inscode(d, ds, de, "EOPNOTSUPP", WSAEOPNOTSUPP, "Operation not supported on transport endpoint"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
545 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
546 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
547 #ifdef EREMCHG |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
548 inscode(d, ds, de, "EREMCHG", EREMCHG, "Remote address changed"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
549 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
550 #ifdef EAGAIN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
551 inscode(d, ds, de, "EAGAIN", EAGAIN, "Try again"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
552 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
553 #ifdef ENAMETOOLONG |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
554 inscode(d, ds, de, "ENAMETOOLONG", ENAMETOOLONG, "File name too long"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
555 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
556 #ifdef WSAENAMETOOLONG |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
557 inscode(d, ds, de, "ENAMETOOLONG", WSAENAMETOOLONG, "File name too long"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
558 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
559 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
560 #ifdef ENOTTY |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
561 inscode(d, ds, de, "ENOTTY", ENOTTY, "Not a typewriter"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
562 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
563 #ifdef ERESTART |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
564 inscode(d, ds, de, "ERESTART", ERESTART, "Interrupted system call should be restarted"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
565 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
566 #ifdef ESOCKTNOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
567 inscode(d, ds, de, "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, "Socket type not supported"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
568 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
569 #ifdef WSAESOCKTNOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
570 inscode(d, ds, de, "ESOCKTNOSUPPORT", WSAESOCKTNOSUPPORT, "Socket type not supported"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
571 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
572 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
573 #ifdef ETIME |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
574 inscode(d, ds, de, "ETIME", ETIME, "Timer expired"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
575 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
576 #ifdef EBFONT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
577 inscode(d, ds, de, "EBFONT", EBFONT, "Bad font file format"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
578 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
579 #ifdef EDEADLOCK |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
580 inscode(d, ds, de, "EDEADLOCK", EDEADLOCK, "Error EDEADLOCK"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
581 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
582 #ifdef ETOOMANYREFS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
583 inscode(d, ds, de, "ETOOMANYREFS", ETOOMANYREFS, "Too many references: cannot splice"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
584 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
585 #ifdef WSAETOOMANYREFS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
586 inscode(d, ds, de, "ETOOMANYREFS", WSAETOOMANYREFS, "Too many references: cannot splice"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
587 #endif |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
588 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
589 #ifdef EMFILE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
590 inscode(d, ds, de, "EMFILE", EMFILE, "Too many open files"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
591 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
592 #ifdef WSAEMFILE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
593 inscode(d, ds, de, "EMFILE", WSAEMFILE, "Too many open files"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
594 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
595 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
596 #ifdef ETXTBSY |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
597 inscode(d, ds, de, "ETXTBSY", ETXTBSY, "Text file busy"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
598 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
599 #ifdef EINPROGRESS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
600 inscode(d, ds, de, "EINPROGRESS", EINPROGRESS, "Operation now in progress"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
601 #else |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
602 #ifdef WSAEINPROGRESS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
603 inscode(d, ds, de, "EINPROGRESS", WSAEINPROGRESS, "Operation now in progress"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
604 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
605 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
606 #ifdef ENXIO |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
607 inscode(d, ds, de, "ENXIO", ENXIO, "No such device or address"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
608 #endif |
|
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
609 #ifdef ENOPKG |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
610 inscode(d, ds, de, "ENOPKG", ENOPKG, "Package not installed"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
611 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
612 #ifdef WSASY |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
613 inscode(d, ds, de, "WSASY", WSASY, "Error WSASY"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
614 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
615 #ifdef WSAEHOSTDOWN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
616 inscode(d, ds, de, "WSAEHOSTDOWN", WSAEHOSTDOWN, "Host is down"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
617 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
618 #ifdef WSAENETDOWN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
619 inscode(d, ds, de, "WSAENETDOWN", WSAENETDOWN, "Network is down"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
620 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
621 #ifdef WSAENOTSOCK |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
622 inscode(d, ds, de, "WSAENOTSOCK", WSAENOTSOCK, "Socket operation on non-socket"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
623 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
624 #ifdef WSAEHOSTUNREACH |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
625 inscode(d, ds, de, "WSAEHOSTUNREACH", WSAEHOSTUNREACH, "No route to host"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
626 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
627 #ifdef WSAELOOP |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
628 inscode(d, ds, de, "WSAELOOP", WSAELOOP, "Too many symbolic links encountered"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
629 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
630 #ifdef WSAEMFILE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
631 inscode(d, ds, de, "WSAEMFILE", WSAEMFILE, "Too many open files"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
632 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
633 #ifdef WSAESTALE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
634 inscode(d, ds, de, "WSAESTALE", WSAESTALE, "Stale NFS file handle"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
635 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
636 #ifdef WSAVERNOTSUPPORTED |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
637 inscode(d, ds, de, "WSAVERNOTSUPPORTED", WSAVERNOTSUPPORTED, "Error WSAVERNOTSUPPORTED"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
638 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
639 #ifdef WSAENETUNREACH |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
640 inscode(d, ds, de, "WSAENETUNREACH", WSAENETUNREACH, "Network is unreachable"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
641 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
642 #ifdef WSAEPROCLIM |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
643 inscode(d, ds, de, "WSAEPROCLIM", WSAEPROCLIM, "Error WSAEPROCLIM"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
644 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
645 #ifdef WSAEFAULT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
646 inscode(d, ds, de, "WSAEFAULT", WSAEFAULT, "Bad address"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
647 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
648 #ifdef WSANOTINITIALISED |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
649 inscode(d, ds, de, "WSANOTINITIALISED", WSANOTINITIALISED, "Error WSANOTINITIALISED"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
650 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
651 #ifdef WSAEUSERS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
652 inscode(d, ds, de, "WSAEUSERS", WSAEUSERS, "Too many users"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
653 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
654 #ifdef WSAMAKEASYNCREPL |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
655 inscode(d, ds, de, "WSAMAKEASYNCREPL", WSAMAKEASYNCREPL, "Error WSAMAKEASYNCREPL"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
656 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
657 #ifdef WSAENOPROTOOPT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
658 inscode(d, ds, de, "WSAENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
659 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
660 #ifdef WSAECONNABORTED |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
661 inscode(d, ds, de, "WSAECONNABORTED", WSAECONNABORTED, "Software caused connection abort"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
662 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
663 #ifdef WSAENAMETOOLONG |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
664 inscode(d, ds, de, "WSAENAMETOOLONG", WSAENAMETOOLONG, "File name too long"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
665 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
666 #ifdef WSAENOTEMPTY |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
667 inscode(d, ds, de, "WSAENOTEMPTY", WSAENOTEMPTY, "Directory not empty"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
668 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
669 #ifdef WSAESHUTDOWN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
670 inscode(d, ds, de, "WSAESHUTDOWN", WSAESHUTDOWN, "Cannot send after transport endpoint shutdown"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
671 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
672 #ifdef WSAEAFNOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
673 inscode(d, ds, de, "WSAEAFNOSUPPORT", WSAEAFNOSUPPORT, "Address family not supported by protocol"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
674 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
675 #ifdef WSAETOOMANYREFS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
676 inscode(d, ds, de, "WSAETOOMANYREFS", WSAETOOMANYREFS, "Too many references: cannot splice"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
677 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
678 #ifdef WSAEACCES |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
679 inscode(d, ds, de, "WSAEACCES", WSAEACCES, "Permission denied"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
680 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
681 #ifdef WSATR |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
682 inscode(d, ds, de, "WSATR", WSATR, "Error WSATR"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
683 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
684 #ifdef WSABASEERR |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
685 inscode(d, ds, de, "WSABASEERR", WSABASEERR, "Error WSABASEERR"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
686 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
687 #ifdef WSADESCRIPTIO |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
688 inscode(d, ds, de, "WSADESCRIPTIO", WSADESCRIPTIO, "Error WSADESCRIPTIO"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
689 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
690 #ifdef WSAEMSGSIZE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
691 inscode(d, ds, de, "WSAEMSGSIZE", WSAEMSGSIZE, "Message too long"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
692 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
693 #ifdef WSAEBADF |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
694 inscode(d, ds, de, "WSAEBADF", WSAEBADF, "Bad file number"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
695 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
696 #ifdef WSAECONNRESET |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
697 inscode(d, ds, de, "WSAECONNRESET", WSAECONNRESET, "Connection reset by peer"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
698 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
699 #ifdef WSAGETSELECTERRO |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
700 inscode(d, ds, de, "WSAGETSELECTERRO", WSAGETSELECTERRO, "Error WSAGETSELECTERRO"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
701 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
702 #ifdef WSAETIMEDOUT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
703 inscode(d, ds, de, "WSAETIMEDOUT", WSAETIMEDOUT, "Connection timed out"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
704 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
705 #ifdef WSAENOBUFS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
706 inscode(d, ds, de, "WSAENOBUFS", WSAENOBUFS, "No buffer space available"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
707 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
708 #ifdef WSAEDISCON |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
709 inscode(d, ds, de, "WSAEDISCON", WSAEDISCON, "Error WSAEDISCON"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
710 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
711 #ifdef WSAEINTR |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
712 inscode(d, ds, de, "WSAEINTR", WSAEINTR, "Interrupted system call"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
713 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
714 #ifdef WSAEPROTOTYPE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
715 inscode(d, ds, de, "WSAEPROTOTYPE", WSAEPROTOTYPE, "Protocol wrong type for socket"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
716 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
717 #ifdef WSAHOS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
718 inscode(d, ds, de, "WSAHOS", WSAHOS, "Error WSAHOS"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
719 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
720 #ifdef WSAEADDRINUSE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
721 inscode(d, ds, de, "WSAEADDRINUSE", WSAEADDRINUSE, "Address already in use"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
722 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
723 #ifdef WSAEADDRNOTAVAIL |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
724 inscode(d, ds, de, "WSAEADDRNOTAVAIL", WSAEADDRNOTAVAIL, "Cannot assign requested address"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
725 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
726 #ifdef WSAEALREADY |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
727 inscode(d, ds, de, "WSAEALREADY", WSAEALREADY, "Operation already in progress"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
728 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
729 #ifdef WSAEPROTONOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
730 inscode(d, ds, de, "WSAEPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
731 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
732 #ifdef WSASYSNOTREADY |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
733 inscode(d, ds, de, "WSASYSNOTREADY", WSASYSNOTREADY, "Error WSASYSNOTREADY"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
734 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
735 #ifdef WSAEWOULDBLOCK |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
736 inscode(d, ds, de, "WSAEWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
737 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
738 #ifdef WSAEPFNOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
739 inscode(d, ds, de, "WSAEPFNOSUPPORT", WSAEPFNOSUPPORT, "Protocol family not supported"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
740 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
741 #ifdef WSAEOPNOTSUPP |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
742 inscode(d, ds, de, "WSAEOPNOTSUPP", WSAEOPNOTSUPP, "Operation not supported on transport endpoint"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
743 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
744 #ifdef WSAEISCONN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
745 inscode(d, ds, de, "WSAEISCONN", WSAEISCONN, "Transport endpoint is already connected"); |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
746 #endif |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
747 #ifdef WSAEDQUOT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
748 inscode(d, ds, de, "WSAEDQUOT", WSAEDQUOT, "Quota exceeded"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
749 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
750 #ifdef WSAENOTCONN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
751 inscode(d, ds, de, "WSAENOTCONN", WSAENOTCONN, "Transport endpoint is not connected"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
752 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
753 #ifdef WSAEREMOTE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
754 inscode(d, ds, de, "WSAEREMOTE", WSAEREMOTE, "Object is remote"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
755 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
756 #ifdef WSAEINVAL |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
757 inscode(d, ds, de, "WSAEINVAL", WSAEINVAL, "Invalid argument"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
758 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
759 #ifdef WSAEINPROGRESS |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
760 inscode(d, ds, de, "WSAEINPROGRESS", WSAEINPROGRESS, "Operation now in progress"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
761 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
762 #ifdef WSAGETSELECTEVEN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
763 inscode(d, ds, de, "WSAGETSELECTEVEN", WSAGETSELECTEVEN, "Error WSAGETSELECTEVEN"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
764 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
765 #ifdef WSAESOCKTNOSUPPORT |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
766 inscode(d, ds, de, "WSAESOCKTNOSUPPORT", WSAESOCKTNOSUPPORT, "Socket type not supported"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
767 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
768 #ifdef WSAGETASYNCERRO |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
769 inscode(d, ds, de, "WSAGETASYNCERRO", WSAGETASYNCERRO, "Error WSAGETASYNCERRO"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
770 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
771 #ifdef WSAMAKESELECTREPL |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
772 inscode(d, ds, de, "WSAMAKESELECTREPL", WSAMAKESELECTREPL, "Error WSAMAKESELECTREPL"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
773 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
774 #ifdef WSAGETASYNCBUFLE |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
775 inscode(d, ds, de, "WSAGETASYNCBUFLE", WSAGETASYNCBUFLE, "Error WSAGETASYNCBUFLE"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
776 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
777 #ifdef WSAEDESTADDRREQ |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
778 inscode(d, ds, de, "WSAEDESTADDRREQ", WSAEDESTADDRREQ, "Destination address required"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
779 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
780 #ifdef WSAECONNREFUSED |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
781 inscode(d, ds, de, "WSAECONNREFUSED", WSAECONNREFUSED, "Connection refused"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
782 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
783 #ifdef WSAENETRESET |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
784 inscode(d, ds, de, "WSAENETRESET", WSAENETRESET, "Network dropped connection because of reset"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
785 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
786 #ifdef WSAN |
|
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
787 inscode(d, ds, de, "WSAN", WSAN, "Error WSAN"); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
788 #endif |
|
6340
593f54129661
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum <guido@python.org>
parents:
5308
diff
changeset
|
789 |
|
9972
19fdaf367d45
initerrno(): Nailed a not-so-tiny memory leak. The de dictionary is
Barry Warsaw <barry@python.org>
parents:
9588
diff
changeset
|
790 Py_DECREF(de); |
|
3804
48776bf4bd49
Added Sam Rushing's errno module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
791 } |
