From dima@unixfreak.org  Sun Feb 18 02:59:59 2001
Return-Path: <dima@unixfreak.org>
Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138])
	by hub.freebsd.org (Postfix) with ESMTP id 07F4237B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Feb 2001 02:59:59 -0800 (PST)
Received: from hornet.unixfreak.org (hornet [63.198.170.140])
	by bazooka.unixfreak.org (Postfix) with ESMTP id C14CD3E0C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Feb 2001 02:59:58 -0800 (PST)
Received: (from dima@localhost)
	by hornet.unixfreak.org (8.11.1/8.11.1) id f1IAxwk95433;
	Sun, 18 Feb 2001 02:59:58 -0800 (PST)
	(envelope-from dima)
Message-Id: <200102181059.f1IAxwk95433@hornet.unixfreak.org>
Date: Sun, 18 Feb 2001 02:59:58 -0800 (PST)
From: dima@unixfreak.org
Reply-To: dima@unixfreak.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] getaddrinfo(3) manual page has an incomplete list of possible error codes
X-Send-Pr-Version: 3.2

>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:    dd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 18 03:00:02 PST 2001
>Closed-Date:    Mon Mar 12 17:08:46 PST 2001
>Last-Modified:  Mon Mar 12 17:09:18 PST 2001
>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:
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Mon Mar 12 17:08:46 PST 2001 
State-Changed-Why:  
Patch committed. 


Responsible-Changed-From-To: freebsd-doc->dd 
Responsible-Changed-By: dd 
Responsible-Changed-When: Mon Mar 12 17:08:46 PST 2001 
Responsible-Changed-Why:  
My PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25188 
>Unformatted:
