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