summaryrefslogtreecommitdiff
path: root/libguile/net_db.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-02-03 10:30:52 +0100
committerLudovic Courtès <ludo@gnu.org>2012-02-03 10:30:52 +0100
commit1ba05158ebe033d7d0bdfcfef686eae2c9ea0103 (patch)
tree63d9035c7835b2ed82b47fda1fb371775b9a5460 /libguile/net_db.c
parent6f63f118ef15d4c44ed87944735c0cf32153408a (diff)
downloadguile-1ba05158ebe033d7d0bdfcfef686eae2c9ea0103.tar.gz
tests: Have `getaddrinfo' test work for Darwin 8.
* doc/ref/posix.texi (Network Databases): Update description of `EAI_NODATA' to mention that Darwin provides it. * libguile/net_db.c (scm_getaddrinfo): Likewise. * test-suite/tests/net-db.test ("getaddrinfo")["wrong service name"]: Accept `EAI_NODATA' too. Reported by David Fang <fang@csl.cornell.edu>, see <http://bugs.gnu.org/10684>.
Diffstat (limited to 'libguile/net_db.c')
-rw-r--r--libguile/net_db.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/libguile/net_db.c b/libguile/net_db.c
index 61dd2f386..4d63aabcc 100644
--- a/libguile/net_db.c
+++ b/libguile/net_db.c
@@ -1,6 +1,7 @@
/* "net_db.c" network database support
- * Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2006, 2009, 2010, 2011 Free Software Foundation, Inc.
- *
+ * Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2006, 2009,
+ * 2010, 2011, 2012 Free Software Foundation, Inc.
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 3 of
@@ -590,10 +591,14 @@ SCM_DEFINE (scm_getaddrinfo, "getaddrinfo", 1, 5, 0,
"@item EAI_NONAME\n"
"Either @var{name} does not resolve for the supplied parameters, "
"or neither @var{name} nor @var{service} were supplied.\n\n"
+
+ /* See `sysdeps/posix/getaddrinfo.c' in the GNU libc, and
+ <http://www.opensource.apple.com/source/Libinfo/Libinfo-324.1/lookup.subproj/netdb.h>,
+ for details on EAI_NODATA. */
"@item EAI_NODATA\n"
- "This non-POSIX error code can be returned on GNU systems when a\n"
- "request was actually made but returned no data, meaning\n"
- "that no address is associated with @var{name}. Error handling\n"
+ "This non-POSIX error code can be returned on some systems (GNU "
+ "and Darwin, at least), for example when @var{name} is known "
+ "but requests that were made turned out no data. Error handling\n"
"code should be prepared to handle it when it is defined.\n\n"
"@item EAI_SERVICE\n"
"@var{service} was not recognized for the specified socket type.\n\n"