from the 5.x man page:
BUGS
The current implementation is not thread-safe.
On Mon, 15 Sep 2003, Dag-Erling [iso-8859-1] Smørgrav wrote:
> "Marc G. Fournier" <scrappy at hub.org> writes:
> > Your gethostbyname() is _not_ thread-safe
>
> Use getaddrinfo(3) instead.
>
> DES
> --
> Dag-Erling Smørgrav - des at des.no
>