From owner-freebsd-current@FreeBSD.ORG Sat Feb 21 04:12:51 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B388916A4CE; Sat, 21 Feb 2004 04:12:51 -0800 (PST) Received: from mail015.syd.optusnet.com.au (mail015.syd.optusnet.com.au [211.29.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ED7743D2D; Sat, 21 Feb 2004 04:12:50 -0800 (PST) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) i1LCCmL00606; Sat, 21 Feb 2004 23:12:49 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1])i1L2AjZG008164; Sat, 21 Feb 2004 13:10:45 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.12.10/8.12.10/Submit) id i1L2AjlR008163; Sat, 21 Feb 2004 13:10:45 +1100 (EST) (envelope-from peter) Date: Sat, 21 Feb 2004 13:10:45 +1100 From: Peter Jeremy To: "Brian F. Feldman" Message-ID: <20040221021045.GB8042@server.vk2pj.dyndns.org> References: <200402210048.i1L0mVGW014390@green.homeunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200402210048.i1L0mVGW014390@green.homeunix.org> User-Agent: Mutt/1.4.2i cc: current@freebsd.org Subject: Re: Testers wanted: reentrant resolver X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2004 12:12:51 -0000 On Fri, Feb 20, 2004 at 07:48:31PM -0500, Brian F. Feldman wrote: >Other APIs have the option of failing. __h_errno() does not have the option >of failing, so what do I do if pthread_key_create() fails? Also, if >malloc() fails each time pthread_getspecific() returns NULL for the thread? An off-the-top-of-my-head answer would be for __h_errno() to return NETDB_INTERNAL with the relevant error in errno. My gut feeling is that if pthread_key_create() or malloc() fails, you have far more serious issues with that thread/process than not knowing whether a DNS lookup worked or not. Peter