From owner-cvs-src@FreeBSD.ORG Wed Feb 25 14:16:08 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0271116A4CE; Wed, 25 Feb 2004 14:16:08 -0800 (PST) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.10/8.12.9) with ESMTP id i1PMG7ws065872; Wed, 25 Feb 2004 17:16:07 -0500 (EST) (envelope-from green@green.homeunix.org) Received: from localhost (green@localhost)i1PMG6FP065868; Wed, 25 Feb 2004 17:16:06 -0500 (EST) Message-Id: <200402252216.i1PMG6FP065868@green.homeunix.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Andrey Chernov , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG In-Reply-To: Message from Andrey Chernov <20040225220326.GA18680@nagual.pp.ru> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 25 Feb 2004 17:16:06 -0500 Sender: green@green.homeunix.org Subject: Re: cvs commit: src/include netdb.h resolv.h src/lib/libc/include reentrant.h src/lib/libc/net getaddrinfo.3 getaddrinfo.c gethostbydns.c gethostbyname.3 gethostbynis.c getipnodebyname.3 herror.c name6.c res_init.c res_send.c res_send_private.h ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2004 22:16:08 -0000 Andrey Chernov wrote: > On Wed, Feb 25, 2004 at 01:03:46PM -0800, Brian Feldman wrote: > > Make the resolver(3) and many associated interfaces much more reentrant. > > The getaddrinfo(3), getipnodebyname(3) and resolver(3) can coincide now > > with what should be totally reentrant, and h_errno values will now > > be preserved correctly, but this does not affect interfaces such as > > gethostbyname(3) which are still mostly non-reentrant. > > Is there any chances to implement gethostbyname_r(3) (like in Solaris)? It > will be very useful for milters, they often want it. It should be quite straightforward, but would touch a lot of the files in libc/net/, because there is no locking whatsoever in things related to gethostbyname(3). I would actually suggest the possibility of implementing gethostbyname_r(3) as a wrapper to getaddrinfo(3). -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\