Ignore:
Timestamp:
Mar 19, 2014, 11:11:30 AM (11 years ago)
Author:
dmik
Message:

python: Update vendor to 2.7.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/vendor/current/Modules/errnomodule.c

    r2 r388  
    1111/*
    1212 * Pull in the system error definitions
    13  */ 
     13 */
    1414
    1515static PyMethodDef errno_methods[] = {
    16         {NULL,          NULL}
     16    {NULL,              NULL}
    1717};
    1818
     
    2222_inscode(PyObject *d, PyObject *de, char *name, int code)
    2323{
    24         PyObject *u = PyString_FromString(name);
    25         PyObject *v = PyInt_FromLong((long) code);
    26 
    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);
     24    PyObject *u = PyString_FromString(name);
     25    PyObject *v = PyInt_FromLong((long) code);
     26
     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);
    3939}
    4040
     
    5656initerrno(void)
    5757{
    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;
     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;
    6666
    6767/* Macro so I don't have to edit each and every line below... */
    6868#define inscode(d, ds, de, name, code, comment) _inscode(d, de, name, code)
    6969
    70         /*
    71         * The names and comments are borrowed from linux/include/errno.h,
    72         * which should be pretty all-inclusive
    73          */
     70    /*
     71    * The names and comments are borrowed from linux/include/errno.h,
     72    * which should be pretty all-inclusive
     73     */
    7474
    7575#ifdef ENODEV
    76         inscode(d, ds, de, "ENODEV", ENODEV, "No such device");
     76    inscode(d, ds, de, "ENODEV", ENODEV, "No such device");
    7777#endif
    7878#ifdef ENOCSI
    79         inscode(d, ds, de, "ENOCSI", ENOCSI, "No CSI structure available");
     79    inscode(d, ds, de, "ENOCSI", ENOCSI, "No CSI structure available");
    8080#endif
    8181#ifdef EHOSTUNREACH
    82         inscode(d, ds, de, "EHOSTUNREACH", EHOSTUNREACH, "No route to host");
     82    inscode(d, ds, de, "EHOSTUNREACH", EHOSTUNREACH, "No route to host");
    8383#else
    8484#ifdef WSAEHOSTUNREACH
    85         inscode(d, ds, de, "EHOSTUNREACH", WSAEHOSTUNREACH, "No route to host");
     85    inscode(d, ds, de, "EHOSTUNREACH", WSAEHOSTUNREACH, "No route to host");
    8686#endif
    8787#endif
    8888#ifdef ENOMSG
    89         inscode(d, ds, de, "ENOMSG", ENOMSG, "No message of desired type");
     89    inscode(d, ds, de, "ENOMSG", ENOMSG, "No message of desired type");
    9090#endif
    9191#ifdef EUCLEAN
    92         inscode(d, ds, de, "EUCLEAN", EUCLEAN, "Structure needs cleaning");
     92    inscode(d, ds, de, "EUCLEAN", EUCLEAN, "Structure needs cleaning");
    9393#endif
    9494#ifdef EL2NSYNC
    95         inscode(d, ds, de, "EL2NSYNC", EL2NSYNC, "Level 2 not synchronized");
     95    inscode(d, ds, de, "EL2NSYNC", EL2NSYNC, "Level 2 not synchronized");
    9696#endif
    9797#ifdef EL2HLT
    98         inscode(d, ds, de, "EL2HLT", EL2HLT, "Level 2 halted");
     98    inscode(d, ds, de, "EL2HLT", EL2HLT, "Level 2 halted");
    9999#endif
    100100#ifdef ENODATA
    101         inscode(d, ds, de, "ENODATA", ENODATA, "No data available");
     101    inscode(d, ds, de, "ENODATA", ENODATA, "No data available");
    102102#endif
    103103#ifdef ENOTBLK
    104         inscode(d, ds, de, "ENOTBLK", ENOTBLK, "Block device required");
     104    inscode(d, ds, de, "ENOTBLK", ENOTBLK, "Block device required");
    105105#endif
    106106#ifdef ENOSYS
    107         inscode(d, ds, de, "ENOSYS", ENOSYS, "Function not implemented");
     107    inscode(d, ds, de, "ENOSYS", ENOSYS, "Function not implemented");
    108108#endif
    109109#ifdef EPIPE
    110         inscode(d, ds, de, "EPIPE", EPIPE, "Broken pipe");
     110    inscode(d, ds, de, "EPIPE", EPIPE, "Broken pipe");
    111111#endif
    112112#ifdef EINVAL
    113         inscode(d, ds, de, "EINVAL", EINVAL, "Invalid argument");
     113    inscode(d, ds, de, "EINVAL", EINVAL, "Invalid argument");
    114114#else
    115115#ifdef WSAEINVAL
    116         inscode(d, ds, de, "EINVAL", WSAEINVAL, "Invalid argument");
     116    inscode(d, ds, de, "EINVAL", WSAEINVAL, "Invalid argument");
    117117#endif
    118118#endif
    119119#ifdef EOVERFLOW
    120         inscode(d, ds, de, "EOVERFLOW", EOVERFLOW, "Value too large for defined data type");
     120    inscode(d, ds, de, "EOVERFLOW", EOVERFLOW, "Value too large for defined data type");
    121121#endif
    122122#ifdef EADV
    123         inscode(d, ds, de, "EADV", EADV, "Advertise error");
     123    inscode(d, ds, de, "EADV", EADV, "Advertise error");
    124124#endif
    125125#ifdef EINTR
    126         inscode(d, ds, de, "EINTR", EINTR, "Interrupted system call");
     126    inscode(d, ds, de, "EINTR", EINTR, "Interrupted system call");
    127127#else
    128128#ifdef WSAEINTR
    129         inscode(d, ds, de, "EINTR", WSAEINTR, "Interrupted system call");
     129    inscode(d, ds, de, "EINTR", WSAEINTR, "Interrupted system call");
    130130#endif
    131131#endif
    132132#ifdef EUSERS
    133         inscode(d, ds, de, "EUSERS", EUSERS, "Too many users");
     133    inscode(d, ds, de, "EUSERS", EUSERS, "Too many users");
    134134#else
    135135#ifdef WSAEUSERS
    136         inscode(d, ds, de, "EUSERS", WSAEUSERS, "Too many users");
     136    inscode(d, ds, de, "EUSERS", WSAEUSERS, "Too many users");
    137137#endif
    138138#endif
    139139#ifdef ENOTEMPTY
    140         inscode(d, ds, de, "ENOTEMPTY", ENOTEMPTY, "Directory not empty");
     140    inscode(d, ds, de, "ENOTEMPTY", ENOTEMPTY, "Directory not empty");
    141141#else
    142142#ifdef WSAENOTEMPTY
    143         inscode(d, ds, de, "ENOTEMPTY", WSAENOTEMPTY, "Directory not empty");
     143    inscode(d, ds, de, "ENOTEMPTY", WSAENOTEMPTY, "Directory not empty");
    144144#endif
    145145#endif
    146146#ifdef ENOBUFS
    147         inscode(d, ds, de, "ENOBUFS", ENOBUFS, "No buffer space available");
     147    inscode(d, ds, de, "ENOBUFS", ENOBUFS, "No buffer space available");
    148148#else
    149149#ifdef WSAENOBUFS
    150         inscode(d, ds, de, "ENOBUFS", WSAENOBUFS, "No buffer space available");
     150    inscode(d, ds, de, "ENOBUFS", WSAENOBUFS, "No buffer space available");
    151151#endif
    152152#endif
    153153#ifdef EPROTO
    154         inscode(d, ds, de, "EPROTO", EPROTO, "Protocol error");
     154    inscode(d, ds, de, "EPROTO", EPROTO, "Protocol error");
    155155#endif
    156156#ifdef EREMOTE
    157         inscode(d, ds, de, "EREMOTE", EREMOTE, "Object is remote");
     157    inscode(d, ds, de, "EREMOTE", EREMOTE, "Object is remote");
    158158#else
    159159#ifdef WSAEREMOTE
    160         inscode(d, ds, de, "EREMOTE", WSAEREMOTE, "Object is remote");
     160    inscode(d, ds, de, "EREMOTE", WSAEREMOTE, "Object is remote");
    161161#endif
    162162#endif
    163163#ifdef ENAVAIL
    164         inscode(d, ds, de, "ENAVAIL", ENAVAIL, "No XENIX semaphores available");
     164    inscode(d, ds, de, "ENAVAIL", ENAVAIL, "No XENIX semaphores available");
    165165#endif
    166166#ifdef ECHILD
    167         inscode(d, ds, de, "ECHILD", ECHILD, "No child processes");
     167    inscode(d, ds, de, "ECHILD", ECHILD, "No child processes");
    168168#endif
    169169#ifdef ELOOP
    170         inscode(d, ds, de, "ELOOP", ELOOP, "Too many symbolic links encountered");
     170    inscode(d, ds, de, "ELOOP", ELOOP, "Too many symbolic links encountered");
    171171#else
    172172#ifdef WSAELOOP
    173         inscode(d, ds, de, "ELOOP", WSAELOOP, "Too many symbolic links encountered");
     173    inscode(d, ds, de, "ELOOP", WSAELOOP, "Too many symbolic links encountered");
    174174#endif
    175175#endif
    176176#ifdef EXDEV
    177         inscode(d, ds, de, "EXDEV", EXDEV, "Cross-device link");
     177    inscode(d, ds, de, "EXDEV", EXDEV, "Cross-device link");
    178178#endif
    179179#ifdef E2BIG
    180         inscode(d, ds, de, "E2BIG", E2BIG, "Arg list too long");
     180    inscode(d, ds, de, "E2BIG", E2BIG, "Arg list too long");
    181181#endif
    182182#ifdef ESRCH
    183         inscode(d, ds, de, "ESRCH", ESRCH, "No such process");
     183    inscode(d, ds, de, "ESRCH", ESRCH, "No such process");
    184184#endif
    185185#ifdef EMSGSIZE
    186         inscode(d, ds, de, "EMSGSIZE", EMSGSIZE, "Message too long");
     186    inscode(d, ds, de, "EMSGSIZE", EMSGSIZE, "Message too long");
    187187#else
    188188#ifdef WSAEMSGSIZE
    189         inscode(d, ds, de, "EMSGSIZE", WSAEMSGSIZE, "Message too long");
     189    inscode(d, ds, de, "EMSGSIZE", WSAEMSGSIZE, "Message too long");
    190190#endif
    191191#endif
    192192#ifdef EAFNOSUPPORT
    193         inscode(d, ds, de, "EAFNOSUPPORT", EAFNOSUPPORT, "Address family not supported by protocol");
     193    inscode(d, ds, de, "EAFNOSUPPORT", EAFNOSUPPORT, "Address family not supported by protocol");
    194194#else
    195195#ifdef WSAEAFNOSUPPORT
    196         inscode(d, ds, de, "EAFNOSUPPORT", WSAEAFNOSUPPORT, "Address family not supported by protocol");
     196    inscode(d, ds, de, "EAFNOSUPPORT", WSAEAFNOSUPPORT, "Address family not supported by protocol");
    197197#endif
    198198#endif
    199199#ifdef EBADR
    200         inscode(d, ds, de, "EBADR", EBADR, "Invalid request descriptor");
     200    inscode(d, ds, de, "EBADR", EBADR, "Invalid request descriptor");
    201201#endif
    202202#ifdef EHOSTDOWN
    203         inscode(d, ds, de, "EHOSTDOWN", EHOSTDOWN, "Host is down");
     203    inscode(d, ds, de, "EHOSTDOWN", EHOSTDOWN, "Host is down");
    204204#else
    205205#ifdef WSAEHOSTDOWN
    206         inscode(d, ds, de, "EHOSTDOWN", WSAEHOSTDOWN, "Host is down");
     206    inscode(d, ds, de, "EHOSTDOWN", WSAEHOSTDOWN, "Host is down");
    207207#endif
    208208#endif
    209209#ifdef EPFNOSUPPORT
    210         inscode(d, ds, de, "EPFNOSUPPORT", EPFNOSUPPORT, "Protocol family not supported");
     210    inscode(d, ds, de, "EPFNOSUPPORT", EPFNOSUPPORT, "Protocol family not supported");
    211211#else
    212212#ifdef WSAEPFNOSUPPORT
    213         inscode(d, ds, de, "EPFNOSUPPORT", WSAEPFNOSUPPORT, "Protocol family not supported");
     213    inscode(d, ds, de, "EPFNOSUPPORT", WSAEPFNOSUPPORT, "Protocol family not supported");
    214214#endif
    215215#endif
    216216#ifdef ENOPROTOOPT
    217         inscode(d, ds, de, "ENOPROTOOPT", ENOPROTOOPT, "Protocol not available");
     217    inscode(d, ds, de, "ENOPROTOOPT", ENOPROTOOPT, "Protocol not available");
    218218#else
    219219#ifdef WSAENOPROTOOPT
    220         inscode(d, ds, de, "ENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available");
     220    inscode(d, ds, de, "ENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available");
    221221#endif
    222222#endif
    223223#ifdef EBUSY
    224         inscode(d, ds, de, "EBUSY", EBUSY, "Device or resource busy");
     224    inscode(d, ds, de, "EBUSY", EBUSY, "Device or resource busy");
    225225#endif
    226226#ifdef EWOULDBLOCK
    227         inscode(d, ds, de, "EWOULDBLOCK", EWOULDBLOCK, "Operation would block");
     227    inscode(d, ds, de, "EWOULDBLOCK", EWOULDBLOCK, "Operation would block");
    228228#else
    229229#ifdef WSAEWOULDBLOCK
    230         inscode(d, ds, de, "EWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block");
     230    inscode(d, ds, de, "EWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block");
    231231#endif
    232232#endif
    233233#ifdef EBADFD
    234         inscode(d, ds, de, "EBADFD", EBADFD, "File descriptor in bad state");
     234    inscode(d, ds, de, "EBADFD", EBADFD, "File descriptor in bad state");
    235235#endif
    236236#ifdef EDOTDOT
    237         inscode(d, ds, de, "EDOTDOT", EDOTDOT, "RFS specific error");
     237    inscode(d, ds, de, "EDOTDOT", EDOTDOT, "RFS specific error");
    238238#endif
    239239#ifdef EISCONN
    240         inscode(d, ds, de, "EISCONN", EISCONN, "Transport endpoint is already connected");
     240    inscode(d, ds, de, "EISCONN", EISCONN, "Transport endpoint is already connected");
    241241#else
    242242#ifdef WSAEISCONN
    243         inscode(d, ds, de, "EISCONN", WSAEISCONN, "Transport endpoint is already connected");
     243    inscode(d, ds, de, "EISCONN", WSAEISCONN, "Transport endpoint is already connected");
    244244#endif
    245245#endif
    246246#ifdef ENOANO
    247         inscode(d, ds, de, "ENOANO", ENOANO, "No anode");
     247    inscode(d, ds, de, "ENOANO", ENOANO, "No anode");
    248248#endif
    249249#ifdef ESHUTDOWN
    250         inscode(d, ds, de, "ESHUTDOWN", ESHUTDOWN, "Cannot send after transport endpoint shutdown");
     250    inscode(d, ds, de, "ESHUTDOWN", ESHUTDOWN, "Cannot send after transport endpoint shutdown");
    251251#else
    252252#ifdef WSAESHUTDOWN
    253         inscode(d, ds, de, "ESHUTDOWN", WSAESHUTDOWN, "Cannot send after transport endpoint shutdown");
     253    inscode(d, ds, de, "ESHUTDOWN", WSAESHUTDOWN, "Cannot send after transport endpoint shutdown");
    254254#endif
    255255#endif
    256256#ifdef ECHRNG
    257         inscode(d, ds, de, "ECHRNG", ECHRNG, "Channel number out of range");
     257    inscode(d, ds, de, "ECHRNG", ECHRNG, "Channel number out of range");
    258258#endif
    259259#ifdef ELIBBAD
    260         inscode(d, ds, de, "ELIBBAD", ELIBBAD, "Accessing a corrupted shared library");
     260    inscode(d, ds, de, "ELIBBAD", ELIBBAD, "Accessing a corrupted shared library");
    261261#endif
    262262#ifdef ENONET
    263         inscode(d, ds, de, "ENONET", ENONET, "Machine is not on the network");
     263    inscode(d, ds, de, "ENONET", ENONET, "Machine is not on the network");
    264264#endif
    265265#ifdef EBADE
    266         inscode(d, ds, de, "EBADE", EBADE, "Invalid exchange");
     266    inscode(d, ds, de, "EBADE", EBADE, "Invalid exchange");
    267267#endif
    268268#ifdef EBADF
    269         inscode(d, ds, de, "EBADF", EBADF, "Bad file number");
     269    inscode(d, ds, de, "EBADF", EBADF, "Bad file number");
    270270#else
    271271#ifdef WSAEBADF
    272         inscode(d, ds, de, "EBADF", WSAEBADF, "Bad file number");
     272    inscode(d, ds, de, "EBADF", WSAEBADF, "Bad file number");
    273273#endif
    274274#endif
    275275#ifdef EMULTIHOP
    276         inscode(d, ds, de, "EMULTIHOP", EMULTIHOP, "Multihop attempted");
     276    inscode(d, ds, de, "EMULTIHOP", EMULTIHOP, "Multihop attempted");
    277277#endif
    278278#ifdef EIO
    279         inscode(d, ds, de, "EIO", EIO, "I/O error");
     279    inscode(d, ds, de, "EIO", EIO, "I/O error");
    280280#endif
    281281#ifdef EUNATCH
    282         inscode(d, ds, de, "EUNATCH", EUNATCH, "Protocol driver not attached");
     282    inscode(d, ds, de, "EUNATCH", EUNATCH, "Protocol driver not attached");
    283283#endif
    284284#ifdef EPROTOTYPE
    285         inscode(d, ds, de, "EPROTOTYPE", EPROTOTYPE, "Protocol wrong type for socket");
     285    inscode(d, ds, de, "EPROTOTYPE", EPROTOTYPE, "Protocol wrong type for socket");
    286286#else
    287287#ifdef WSAEPROTOTYPE
    288         inscode(d, ds, de, "EPROTOTYPE", WSAEPROTOTYPE, "Protocol wrong type for socket");
     288    inscode(d, ds, de, "EPROTOTYPE", WSAEPROTOTYPE, "Protocol wrong type for socket");
    289289#endif
    290290#endif
    291291#ifdef ENOSPC
    292         inscode(d, ds, de, "ENOSPC", ENOSPC, "No space left on device");
     292    inscode(d, ds, de, "ENOSPC", ENOSPC, "No space left on device");
    293293#endif
    294294#ifdef ENOEXEC
    295         inscode(d, ds, de, "ENOEXEC", ENOEXEC, "Exec format error");
     295    inscode(d, ds, de, "ENOEXEC", ENOEXEC, "Exec format error");
    296296#endif
    297297#ifdef EALREADY
    298         inscode(d, ds, de, "EALREADY", EALREADY, "Operation already in progress");
     298    inscode(d, ds, de, "EALREADY", EALREADY, "Operation already in progress");
    299299#else
    300300#ifdef WSAEALREADY
    301         inscode(d, ds, de, "EALREADY", WSAEALREADY, "Operation already in progress");
     301    inscode(d, ds, de, "EALREADY", WSAEALREADY, "Operation already in progress");
    302302#endif
    303303#endif
    304304#ifdef ENETDOWN
    305         inscode(d, ds, de, "ENETDOWN", ENETDOWN, "Network is down");
     305    inscode(d, ds, de, "ENETDOWN", ENETDOWN, "Network is down");
    306306#else
    307307#ifdef WSAENETDOWN
    308         inscode(d, ds, de, "ENETDOWN", WSAENETDOWN, "Network is down");
     308    inscode(d, ds, de, "ENETDOWN", WSAENETDOWN, "Network is down");
    309309#endif
    310310#endif
    311311#ifdef ENOTNAM
    312         inscode(d, ds, de, "ENOTNAM", ENOTNAM, "Not a XENIX named type file");
     312    inscode(d, ds, de, "ENOTNAM", ENOTNAM, "Not a XENIX named type file");
    313313#endif
    314314#ifdef EACCES
    315         inscode(d, ds, de, "EACCES", EACCES, "Permission denied");
     315    inscode(d, ds, de, "EACCES", EACCES, "Permission denied");
    316316#else
    317317#ifdef WSAEACCES
    318         inscode(d, ds, de, "EACCES", WSAEACCES, "Permission denied");
     318    inscode(d, ds, de, "EACCES", WSAEACCES, "Permission denied");
    319319#endif
    320320#endif
    321321#ifdef ELNRNG
    322         inscode(d, ds, de, "ELNRNG", ELNRNG, "Link number out of range");
     322    inscode(d, ds, de, "ELNRNG", ELNRNG, "Link number out of range");
    323323#endif
    324324#ifdef EILSEQ
    325         inscode(d, ds, de, "EILSEQ", EILSEQ, "Illegal byte sequence");
     325    inscode(d, ds, de, "EILSEQ", EILSEQ, "Illegal byte sequence");
    326326#endif
    327327#ifdef ENOTDIR
    328         inscode(d, ds, de, "ENOTDIR", ENOTDIR, "Not a directory");
     328    inscode(d, ds, de, "ENOTDIR", ENOTDIR, "Not a directory");
    329329#endif
    330330#ifdef ENOTUNIQ
    331         inscode(d, ds, de, "ENOTUNIQ", ENOTUNIQ, "Name not unique on network");
     331    inscode(d, ds, de, "ENOTUNIQ", ENOTUNIQ, "Name not unique on network");
    332332#endif
    333333#ifdef EPERM
    334         inscode(d, ds, de, "EPERM", EPERM, "Operation not permitted");
     334    inscode(d, ds, de, "EPERM", EPERM, "Operation not permitted");
    335335#endif
    336336#ifdef EDOM
    337         inscode(d, ds, de, "EDOM", EDOM, "Math argument out of domain of func");
     337    inscode(d, ds, de, "EDOM", EDOM, "Math argument out of domain of func");
    338338#endif
    339339#ifdef EXFULL
    340         inscode(d, ds, de, "EXFULL", EXFULL, "Exchange full");
     340    inscode(d, ds, de, "EXFULL", EXFULL, "Exchange full");
    341341#endif
    342342#ifdef ECONNREFUSED
    343         inscode(d, ds, de, "ECONNREFUSED", ECONNREFUSED, "Connection refused");
     343    inscode(d, ds, de, "ECONNREFUSED", ECONNREFUSED, "Connection refused");
    344344#else
    345345#ifdef WSAECONNREFUSED
    346         inscode(d, ds, de, "ECONNREFUSED", WSAECONNREFUSED, "Connection refused");
     346    inscode(d, ds, de, "ECONNREFUSED", WSAECONNREFUSED, "Connection refused");
    347347#endif
    348348#endif
    349349#ifdef EISDIR
    350         inscode(d, ds, de, "EISDIR", EISDIR, "Is a directory");
     350    inscode(d, ds, de, "EISDIR", EISDIR, "Is a directory");
    351351#endif
    352352#ifdef EPROTONOSUPPORT
    353         inscode(d, ds, de, "EPROTONOSUPPORT", EPROTONOSUPPORT, "Protocol not supported");
     353    inscode(d, ds, de, "EPROTONOSUPPORT", EPROTONOSUPPORT, "Protocol not supported");
    354354#else
    355355#ifdef WSAEPROTONOSUPPORT
    356         inscode(d, ds, de, "EPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported");
     356    inscode(d, ds, de, "EPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported");
    357357#endif
    358358#endif
    359359#ifdef EROFS
    360         inscode(d, ds, de, "EROFS", EROFS, "Read-only file system");
     360    inscode(d, ds, de, "EROFS", EROFS, "Read-only file system");
    361361#endif
    362362#ifdef EADDRNOTAVAIL
    363         inscode(d, ds, de, "EADDRNOTAVAIL", EADDRNOTAVAIL, "Cannot assign requested address");
     363    inscode(d, ds, de, "EADDRNOTAVAIL", EADDRNOTAVAIL, "Cannot assign requested address");
    364364#else
    365365#ifdef WSAEADDRNOTAVAIL
    366         inscode(d, ds, de, "EADDRNOTAVAIL", WSAEADDRNOTAVAIL, "Cannot assign requested address");
     366    inscode(d, ds, de, "EADDRNOTAVAIL", WSAEADDRNOTAVAIL, "Cannot assign requested address");
    367367#endif
    368368#endif
    369369#ifdef EIDRM
    370         inscode(d, ds, de, "EIDRM", EIDRM, "Identifier removed");
     370    inscode(d, ds, de, "EIDRM", EIDRM, "Identifier removed");
    371371#endif
    372372#ifdef ECOMM
    373         inscode(d, ds, de, "ECOMM", ECOMM, "Communication error on send");
     373    inscode(d, ds, de, "ECOMM", ECOMM, "Communication error on send");
    374374#endif
    375375#ifdef ESRMNT
    376         inscode(d, ds, de, "ESRMNT", ESRMNT, "Srmount error");
     376    inscode(d, ds, de, "ESRMNT", ESRMNT, "Srmount error");
    377377#endif
    378378#ifdef EREMOTEIO
    379         inscode(d, ds, de, "EREMOTEIO", EREMOTEIO, "Remote I/O error");
     379    inscode(d, ds, de, "EREMOTEIO", EREMOTEIO, "Remote I/O error");
    380380#endif
    381381#ifdef EL3RST
    382         inscode(d, ds, de, "EL3RST", EL3RST, "Level 3 reset");
     382    inscode(d, ds, de, "EL3RST", EL3RST, "Level 3 reset");
    383383#endif
    384384#ifdef EBADMSG
    385         inscode(d, ds, de, "EBADMSG", EBADMSG, "Not a data message");
     385    inscode(d, ds, de, "EBADMSG", EBADMSG, "Not a data message");
    386386#endif
    387387#ifdef ENFILE
    388         inscode(d, ds, de, "ENFILE", ENFILE, "File table overflow");
     388    inscode(d, ds, de, "ENFILE", ENFILE, "File table overflow");
    389389#endif
    390390#ifdef ELIBMAX
    391         inscode(d, ds, de, "ELIBMAX", ELIBMAX, "Attempting to link in too many shared libraries");
     391    inscode(d, ds, de, "ELIBMAX", ELIBMAX, "Attempting to link in too many shared libraries");
    392392#endif
    393393#ifdef ESPIPE
    394         inscode(d, ds, de, "ESPIPE", ESPIPE, "Illegal seek");
     394    inscode(d, ds, de, "ESPIPE", ESPIPE, "Illegal seek");
    395395#endif
    396396#ifdef ENOLINK
    397         inscode(d, ds, de, "ENOLINK", ENOLINK, "Link has been severed");
     397    inscode(d, ds, de, "ENOLINK", ENOLINK, "Link has been severed");
    398398#endif
    399399#ifdef ENETRESET
    400         inscode(d, ds, de, "ENETRESET", ENETRESET, "Network dropped connection because of reset");
     400    inscode(d, ds, de, "ENETRESET", ENETRESET, "Network dropped connection because of reset");
    401401#else
    402402#ifdef WSAENETRESET
    403         inscode(d, ds, de, "ENETRESET", WSAENETRESET, "Network dropped connection because of reset");
     403    inscode(d, ds, de, "ENETRESET", WSAENETRESET, "Network dropped connection because of reset");
    404404#endif
    405405#endif
    406406#ifdef ETIMEDOUT
    407         inscode(d, ds, de, "ETIMEDOUT", ETIMEDOUT, "Connection timed out");
     407    inscode(d, ds, de, "ETIMEDOUT", ETIMEDOUT, "Connection timed out");
    408408#else
    409409#ifdef WSAETIMEDOUT
    410         inscode(d, ds, de, "ETIMEDOUT", WSAETIMEDOUT, "Connection timed out");
     410    inscode(d, ds, de, "ETIMEDOUT", WSAETIMEDOUT, "Connection timed out");
    411411#endif
    412412#endif
    413413#ifdef ENOENT
    414         inscode(d, ds, de, "ENOENT", ENOENT, "No such file or directory");
     414    inscode(d, ds, de, "ENOENT", ENOENT, "No such file or directory");
    415415#endif
    416416#ifdef EEXIST
    417         inscode(d, ds, de, "EEXIST", EEXIST, "File exists");
     417    inscode(d, ds, de, "EEXIST", EEXIST, "File exists");
    418418#endif
    419419#ifdef EDQUOT
    420         inscode(d, ds, de, "EDQUOT", EDQUOT, "Quota exceeded");
     420    inscode(d, ds, de, "EDQUOT", EDQUOT, "Quota exceeded");
    421421#else
    422422#ifdef WSAEDQUOT
    423         inscode(d, ds, de, "EDQUOT", WSAEDQUOT, "Quota exceeded");
     423    inscode(d, ds, de, "EDQUOT", WSAEDQUOT, "Quota exceeded");
    424424#endif
    425425#endif
    426426#ifdef ENOSTR
    427         inscode(d, ds, de, "ENOSTR", ENOSTR, "Device not a stream");
     427    inscode(d, ds, de, "ENOSTR", ENOSTR, "Device not a stream");
    428428#endif
    429429#ifdef EBADSLT
    430         inscode(d, ds, de, "EBADSLT", EBADSLT, "Invalid slot");
     430    inscode(d, ds, de, "EBADSLT", EBADSLT, "Invalid slot");
    431431#endif
    432432#ifdef EBADRQC
    433         inscode(d, ds, de, "EBADRQC", EBADRQC, "Invalid request code");
     433    inscode(d, ds, de, "EBADRQC", EBADRQC, "Invalid request code");
    434434#endif
    435435#ifdef ELIBACC
    436         inscode(d, ds, de, "ELIBACC", ELIBACC, "Can not access a needed shared library");
     436    inscode(d, ds, de, "ELIBACC", ELIBACC, "Can not access a needed shared library");
    437437#endif
    438438#ifdef EFAULT
    439         inscode(d, ds, de, "EFAULT", EFAULT, "Bad address");
     439    inscode(d, ds, de, "EFAULT", EFAULT, "Bad address");
    440440#else
    441441#ifdef WSAEFAULT
    442         inscode(d, ds, de, "EFAULT", WSAEFAULT, "Bad address");
     442    inscode(d, ds, de, "EFAULT", WSAEFAULT, "Bad address");
    443443#endif
    444444#endif
    445445#ifdef EFBIG
    446         inscode(d, ds, de, "EFBIG", EFBIG, "File too large");
     446    inscode(d, ds, de, "EFBIG", EFBIG, "File too large");
    447447#endif
    448448#ifdef EDEADLK
    449         inscode(d, ds, de, "EDEADLK", EDEADLK, "Resource deadlock would occur");
     449    inscode(d, ds, de, "EDEADLK", EDEADLK, "Resource deadlock would occur");
    450450#endif
    451451#ifdef ENOTCONN
    452         inscode(d, ds, de, "ENOTCONN", ENOTCONN, "Transport endpoint is not connected");
     452    inscode(d, ds, de, "ENOTCONN", ENOTCONN, "Transport endpoint is not connected");
    453453#else
    454454#ifdef WSAENOTCONN
    455         inscode(d, ds, de, "ENOTCONN", WSAENOTCONN, "Transport endpoint is not connected");
     455    inscode(d, ds, de, "ENOTCONN", WSAENOTCONN, "Transport endpoint is not connected");
    456456#endif
    457457#endif
    458458#ifdef EDESTADDRREQ
    459         inscode(d, ds, de, "EDESTADDRREQ", EDESTADDRREQ, "Destination address required");
     459    inscode(d, ds, de, "EDESTADDRREQ", EDESTADDRREQ, "Destination address required");
    460460#else
    461461#ifdef WSAEDESTADDRREQ
    462         inscode(d, ds, de, "EDESTADDRREQ", WSAEDESTADDRREQ, "Destination address required");
     462    inscode(d, ds, de, "EDESTADDRREQ", WSAEDESTADDRREQ, "Destination address required");
    463463#endif
    464464#endif
    465465#ifdef ELIBSCN
    466         inscode(d, ds, de, "ELIBSCN", ELIBSCN, ".lib section in a.out corrupted");
     466    inscode(d, ds, de, "ELIBSCN", ELIBSCN, ".lib section in a.out corrupted");
    467467#endif
    468468#ifdef ENOLCK
    469         inscode(d, ds, de, "ENOLCK", ENOLCK, "No record locks available");
     469    inscode(d, ds, de, "ENOLCK", ENOLCK, "No record locks available");
    470470#endif
    471471#ifdef EISNAM
    472         inscode(d, ds, de, "EISNAM", EISNAM, "Is a named type file");
     472    inscode(d, ds, de, "EISNAM", EISNAM, "Is a named type file");
    473473#endif
    474474#ifdef ECONNABORTED
    475         inscode(d, ds, de, "ECONNABORTED", ECONNABORTED, "Software caused connection abort");
     475    inscode(d, ds, de, "ECONNABORTED", ECONNABORTED, "Software caused connection abort");
    476476#else
    477477#ifdef WSAECONNABORTED
    478         inscode(d, ds, de, "ECONNABORTED", WSAECONNABORTED, "Software caused connection abort");
     478    inscode(d, ds, de, "ECONNABORTED", WSAECONNABORTED, "Software caused connection abort");
    479479#endif
    480480#endif
    481481#ifdef ENETUNREACH
    482         inscode(d, ds, de, "ENETUNREACH", ENETUNREACH, "Network is unreachable");
     482    inscode(d, ds, de, "ENETUNREACH", ENETUNREACH, "Network is unreachable");
    483483#else
    484484#ifdef WSAENETUNREACH
    485         inscode(d, ds, de, "ENETUNREACH", WSAENETUNREACH, "Network is unreachable");
     485    inscode(d, ds, de, "ENETUNREACH", WSAENETUNREACH, "Network is unreachable");
    486486#endif
    487487#endif
    488488#ifdef ESTALE
    489         inscode(d, ds, de, "ESTALE", ESTALE, "Stale NFS file handle");
     489    inscode(d, ds, de, "ESTALE", ESTALE, "Stale NFS file handle");
    490490#else
    491491#ifdef WSAESTALE
    492         inscode(d, ds, de, "ESTALE", WSAESTALE, "Stale NFS file handle");
     492    inscode(d, ds, de, "ESTALE", WSAESTALE, "Stale NFS file handle");
    493493#endif
    494494#endif
    495495#ifdef ENOSR
    496         inscode(d, ds, de, "ENOSR", ENOSR, "Out of streams resources");
     496    inscode(d, ds, de, "ENOSR", ENOSR, "Out of streams resources");
    497497#endif
    498498#ifdef ENOMEM
    499         inscode(d, ds, de, "ENOMEM", ENOMEM, "Out of memory");
     499    inscode(d, ds, de, "ENOMEM", ENOMEM, "Out of memory");
    500500#endif
    501501#ifdef ENOTSOCK
    502         inscode(d, ds, de, "ENOTSOCK", ENOTSOCK, "Socket operation on non-socket");
     502    inscode(d, ds, de, "ENOTSOCK", ENOTSOCK, "Socket operation on non-socket");
    503503#else
    504504#ifdef WSAENOTSOCK
    505         inscode(d, ds, de, "ENOTSOCK", WSAENOTSOCK, "Socket operation on non-socket");
     505    inscode(d, ds, de, "ENOTSOCK", WSAENOTSOCK, "Socket operation on non-socket");
    506506#endif
    507507#endif
    508508#ifdef ESTRPIPE
    509         inscode(d, ds, de, "ESTRPIPE", ESTRPIPE, "Streams pipe error");
     509    inscode(d, ds, de, "ESTRPIPE", ESTRPIPE, "Streams pipe error");
    510510#endif
    511511#ifdef EMLINK
    512         inscode(d, ds, de, "EMLINK", EMLINK, "Too many links");
     512    inscode(d, ds, de, "EMLINK", EMLINK, "Too many links");
    513513#endif
    514514#ifdef ERANGE
    515         inscode(d, ds, de, "ERANGE", ERANGE, "Math result not representable");
     515    inscode(d, ds, de, "ERANGE", ERANGE, "Math result not representable");
    516516#endif
    517517#ifdef ELIBEXEC
    518         inscode(d, ds, de, "ELIBEXEC", ELIBEXEC, "Cannot exec a shared library directly");
     518    inscode(d, ds, de, "ELIBEXEC", ELIBEXEC, "Cannot exec a shared library directly");
    519519#endif
    520520#ifdef EL3HLT
    521         inscode(d, ds, de, "EL3HLT", EL3HLT, "Level 3 halted");
     521    inscode(d, ds, de, "EL3HLT", EL3HLT, "Level 3 halted");
    522522#endif
    523523#ifdef ECONNRESET
    524         inscode(d, ds, de, "ECONNRESET", ECONNRESET, "Connection reset by peer");
     524    inscode(d, ds, de, "ECONNRESET", ECONNRESET, "Connection reset by peer");
    525525#else
    526526#ifdef WSAECONNRESET
    527         inscode(d, ds, de, "ECONNRESET", WSAECONNRESET, "Connection reset by peer");
     527    inscode(d, ds, de, "ECONNRESET", WSAECONNRESET, "Connection reset by peer");
    528528#endif
    529529#endif
    530530#ifdef EADDRINUSE
    531         inscode(d, ds, de, "EADDRINUSE", EADDRINUSE, "Address already in use");
     531    inscode(d, ds, de, "EADDRINUSE", EADDRINUSE, "Address already in use");
    532532#else
    533533#ifdef WSAEADDRINUSE
    534         inscode(d, ds, de, "EADDRINUSE", WSAEADDRINUSE, "Address already in use");
     534    inscode(d, ds, de, "EADDRINUSE", WSAEADDRINUSE, "Address already in use");
    535535#endif
    536536#endif
    537537#ifdef EOPNOTSUPP
    538         inscode(d, ds, de, "EOPNOTSUPP", EOPNOTSUPP, "Operation not supported on transport endpoint");
     538    inscode(d, ds, de, "EOPNOTSUPP", EOPNOTSUPP, "Operation not supported on transport endpoint");
    539539#else
    540540#ifdef WSAEOPNOTSUPP
    541         inscode(d, ds, de, "EOPNOTSUPP", WSAEOPNOTSUPP, "Operation not supported on transport endpoint");
     541    inscode(d, ds, de, "EOPNOTSUPP", WSAEOPNOTSUPP, "Operation not supported on transport endpoint");
    542542#endif
    543543#endif
    544544#ifdef EREMCHG
    545         inscode(d, ds, de, "EREMCHG", EREMCHG, "Remote address changed");
     545    inscode(d, ds, de, "EREMCHG", EREMCHG, "Remote address changed");
    546546#endif
    547547#ifdef EAGAIN
    548         inscode(d, ds, de, "EAGAIN", EAGAIN, "Try again");
     548    inscode(d, ds, de, "EAGAIN", EAGAIN, "Try again");
    549549#endif
    550550#ifdef ENAMETOOLONG
    551         inscode(d, ds, de, "ENAMETOOLONG", ENAMETOOLONG, "File name too long");
     551    inscode(d, ds, de, "ENAMETOOLONG", ENAMETOOLONG, "File name too long");
    552552#else
    553553#ifdef WSAENAMETOOLONG
    554         inscode(d, ds, de, "ENAMETOOLONG", WSAENAMETOOLONG, "File name too long");
     554    inscode(d, ds, de, "ENAMETOOLONG", WSAENAMETOOLONG, "File name too long");
    555555#endif
    556556#endif
    557557#ifdef ENOTTY
    558         inscode(d, ds, de, "ENOTTY", ENOTTY, "Not a typewriter");
     558    inscode(d, ds, de, "ENOTTY", ENOTTY, "Not a typewriter");
    559559#endif
    560560#ifdef ERESTART
    561         inscode(d, ds, de, "ERESTART", ERESTART, "Interrupted system call should be restarted");
     561    inscode(d, ds, de, "ERESTART", ERESTART, "Interrupted system call should be restarted");
    562562#endif
    563563#ifdef ESOCKTNOSUPPORT
    564         inscode(d, ds, de, "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, "Socket type not supported");
     564    inscode(d, ds, de, "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, "Socket type not supported");
    565565#else
    566566#ifdef WSAESOCKTNOSUPPORT
    567         inscode(d, ds, de, "ESOCKTNOSUPPORT", WSAESOCKTNOSUPPORT, "Socket type not supported");
     567    inscode(d, ds, de, "ESOCKTNOSUPPORT", WSAESOCKTNOSUPPORT, "Socket type not supported");
    568568#endif
    569569#endif
    570570#ifdef ETIME
    571         inscode(d, ds, de, "ETIME", ETIME, "Timer expired");
     571    inscode(d, ds, de, "ETIME", ETIME, "Timer expired");
    572572#endif
    573573#ifdef EBFONT
    574         inscode(d, ds, de, "EBFONT", EBFONT, "Bad font file format");
     574    inscode(d, ds, de, "EBFONT", EBFONT, "Bad font file format");
    575575#endif
    576576#ifdef EDEADLOCK
    577         inscode(d, ds, de, "EDEADLOCK", EDEADLOCK, "Error EDEADLOCK");
     577    inscode(d, ds, de, "EDEADLOCK", EDEADLOCK, "Error EDEADLOCK");
    578578#endif
    579579#ifdef ETOOMANYREFS
    580         inscode(d, ds, de, "ETOOMANYREFS", ETOOMANYREFS, "Too many references: cannot splice");
     580    inscode(d, ds, de, "ETOOMANYREFS", ETOOMANYREFS, "Too many references: cannot splice");
    581581#else
    582582#ifdef WSAETOOMANYREFS
    583         inscode(d, ds, de, "ETOOMANYREFS", WSAETOOMANYREFS, "Too many references: cannot splice");
     583    inscode(d, ds, de, "ETOOMANYREFS", WSAETOOMANYREFS, "Too many references: cannot splice");
    584584#endif
    585585#endif
    586586#ifdef EMFILE
    587         inscode(d, ds, de, "EMFILE", EMFILE, "Too many open files");
     587    inscode(d, ds, de, "EMFILE", EMFILE, "Too many open files");
    588588#else
    589589#ifdef WSAEMFILE
    590         inscode(d, ds, de, "EMFILE", WSAEMFILE, "Too many open files");
     590    inscode(d, ds, de, "EMFILE", WSAEMFILE, "Too many open files");
    591591#endif
    592592#endif
    593593#ifdef ETXTBSY
    594         inscode(d, ds, de, "ETXTBSY", ETXTBSY, "Text file busy");
     594    inscode(d, ds, de, "ETXTBSY", ETXTBSY, "Text file busy");
    595595#endif
    596596#ifdef EINPROGRESS
    597         inscode(d, ds, de, "EINPROGRESS", EINPROGRESS, "Operation now in progress");
     597    inscode(d, ds, de, "EINPROGRESS", EINPROGRESS, "Operation now in progress");
    598598#else
    599599#ifdef WSAEINPROGRESS
    600         inscode(d, ds, de, "EINPROGRESS", WSAEINPROGRESS, "Operation now in progress");
     600    inscode(d, ds, de, "EINPROGRESS", WSAEINPROGRESS, "Operation now in progress");
    601601#endif
    602602#endif
    603603#ifdef ENXIO
    604         inscode(d, ds, de, "ENXIO", ENXIO, "No such device or address");
     604    inscode(d, ds, de, "ENXIO", ENXIO, "No such device or address");
    605605#endif
    606606#ifdef ENOPKG
    607         inscode(d, ds, de, "ENOPKG", ENOPKG, "Package not installed");
     607    inscode(d, ds, de, "ENOPKG", ENOPKG, "Package not installed");
    608608#endif
    609609#ifdef WSASY
    610         inscode(d, ds, de, "WSASY", WSASY, "Error WSASY");
     610    inscode(d, ds, de, "WSASY", WSASY, "Error WSASY");
    611611#endif
    612612#ifdef WSAEHOSTDOWN
    613         inscode(d, ds, de, "WSAEHOSTDOWN", WSAEHOSTDOWN, "Host is down");
     613    inscode(d, ds, de, "WSAEHOSTDOWN", WSAEHOSTDOWN, "Host is down");
    614614#endif
    615615#ifdef WSAENETDOWN
    616         inscode(d, ds, de, "WSAENETDOWN", WSAENETDOWN, "Network is down");
     616    inscode(d, ds, de, "WSAENETDOWN", WSAENETDOWN, "Network is down");
    617617#endif
    618618#ifdef WSAENOTSOCK
    619         inscode(d, ds, de, "WSAENOTSOCK", WSAENOTSOCK, "Socket operation on non-socket");
     619    inscode(d, ds, de, "WSAENOTSOCK", WSAENOTSOCK, "Socket operation on non-socket");
    620620#endif
    621621#ifdef WSAEHOSTUNREACH
    622         inscode(d, ds, de, "WSAEHOSTUNREACH", WSAEHOSTUNREACH, "No route to host");
     622    inscode(d, ds, de, "WSAEHOSTUNREACH", WSAEHOSTUNREACH, "No route to host");
    623623#endif
    624624#ifdef WSAELOOP
    625         inscode(d, ds, de, "WSAELOOP", WSAELOOP, "Too many symbolic links encountered");
     625    inscode(d, ds, de, "WSAELOOP", WSAELOOP, "Too many symbolic links encountered");
    626626#endif
    627627#ifdef WSAEMFILE
    628         inscode(d, ds, de, "WSAEMFILE", WSAEMFILE, "Too many open files");
     628    inscode(d, ds, de, "WSAEMFILE", WSAEMFILE, "Too many open files");
    629629#endif
    630630#ifdef WSAESTALE
    631         inscode(d, ds, de, "WSAESTALE", WSAESTALE, "Stale NFS file handle");
     631    inscode(d, ds, de, "WSAESTALE", WSAESTALE, "Stale NFS file handle");
    632632#endif
    633633#ifdef WSAVERNOTSUPPORTED
    634         inscode(d, ds, de, "WSAVERNOTSUPPORTED", WSAVERNOTSUPPORTED, "Error WSAVERNOTSUPPORTED");
     634    inscode(d, ds, de, "WSAVERNOTSUPPORTED", WSAVERNOTSUPPORTED, "Error WSAVERNOTSUPPORTED");
    635635#endif
    636636#ifdef WSAENETUNREACH
    637         inscode(d, ds, de, "WSAENETUNREACH", WSAENETUNREACH, "Network is unreachable");
     637    inscode(d, ds, de, "WSAENETUNREACH", WSAENETUNREACH, "Network is unreachable");
    638638#endif
    639639#ifdef WSAEPROCLIM
    640         inscode(d, ds, de, "WSAEPROCLIM", WSAEPROCLIM, "Error WSAEPROCLIM");
     640    inscode(d, ds, de, "WSAEPROCLIM", WSAEPROCLIM, "Error WSAEPROCLIM");
    641641#endif
    642642#ifdef WSAEFAULT
    643         inscode(d, ds, de, "WSAEFAULT", WSAEFAULT, "Bad address");
     643    inscode(d, ds, de, "WSAEFAULT", WSAEFAULT, "Bad address");
    644644#endif
    645645#ifdef WSANOTINITIALISED
    646         inscode(d, ds, de, "WSANOTINITIALISED", WSANOTINITIALISED, "Error WSANOTINITIALISED");
     646    inscode(d, ds, de, "WSANOTINITIALISED", WSANOTINITIALISED, "Error WSANOTINITIALISED");
    647647#endif
    648648#ifdef WSAEUSERS
    649         inscode(d, ds, de, "WSAEUSERS", WSAEUSERS, "Too many users");
     649    inscode(d, ds, de, "WSAEUSERS", WSAEUSERS, "Too many users");
    650650#endif
    651651#ifdef WSAMAKEASYNCREPL
    652         inscode(d, ds, de, "WSAMAKEASYNCREPL", WSAMAKEASYNCREPL, "Error WSAMAKEASYNCREPL");
     652    inscode(d, ds, de, "WSAMAKEASYNCREPL", WSAMAKEASYNCREPL, "Error WSAMAKEASYNCREPL");
    653653#endif
    654654#ifdef WSAENOPROTOOPT
    655         inscode(d, ds, de, "WSAENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available");
     655    inscode(d, ds, de, "WSAENOPROTOOPT", WSAENOPROTOOPT, "Protocol not available");
    656656#endif
    657657#ifdef WSAECONNABORTED
    658         inscode(d, ds, de, "WSAECONNABORTED", WSAECONNABORTED, "Software caused connection abort");
     658    inscode(d, ds, de, "WSAECONNABORTED", WSAECONNABORTED, "Software caused connection abort");
    659659#endif
    660660#ifdef WSAENAMETOOLONG
    661         inscode(d, ds, de, "WSAENAMETOOLONG", WSAENAMETOOLONG, "File name too long");
     661    inscode(d, ds, de, "WSAENAMETOOLONG", WSAENAMETOOLONG, "File name too long");
    662662#endif
    663663#ifdef WSAENOTEMPTY
    664         inscode(d, ds, de, "WSAENOTEMPTY", WSAENOTEMPTY, "Directory not empty");
     664    inscode(d, ds, de, "WSAENOTEMPTY", WSAENOTEMPTY, "Directory not empty");
    665665#endif
    666666#ifdef WSAESHUTDOWN
    667         inscode(d, ds, de, "WSAESHUTDOWN", WSAESHUTDOWN, "Cannot send after transport endpoint shutdown");
     667    inscode(d, ds, de, "WSAESHUTDOWN", WSAESHUTDOWN, "Cannot send after transport endpoint shutdown");
    668668#endif
    669669#ifdef WSAEAFNOSUPPORT
    670         inscode(d, ds, de, "WSAEAFNOSUPPORT", WSAEAFNOSUPPORT, "Address family not supported by protocol");
     670    inscode(d, ds, de, "WSAEAFNOSUPPORT", WSAEAFNOSUPPORT, "Address family not supported by protocol");
    671671#endif
    672672#ifdef WSAETOOMANYREFS
    673         inscode(d, ds, de, "WSAETOOMANYREFS", WSAETOOMANYREFS, "Too many references: cannot splice");
     673    inscode(d, ds, de, "WSAETOOMANYREFS", WSAETOOMANYREFS, "Too many references: cannot splice");
    674674#endif
    675675#ifdef WSAEACCES
    676         inscode(d, ds, de, "WSAEACCES", WSAEACCES, "Permission denied");
     676    inscode(d, ds, de, "WSAEACCES", WSAEACCES, "Permission denied");
    677677#endif
    678678#ifdef WSATR
    679         inscode(d, ds, de, "WSATR", WSATR, "Error WSATR");
     679    inscode(d, ds, de, "WSATR", WSATR, "Error WSATR");
    680680#endif
    681681#ifdef WSABASEERR
    682         inscode(d, ds, de, "WSABASEERR", WSABASEERR, "Error WSABASEERR");
     682    inscode(d, ds, de, "WSABASEERR", WSABASEERR, "Error WSABASEERR");
    683683#endif
    684684#ifdef WSADESCRIPTIO
    685         inscode(d, ds, de, "WSADESCRIPTIO", WSADESCRIPTIO, "Error WSADESCRIPTIO");
     685    inscode(d, ds, de, "WSADESCRIPTIO", WSADESCRIPTIO, "Error WSADESCRIPTIO");
    686686#endif
    687687#ifdef WSAEMSGSIZE
    688         inscode(d, ds, de, "WSAEMSGSIZE", WSAEMSGSIZE, "Message too long");
     688    inscode(d, ds, de, "WSAEMSGSIZE", WSAEMSGSIZE, "Message too long");
    689689#endif
    690690#ifdef WSAEBADF
    691         inscode(d, ds, de, "WSAEBADF", WSAEBADF, "Bad file number");
     691    inscode(d, ds, de, "WSAEBADF", WSAEBADF, "Bad file number");
    692692#endif
    693693#ifdef WSAECONNRESET
    694         inscode(d, ds, de, "WSAECONNRESET", WSAECONNRESET, "Connection reset by peer");
     694    inscode(d, ds, de, "WSAECONNRESET", WSAECONNRESET, "Connection reset by peer");
    695695#endif
    696696#ifdef WSAGETSELECTERRO
    697         inscode(d, ds, de, "WSAGETSELECTERRO", WSAGETSELECTERRO, "Error WSAGETSELECTERRO");
     697    inscode(d, ds, de, "WSAGETSELECTERRO", WSAGETSELECTERRO, "Error WSAGETSELECTERRO");
    698698#endif
    699699#ifdef WSAETIMEDOUT
    700         inscode(d, ds, de, "WSAETIMEDOUT", WSAETIMEDOUT, "Connection timed out");
     700    inscode(d, ds, de, "WSAETIMEDOUT", WSAETIMEDOUT, "Connection timed out");
    701701#endif
    702702#ifdef WSAENOBUFS
    703         inscode(d, ds, de, "WSAENOBUFS", WSAENOBUFS, "No buffer space available");
     703    inscode(d, ds, de, "WSAENOBUFS", WSAENOBUFS, "No buffer space available");
    704704#endif
    705705#ifdef WSAEDISCON
    706         inscode(d, ds, de, "WSAEDISCON", WSAEDISCON, "Error WSAEDISCON");
     706    inscode(d, ds, de, "WSAEDISCON", WSAEDISCON, "Error WSAEDISCON");
    707707#endif
    708708#ifdef WSAEINTR
    709         inscode(d, ds, de, "WSAEINTR", WSAEINTR, "Interrupted system call");
     709    inscode(d, ds, de, "WSAEINTR", WSAEINTR, "Interrupted system call");
    710710#endif
    711711#ifdef WSAEPROTOTYPE
    712         inscode(d, ds, de, "WSAEPROTOTYPE", WSAEPROTOTYPE, "Protocol wrong type for socket");
     712    inscode(d, ds, de, "WSAEPROTOTYPE", WSAEPROTOTYPE, "Protocol wrong type for socket");
    713713#endif
    714714#ifdef WSAHOS
    715         inscode(d, ds, de, "WSAHOS", WSAHOS, "Error WSAHOS");
     715    inscode(d, ds, de, "WSAHOS", WSAHOS, "Error WSAHOS");
    716716#endif
    717717#ifdef WSAEADDRINUSE
    718         inscode(d, ds, de, "WSAEADDRINUSE", WSAEADDRINUSE, "Address already in use");
     718    inscode(d, ds, de, "WSAEADDRINUSE", WSAEADDRINUSE, "Address already in use");
    719719#endif
    720720#ifdef WSAEADDRNOTAVAIL
    721         inscode(d, ds, de, "WSAEADDRNOTAVAIL", WSAEADDRNOTAVAIL, "Cannot assign requested address");
     721    inscode(d, ds, de, "WSAEADDRNOTAVAIL", WSAEADDRNOTAVAIL, "Cannot assign requested address");
    722722#endif
    723723#ifdef WSAEALREADY
    724         inscode(d, ds, de, "WSAEALREADY", WSAEALREADY, "Operation already in progress");
     724    inscode(d, ds, de, "WSAEALREADY", WSAEALREADY, "Operation already in progress");
    725725#endif
    726726#ifdef WSAEPROTONOSUPPORT
    727         inscode(d, ds, de, "WSAEPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported");
     727    inscode(d, ds, de, "WSAEPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported");
    728728#endif
    729729#ifdef WSASYSNOTREADY
    730         inscode(d, ds, de, "WSASYSNOTREADY", WSASYSNOTREADY, "Error WSASYSNOTREADY");
     730    inscode(d, ds, de, "WSASYSNOTREADY", WSASYSNOTREADY, "Error WSASYSNOTREADY");
    731731#endif
    732732#ifdef WSAEWOULDBLOCK
    733         inscode(d, ds, de, "WSAEWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block");
     733    inscode(d, ds, de, "WSAEWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block");
    734734#endif
    735735#ifdef WSAEPFNOSUPPORT
    736         inscode(d, ds, de, "WSAEPFNOSUPPORT", WSAEPFNOSUPPORT, "Protocol family not supported");
     736    inscode(d, ds, de, "WSAEPFNOSUPPORT", WSAEPFNOSUPPORT, "Protocol family not supported");
    737737#endif
    738738#ifdef WSAEOPNOTSUPP
    739         inscode(d, ds, de, "WSAEOPNOTSUPP", WSAEOPNOTSUPP, "Operation not supported on transport endpoint");
     739    inscode(d, ds, de, "WSAEOPNOTSUPP", WSAEOPNOTSUPP, "Operation not supported on transport endpoint");
    740740#endif
    741741#ifdef WSAEISCONN
    742         inscode(d, ds, de, "WSAEISCONN", WSAEISCONN, "Transport endpoint is already connected");
     742    inscode(d, ds, de, "WSAEISCONN", WSAEISCONN, "Transport endpoint is already connected");
    743743#endif
    744744#ifdef WSAEDQUOT
    745         inscode(d, ds, de, "WSAEDQUOT", WSAEDQUOT, "Quota exceeded");
     745    inscode(d, ds, de, "WSAEDQUOT", WSAEDQUOT, "Quota exceeded");
    746746#endif
    747747#ifdef WSAENOTCONN
    748         inscode(d, ds, de, "WSAENOTCONN", WSAENOTCONN, "Transport endpoint is not connected");
     748    inscode(d, ds, de, "WSAENOTCONN", WSAENOTCONN, "Transport endpoint is not connected");
    749749#endif
    750750#ifdef WSAEREMOTE
    751         inscode(d, ds, de, "WSAEREMOTE", WSAEREMOTE, "Object is remote");
     751    inscode(d, ds, de, "WSAEREMOTE", WSAEREMOTE, "Object is remote");
    752752#endif
    753753#ifdef WSAEINVAL
    754         inscode(d, ds, de, "WSAEINVAL", WSAEINVAL, "Invalid argument");
     754    inscode(d, ds, de, "WSAEINVAL", WSAEINVAL, "Invalid argument");
    755755#endif
    756756#ifdef WSAEINPROGRESS
    757         inscode(d, ds, de, "WSAEINPROGRESS", WSAEINPROGRESS, "Operation now in progress");
     757    inscode(d, ds, de, "WSAEINPROGRESS", WSAEINPROGRESS, "Operation now in progress");
    758758#endif
    759759#ifdef WSAGETSELECTEVEN
    760         inscode(d, ds, de, "WSAGETSELECTEVEN", WSAGETSELECTEVEN, "Error WSAGETSELECTEVEN");
     760    inscode(d, ds, de, "WSAGETSELECTEVEN", WSAGETSELECTEVEN, "Error WSAGETSELECTEVEN");
    761761#endif
    762762#ifdef WSAESOCKTNOSUPPORT
    763         inscode(d, ds, de, "WSAESOCKTNOSUPPORT", WSAESOCKTNOSUPPORT, "Socket type not supported");
     763    inscode(d, ds, de, "WSAESOCKTNOSUPPORT", WSAESOCKTNOSUPPORT, "Socket type not supported");
    764764#endif
    765765#ifdef WSAGETASYNCERRO
    766         inscode(d, ds, de, "WSAGETASYNCERRO", WSAGETASYNCERRO, "Error WSAGETASYNCERRO");
     766    inscode(d, ds, de, "WSAGETASYNCERRO", WSAGETASYNCERRO, "Error WSAGETASYNCERRO");
    767767#endif
    768768#ifdef WSAMAKESELECTREPL
    769         inscode(d, ds, de, "WSAMAKESELECTREPL", WSAMAKESELECTREPL, "Error WSAMAKESELECTREPL");
     769    inscode(d, ds, de, "WSAMAKESELECTREPL", WSAMAKESELECTREPL, "Error WSAMAKESELECTREPL");
    770770#endif
    771771#ifdef WSAGETASYNCBUFLE
    772         inscode(d, ds, de, "WSAGETASYNCBUFLE", WSAGETASYNCBUFLE, "Error WSAGETASYNCBUFLE");
     772    inscode(d, ds, de, "WSAGETASYNCBUFLE", WSAGETASYNCBUFLE, "Error WSAGETASYNCBUFLE");
    773773#endif
    774774#ifdef WSAEDESTADDRREQ
    775         inscode(d, ds, de, "WSAEDESTADDRREQ", WSAEDESTADDRREQ, "Destination address required");
     775    inscode(d, ds, de, "WSAEDESTADDRREQ", WSAEDESTADDRREQ, "Destination address required");
    776776#endif
    777777#ifdef WSAECONNREFUSED
    778         inscode(d, ds, de, "WSAECONNREFUSED", WSAECONNREFUSED, "Connection refused");
     778    inscode(d, ds, de, "WSAECONNREFUSED", WSAECONNREFUSED, "Connection refused");
    779779#endif
    780780#ifdef WSAENETRESET
    781         inscode(d, ds, de, "WSAENETRESET", WSAENETRESET, "Network dropped connection because of reset");
     781    inscode(d, ds, de, "WSAENETRESET", WSAENETRESET, "Network dropped connection because of reset");
    782782#endif
    783783#ifdef WSAN
    784         inscode(d, ds, de, "WSAN", WSAN, "Error WSAN");
    785 #endif
    786 
    787         Py_DECREF(de);
     784    inscode(d, ds, de, "WSAN", WSAN, "Error WSAN");
     785#endif
     786#ifdef ENOTSUP
     787    inscode(d, ds, de, "ENOTSUP", ENOTSUP, "Operation not supported");
     788#endif
     789
     790    Py_DECREF(de);
    788791}
Note: See TracChangeset for help on using the changeset viewer.