From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 2 14:45:51 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE38237B401; Wed, 2 Jul 2003 14:45:51 -0700 (PDT) Received: from smtp.omnis.com (smtp.omnis.com [216.239.128.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DF9043FB1; Wed, 2 Jul 2003 14:45:51 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from salty.rapid.stbernard.com (corp-2.ipinc.com [199.245.188.2]) by smtp-relay.omnis.com (Postfix) with ESMTP id C1E305B6F8; Wed, 2 Jul 2003 14:45:49 -0700 (PDT) From: Wes Peters Organization: Softweyr.com To: Kris Kennaway , Stijn Hoop Date: Wed, 2 Jul 2003 14:45:49 -0700 User-Agent: KMail/1.5.2 References: <20030630144327.GB11983@pcwin002.win.tue.nl> <20030630213916.GA71908@rot13.obsecurity.org> In-Reply-To: <20030630213916.GA71908@rot13.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307021445.49545.wes@softweyr.com> cc: nectar@freebsd.org cc: gordon@freebsd.org cc: hackers@freebsd.org Subject: Re: gethostbyname_r X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2003 21:45:52 -0000 On Monday 30 June 2003 14:39, Kris Kennaway wrote: > On Mon, Jun 30, 2003 at 04:43:27PM +0200, Stijn Hoop wrote: > > Hi, > > > > I was wondering if anybody was working on an implementation of a > > reentrant gethostbyname_r function, mostly because it looks like > > mozilla/firebird will finally gain support for an async DNS thread > > in the near future. However, it is claimed in Mozilla's bug > > reporting system that FreeBSD 5.x doesn't have support for this. > > See > > > > http://bugzilla.mozilla.org/show_bug.cgi?id=70213#c36 > > > > A quick grep -r in /usr/src shows only hits in contrib, so it's > > probably true that it's not implemented. > > There was a bogus non-reentrant version half-implemented in libc in > both 4.x and 5.x, which I recently removed in 5.x. I need to remove > it on 4.x as well. General consensus seems to be that implementing > it properly is Hard. Yes, it is, or at least was in 4.x. I thought we got a shiny new gethostbyname_r with Jacques Vidrine's nss implementation in 5.0, though. Is this not right? -- "Where am I, and what am I doing in this handbasket?" Wes Peters wes@softweyr.com