From owner-freebsd-doc Sun Feb 18 3: 0:15 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 067FD37B401 for ; Sun, 18 Feb 2001 03:00:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1IB02n33758; Sun, 18 Feb 2001 03:00:02 -0800 (PST) (envelope-from gnats) Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 07F4237B401 for ; 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 ; 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 X-Send-Pr-Version: 3.2 Subject: docs/25188: [PATCH] getaddrinfo(3) manual page has an incomplete list of possible error codes Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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