summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-07 09:20:12 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-07 09:20:12 +0000
commitf10f897bd10db621d8045ba40350b5eca637ea03 (patch)
treeb5c7b893769d2cd97ef71e0c7054096bcbb06283 /win32/win32.c
parent9f9388e57ea204d15f9ae073f043dc646739d0e7 (diff)
* include/ruby/win32.h: include errno.h before defining errnos.
* include/ruby/win32.h: check definition existance before defining errno macros. * win32/win32.c (errmap): define winsock errors mappings. these are VC++10 support, merge from trunk (r27236, r27258). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c49
1 files changed, 47 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 397374f8be..fe7bbc24c9 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -178,15 +178,60 @@ static struct {
{ ERROR_INFLOOP_IN_RELOC_CHAIN, ENOEXEC },
{ ERROR_FILENAME_EXCED_RANGE, ENOENT },
{ ERROR_NESTING_NOT_ALLOWED, EAGAIN },
+#ifndef ERROR_PIPE_LOCAL
+#define ERROR_PIPE_LOCAL 229L
+#endif
+ { ERROR_PIPE_LOCAL, EPIPE },
+ { ERROR_BAD_PIPE, EPIPE },
+ { ERROR_PIPE_BUSY, EAGAIN },
+ { ERROR_NO_DATA, EPIPE },
+ { ERROR_PIPE_NOT_CONNECTED, EPIPE },
+ { ERROR_OPERATION_ABORTED, EINTR },
{ ERROR_NOT_ENOUGH_QUOTA, ENOMEM },
- { WSAENAMETOOLONG, ENAMETOOLONG },
- { WSAENOTEMPTY, ENOTEMPTY },
+ { ERROR_MOD_NOT_FOUND, ENOENT },
{ WSAEINTR, EINTR },
{ WSAEBADF, EBADF },
{ WSAEACCES, EACCES },
{ WSAEFAULT, EFAULT },
{ WSAEINVAL, EINVAL },
{ WSAEMFILE, EMFILE },
+ { WSAEWOULDBLOCK, EWOULDBLOCK },
+ { WSAEINPROGRESS, EINPROGRESS },
+ { WSAEALREADY, EALREADY },
+ { WSAENOTSOCK, ENOTSOCK },
+ { WSAEDESTADDRREQ, EDESTADDRREQ },
+ { WSAEMSGSIZE, EMSGSIZE },
+ { WSAEPROTOTYPE, EPROTOTYPE },
+ { WSAENOPROTOOPT, ENOPROTOOPT },
+ { WSAEPROTONOSUPPORT, EPROTONOSUPPORT },
+ { WSAESOCKTNOSUPPORT, ESOCKTNOSUPPORT },
+ { WSAEOPNOTSUPP, EOPNOTSUPP },
+ { WSAEPFNOSUPPORT, EPFNOSUPPORT },
+ { WSAEAFNOSUPPORT, EAFNOSUPPORT },
+ { WSAEADDRINUSE, EADDRINUSE },
+ { WSAEADDRNOTAVAIL, EADDRNOTAVAIL },
+ { WSAENETDOWN, ENETDOWN },
+ { WSAENETUNREACH, ENETUNREACH },
+ { WSAENETRESET, ENETRESET },
+ { WSAECONNABORTED, ECONNABORTED },
+ { WSAECONNRESET, ECONNRESET },
+ { WSAENOBUFS, ENOBUFS },
+ { WSAEISCONN, EISCONN },
+ { WSAENOTCONN, ENOTCONN },
+ { WSAESHUTDOWN, ESHUTDOWN },
+ { WSAETOOMANYREFS, ETOOMANYREFS },
+ { WSAETIMEDOUT, ETIMEDOUT },
+ { WSAECONNREFUSED, ECONNREFUSED },
+ { WSAELOOP, ELOOP },
+ { WSAENAMETOOLONG, ENAMETOOLONG },
+ { WSAEHOSTDOWN, EHOSTDOWN },
+ { WSAEHOSTUNREACH, EHOSTUNREACH },
+ { WSAEPROCLIM, EPROCLIM },
+ { WSAENOTEMPTY, ENOTEMPTY },
+ { WSAEUSERS, EUSERS },
+ { WSAEDQUOT, EDQUOT },
+ { WSAESTALE, ESTALE },
+ { WSAEREMOTE, EREMOTE },
};
int