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