Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-08-11 22:34:32 +0400
committerChristopher Faylor <me@cgf.cx>2004-08-11 22:34:32 +0400
commitcb3f750c79135d2d4a903e61107349c3ec69e254 (patch)
tree77f983812ee9bb45a298944d1bdd1632f33f9207
parentcbd6bc14070f831596c0679e21da827f259fe464 (diff)
* net.cc (cygwin_gethostbyname): Show failing host name on error.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/net.cc1
2 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index f90f1a04c..7bb900928 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-11 Christopher Faylor <cgf@timesys.com>
+
+ * net.cc (cygwin_gethostbyname): Show failing host name on error.
+
2004-08-10 Christopher Faylor <cgf@redhat.com>
* select.cc (select_stuff::wait): Correctly check for w4 array bounds.
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index b958e4365..ce1bf60e6 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -967,6 +967,7 @@ cygwin_gethostbyname (const char *name)
is_hostent);
if (!_my_tls.locals.hostent_buf)
{
+ debug_printf ("name %s", name);
set_winsock_errno ();
set_host_errno ();
}