Subject: Re: gethostbyname_r() ?
To: None <>
From: Christos Zoulas <>
List: tech-net
Date: 07/17/2006 17:01:10
In article <>,
Alan Barrett  <> 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 returns the empty set.