From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 18:05:51 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3247116A4B3 for ; Thu, 9 Oct 2003 18:05:51 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-169-107-253.dsl.lsan03.pacbell.net [64.169.107.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78BB343FE9 for ; Thu, 9 Oct 2003 18:05:38 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 44A1C66D97 for ; Thu, 9 Oct 2003 18:05:36 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id EE4F5B37; Thu, 9 Oct 2003 18:05:35 -0700 (PDT) Date: Thu, 9 Oct 2003 18:05:35 -0700 From: Kris Kennaway To: FreeBSD Questions Message-ID: <20031010010535.GD10682@rot13.obsecurity.org> References: <20031009233104.GG54245@keyslapper.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RhUH2Ysw6aD5utA4" Content-Disposition: inline In-Reply-To: <20031009233104.GG54245@keyslapper.org> User-Agent: Mutt/1.4.1i Subject: Re: thread safety and host lookups X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2003 01:05:51 -0000 --RhUH2Ysw6aD5utA4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 09, 2003 at 07:31:05PM -0400, Louis LeBlanc wrote: > Hey folks. I'm working on a port from Solaris to FreeBSD. For the > most part, things are pretty straightforward, but I can't seem to find > the details on thread safety for some system calls. >=20 > gethostbyname_r() is the thread safe call that replaces > gethostbyname() on Solaris. >=20 > Is there a similar alternative call in FreeBSD, or was the default > system call modified to ensure thread safety? Unfortunately FreeBSD does not support gethostbyname_r() at this time. However, it looks like bind9 has an implementation. Kris --RhUH2Ysw6aD5utA4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/hgXdWry0BWjoQKURAg8DAJ9K2HQ5Z7KngL4xuAAA/p4TUlXgHQCfd1d1 yymVoQjEfmc3u4cxkl7OeJ4= =YO9n -----END PGP SIGNATURE----- --RhUH2Ysw6aD5utA4--