Subject: Re: gethostbyname_r() ?
To: None <tech-net@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-net
Date: 07/17/2006 17:01:10
In article <20060717163204.GD17998@apb-laptoy.apb.alt.za>,
Alan Barrett  <apb@cequrux.com> wrote:
>On Mon, 17 Jul 2006, Jan Danielsson wrote:
>>    "FreeBSD 4.x, all versions of OpenBSD, and all versions of NetBSD
>> have broken gethostbyname_r() implementations
>
>I was unable to find a gethostbyname_r() implementation in NetBSD.
>According to nm(1), none of /usr/lib/libc.a or /usr/lib/lib*thread*.a
>contains a gethostbyname_r symbol; and according to grep, nothing in
>/usr/include contains a declaration for a function by that name.  I
>assume that the author of that wiki article didn't bother to distinguish
>between "missing" and "broken".

These days one is supposed to be using getaddrinfo/getnameinfo. Searching
for gethostbyname_r() in search.opengroup.org returns the empty set.

christos