thread safety and host lookups
Kris Kennaway
kris at obsecurity.org
Thu Oct 9 18:05:51 PDT 2003
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.
>
> gethostbyname_r() is the thread safe call that replaces
> gethostbyname() on Solaris.
>
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031009/28571869/attachment.bin
More information about the freebsd-questions
mailing list