VirtualBox

Changeset 51583 in vbox for trunk/src/VBox/NetworkServices


Ignore:
Timestamp:
Jun 10, 2014 12:41:42 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94288
Message:

NAT/Net: On Windows provide all "Berkeley" WSAE* error codes with
their unixy names. They conflict with "POSIX supplement" error codes
from <errno.h>, but we don't expect to ever encounter the latter in
the proxy code. Note that this change doesn't redefine short names
for low-numbered WSAE* codes that would conflict with regular CRT -
those will be dealt with separately.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/winutils.h

    r51582 r51583  
    4242 * "Windows Sockets Error Codes" obtained with WSAGetLastError().
    4343 * http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx
     44 *
     45 * This block of error codes from <winsock2.h> conflicts with "POSIX
     46 * supplement" error codes from <errno.h>, but we don't expect to ever
     47 * encounter the latter in the proxy code, so redefine them to their
     48 * unixy names.
    4449 */
     50#  undef  EWOULDBLOCK
     51#  define EWOULDBLOCK           WSAEWOULDBLOCK
     52#  undef  EINPROGRESS
     53#  define EINPROGRESS           WSAEINPROGRESS
     54#  undef  EALREADY
     55#  define EALREADY              WSAEALREADY
     56#  undef  ENOTSOCK
     57#  define ENOTSOCK              WSAENOTSOCK
     58#  undef  EDESTADDRREQ
     59#  define EDESTADDRREQ          WSAEDESTADDRREQ
    4560#  undef  EMSGSIZE
    4661#  define EMSGSIZE              WSAEMSGSIZE
     62#  undef  EPROTOTYPE
     63#  define EPROTOTYPE            WSAEPROTOTYPE
     64#  undef  ENOPROTOOPT
     65#  define ENOPROTOOPT           WSAENOPROTOOPT
     66#  undef  EPROTONOSUPPORT
     67#  define EPROTONOSUPPORT       WSAEPROTONOSUPPORT
     68#  undef  ESOCKTNOSUPPORT
     69#  define ESOCKTNOSUPPORT       WSAESOCKTNOSUPPORT
     70#  undef  EOPNOTSUPP
     71#  define EOPNOTSUPP            WSAEOPNOTSUPP
     72#  undef  EPFNOSUPPORT
     73#  define EPFNOSUPPORT          WSAEPFNOSUPPORT
     74#  undef  EAFNOSUPPORT
     75#  define EAFNOSUPPORT          WSAEAFNOSUPPORT
     76#  undef  EADDRINUSE
     77#  define EADDRINUSE            WSAEADDRINUSE
     78#  undef  EADDRNOTAVAIL
     79#  define EADDRNOTAVAIL         WSAEADDRNOTAVAIL
    4780#  undef  ENETDOWN
    4881#  define ENETDOWN              WSAENETDOWN
    4982#  undef  ENETUNREACH
    5083#  define ENETUNREACH           WSAENETUNREACH
     84#  undef  ENETRESET
     85#  define ENETRESET             WSAENETRESET
     86#  undef  ECONNABORTED
     87#  define ECONNABORTED          WSAECONNABORTED
     88#  undef  ECONNRESET
     89#  define ECONNRESET            WSAECONNRESET
     90#  undef  ENOBUFS
     91#  define ENOBUFS               WSAENOBUFS
     92#  undef  EISCONN
     93#  define EISCONN               WSAEISCONN
     94#  undef  ENOTCONN
     95#  define ENOTCONN              WSAENOTCONN
     96#  undef  ESHUTDOWN
     97#  define ESHUTDOWN             WSAESHUTDOWN
     98#  undef  ETOOMANYREFS
     99#  define ETOOMANYREFS          WSAETOOMANYREFS
     100#  undef  ETIMEDOUT
     101#  define ETIMEDOUT             WSAETIMEDOUT
     102#  undef  ECONNREFUSED
     103#  define ECONNREFUSED          WSAECONNREFUSED
     104#  undef  ELOOP
     105#  define ELOOP                 WSAELOOP
     106#  undef  ENAMETOOLONG
     107#  define ENAMETOOLONG          WSAENAMETOOLONG
    51108#  undef  EHOSTDOWN
    52109#  define EHOSTDOWN             WSAEHOSTDOWN
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette