1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

getaddrinfo: Document the missing errno value for EAI_SYSTEM.

In response to <http://bugs.gnu.org/13958>.
Reported by Lluís Batlle i Rossell <viric@viric.name>.

* doc/ref/posix.texi (Network Databases): Document the missing errno
  value for EAI_SYSTEM.
* libguile/net_db.c (scm_getaddrinfo): Likewise.
This commit is contained in:
Ludovic Courtès 2013-03-25 22:46:53 +01:00
parent 570fdeceac
commit 5bb40f9df0
2 changed files with 9 additions and 4 deletions

View file

@ -2562,8 +2562,11 @@ code should be prepared to handle it when it is defined.
@var{hint_socktype} was not recognized.
@item EAI_SYSTEM
A system error occurred; the error code can be found in
@code{errno}.
A system error occurred. In C, the error code can be found in
@code{errno}; this value is not accessible from Scheme, but in
practice it provides little information about the actual error
cause.
@c See <http://bugs.gnu.org/13958>.
@end table
Users are encouraged to read the

View file

@ -595,8 +595,10 @@ SCM_DEFINE (scm_getaddrinfo, "getaddrinfo", 1, 5, 0,
"@item EAI_SOCKTYPE\n"
"@var{hint_socktype} was not recognized.\n\n"
"@item EAI_SYSTEM\n"
"A system error occurred; the error code can be found in "
"@code{errno}.\n"
"A system error occurred. In C, the error code can be found in "
"@code{errno}; this value is not accessible from Scheme, but in\n"
"practice it provides little information about the actual error "
"cause.\n\n" /* see <http://bugs.gnu.org/13958>. */
"@end table\n"
"\n"
"Users are encouraged to read the "