This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Handle more Winsock error codes.
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 15 Jun 2015 14:17:24 -0000
- Subject: [newlib-cygwin] Handle more Winsock error codes.
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6f9e2f3ed5ee1364dab6a47c604a6d7d370aab5c
commit 6f9e2f3ed5ee1364dab6a47c604a6d7d370aab5c
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Mon Jun 15 16:17:16 2015 +0200
Handle more Winsock error codes.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/ChangeLog | 4 ++++
winsup/cygwin/net.cc | 3 +++
2 files changed, 7 insertions(+)
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1eafa28..bb6da15 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2015-06-15 Corinna Vinschen <corinna@vinschen.de>
+ * net.cc (errmap): Handle more Winsock error codes.
+
+2015-06-15 Corinna Vinschen <corinna@vinschen.de>
+
* exceptions.cc (_cygtls::call_signal_handler): Disable enforcing
SA_RESTART in non-main threads to allow returning with EINTR from
system calls.
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index e94eb50..ae86129 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -169,6 +169,9 @@ struct tl
};
static const struct tl errmap[] = {
+ {WSA_INVALID_HANDLE, "WSA_INVALID_HANDLE", EBADF},
+ {WSA_NOT_ENOUGH_MEMORY, "WSA_NOT_ENOUGH_MEMORY", ENOMEM},
+ {WSA_INVALID_PARAMETER, "WSA_INVALID_PARAMETER", EINVAL},
{WSAEINTR, "WSAEINTR", EINTR},
{WSAEWOULDBLOCK, "WSAEWOULDBLOCK", EWOULDBLOCK},
{WSAEINPROGRESS, "WSAEINPROGRESS", EINPROGRESS},