From owner-cvs-all@FreeBSD.ORG Wed Feb 25 13:13:25 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id ADA6B16A4CE; Wed, 25 Feb 2004 13:13:25 -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 i1PLDOws065493; Wed, 25 Feb 2004 16:13:24 -0500 (EST) (envelope-from green@green.homeunix.org) Received: from localhost (green@localhost)i1PLDOtN065489; Wed, 25 Feb 2004 16:13:24 -0500 (EST) Message-Id: <200402252113.i1PLDOtN065489@green.homeunix.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org In-Reply-To: Message from Brian Feldman <200402252103.i1PL3kkh030016@repoman.freebsd.org> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 25 Feb 2004 16:13:24 -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-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2004 21:13:26 -0000 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. Geez, I certainly hope no English teachers ever see that paragraph. This has been tested by several other -CURRENT users with no issues, so be certain to report any as they come up. There shouldn't be much software which has to be recompiled, outside of the base system. The resolver(3) interface is not very portable, so usage of the _res structure should be relatively rare, and threaded programs should already be using getaddrinfo(3) and getting error returns via that API, and not via h_errno. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\