Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Oct 2003 18:05:35 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        FreeBSD Questions <freebsd-questions@FreeBSD.org>
Subject:   Re: thread safety and host lookups
Message-ID:  <20031010010535.GD10682@rot13.obsecurity.org>
In-Reply-To: <20031009233104.GG54245@keyslapper.org>
References:  <20031009233104.GG54245@keyslapper.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031010010535.GD10682>