Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2001 02:59:58 -0800 (PST)
From:      dima@unixfreak.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/25188: [PATCH] getaddrinfo(3) manual page has an incomplete list of possible error codes
Message-ID:  <200102181059.f1IAxwk95433@hornet.unixfreak.org>

next in thread | raw e-mail | index | archive | help

>Number:         25188
>Category:       docs
>Synopsis:       [PATCH] getaddrinfo(3) manual page has an incomplete list of possible error codes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 18 03:00:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dima Dorfman
>Release:        FreeBSD 4.2-20010102-STABLE i386
>Organization:
Private
>Environment:

4.2-STABLE or 5.0-CURRENT from 2001/01/22

>Description:

The getaddrinfo(3) manual page doesn't mention some of the possible
return codes.  This is just a minor annoyance.

>How-To-Repeat:

Read the manual page; look at the section which mentions return codes;
wonder why you got an error that isn't listed; drink a cola; fix your
code after hitting yourself on the head for doing something really
dumb; write a patch to the manual page.  (Sorry for the bad joke, but
there's nothing that really fits in this section.)

>Fix:

Apply the following to src/lib/libc/net/getaddrinfo.3.

Index: getaddrinfo.3
===================================================================
RCS file: /st/src/FreeBSD/src/lib/libc/net/getaddrinfo.3,v
retrieving revision 1.7
diff -u -r1.7 getaddrinfo.3
--- getaddrinfo.3	2000/11/20 14:11:43	1.7
+++ getaddrinfo.3	2001/02/16 04:08:58
@@ -545,6 +545,18 @@
 .It Dv EAI_SYSTEM
 System error returned in
 .Va errno .
+.It Dv EAI_BADHINTS
+Invalid value for
+.Fa hints .
+.It Dv EAI_PROTOCOL
+Resolved protocol is unknown.
+.It Dv EAI_RESNULL
+Argument
+.Fa res
+is
+.Dv NULL .
+.It Dv EAI_MAX
+Unknown error.
 .El
 .Pp
 If called with proper argument,



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102181059.f1IAxwk95433>