summaryrefslogtreecommitdiff
path: root/libguile/net_db.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-01-05 22:17:26 +0100
committerLudovic Courtès <ludo@gnu.org>2011-01-05 22:17:26 +0100
commit66d86131086d80356bfde1a9ea920f9bfb2b304c (patch)
treec39134acc6db15b4ff980774a9ebd3e2a774699f /libguile/net_db.c
parent8891bd1b166b7210c241a0c1a730fc3af7f45b8a (diff)
downloadguile-66d86131086d80356bfde1a9ea920f9bfb2b304c.tar.gz
Change `getaddrinfo' test to handle the GNU-specific `EAI_NODATA'.
* doc/ref/posix.texi (Network Databases): Mention `EAI_NODATA'. * libguile/net_db.c (scm_getaddrinfo): Likewise for the docstring. * test-suite/tests/net-db.test ("getaddrinfo")["no name"]: Handle `EAI_NODATA'.
Diffstat (limited to 'libguile/net_db.c')
-rw-r--r--libguile/net_db.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libguile/net_db.c b/libguile/net_db.c
index bcba18ebd..14722d516 100644
--- a/libguile/net_db.c
+++ b/libguile/net_db.c
@@ -1,5 +1,5 @@
/* "net_db.c" network database support
- * Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2006, 2009, 2010 Free Software Foundation, Inc.
+ * Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2006, 2009, 2010, 2011 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
@@ -590,6 +590,11 @@ 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"
+ "@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"
+ "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"
"@item EAI_SOCKTYPE\n"