Re: gethostbyname_r

From: Kris Kennaway (kris_at_obsecurity.org)
Date: 06/30/03


Date: Mon, 30 Jun 2003 14:39:16 -0700
To: Stijn Hoop <stijn@win.tue.nl>


On Mon, Jun 30, 2003 at 04:43:27PM +0200, Stijn Hoop wrote:
> Hi,
>
> I was wondering if anybody was working on an implementation of a reentrant
> gethostbyname_r function, mostly because it looks like mozilla/firebird will
> finally gain support for an async DNS thread in the near future. However,
> it is claimed in Mozilla's bug reporting system that FreeBSD 5.x doesn't
> have support for this. See
>
> http://bugzilla.mozilla.org/show_bug.cgi?id=70213#c36
>
> A quick grep -r in /usr/src shows only hits in contrib, so it's probably
> true that it's not implemented.

There was a bogus non-reentrant version half-implemented in libc in
both 4.x and 5.x, which I recently removed in 5.x. I need to remove
it on 4.x as well. General consensus seems to be that implementing it
properly is Hard.

Kris






Relevant Pages

  • Re: gethostbyname_r
    ... On Mon, 30 Jun 2003, Stijn Hoop wrote: ... > reentrant gethostbyname_r function, ... > mozilla/firebird will finally gain support for an async DNS thread in ... doing the patch is considering using it for FreeBSD. ...
    (freebsd-hackers)
  • gethostbyname_r
    ... I was wondering if anybody was working on an implementation of a reentrant ... mostly because it looks like mozilla/firebird will ... finally gain support for an async DNS thread in the near future. ... A quick grep -r in /usr/src shows only hits in contrib, ...
    (freebsd-hackers)