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