From dev-return-8209-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Sun Oct 13 18:03:29 2002 Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 18706 invoked by uid 500); 13 Oct 2002 18:03:27 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 18685 invoked from network); 13 Oct 2002 18:03:26 -0000 Errors-To: Message-Id: <5.1.0.14.2.20021013125420.025d5e58@pop3.rowe-clan.net> X-Sender: wrowe%rowe-clan.net@pop3.rowe-clan.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 13 Oct 2002 12:59:11 -0500 To: Jeff Trawick From: "William A. Rowe, Jr." Subject: Re: cvs commit: apr/include apr_errno.h Cc: "William A. Rowe, Jr." , dev@apr.apache.org, apr-cvs@apache.org In-Reply-To: References: <5.1.0.14.2.20021013085530.03591790@pop3.rowe-clan.net> <20021013040835.20552.qmail@icarus.apache.org> <20021013040835.20552.qmail@icarus.apache.org> <5.1.0.14.2.20021013085530.03591790@pop3.rowe-clan.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Jeff... I finally see that h_errno values don't map to the errno domain, and that only [HOST_NOT_FOUND] [NO_DATA] [NO_RECOVERY] [TRY_AGAIN] are supported. Yes you are right on h_errno... that should be totally internal to the use of fns. However, I'm increasingly concerned that we need appropriate result APR_STATUS_IS_Efoo() tests (to the caller of APR) for the results of the network host db functions whenever we use endhostent, gethostbyaddr, gethostbyname, gethostent, and sethostent. That probably means mapping them into typical APR_Efoo() errors, since the caller isn't allowed to look at errno (it's not a defined result of any apr_ calls.) I'm cleaning up the changes now and will come back with the right code for h_errno stuff. Bill At 10:15 AM 10/13/2002, Jeff Trawick wrote: >the codes themselves are not distinct... if you see the value 1, you >donn't know if it is an errno or h_errno or EAI_*