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