diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-01-05 22:17:26 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-01-05 22:17:26 +0100 |
commit | 66d86131086d80356bfde1a9ea920f9bfb2b304c (patch) | |
tree | c39134acc6db15b4ff980774a9ebd3e2a774699f /doc/ref | |
parent | 8891bd1b166b7210c241a0c1a730fc3af7f45b8a (diff) | |
download | guile-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 'doc/ref')
-rw-r--r-- | doc/ref/posix.texi | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi index 468eaea8f..156ed5c28 100644 --- a/doc/ref/posix.texi +++ b/doc/ref/posix.texi @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Guile Reference Manual. -@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010 +@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 @c Free Software Foundation, Inc. @c See the file guile.texi for copying conditions. @@ -2497,6 +2497,12 @@ resolve the name. Either @var{name} does not resolve for the supplied parameters, or neither @var{name} nor @var{service} were supplied. +@item EAI_NODATA +This non-POSIX error code can be returned on GNU systems when a +request was actually made but returned no data, meaning +that no address is associated with @var{name}. Error handling +code should be prepared to handle it when it is defined. + @item EAI_SERVICE @var{service} was not recognized for the specified socket type. |