Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2003 21:31:30 +0100 (CET)
From:      "Cordula's Web" <cpghost@cordula.ws>
To:        kris@obsecurity.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: No gethostbyname_r() in FreeBSD?
Message-ID:  <200311132031.hADKVTfU015985@fw.farid-hajji.net>
In-Reply-To: <20031113181648.GA52950@xor.obsecurity.org> (message from Kris Kennaway on Thu, 13 Nov 2003 10:16:48 -0800)
References:  <200311131559.hADFxLfU004445@fw.farid-hajji.net> <20031113181648.GA52950@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> > I'm trying to compile milter-dnsrbl.c from
> >   ftp://ftp.atnf.csiro.au/pub/people/rgooch/email-utilities/mailutils.tgz
> >
> > The problem is that gethostbyname_r() doesn't seem to exist
> > in FreeBSD. This is the code which uses it (from milter-dnsrbl.c):
> 
> It's a known issue.  There are some third party DNS libraries that
> provide an implementation, e.g. in newer versions of bind.

Ah, okay. Since I'm using system's BIND, I'll simply
replace gethostbyname_r() with a call to gethostbyname()
in this program and hope for the best [it doesn't look like
a reentrant version is needed in this special case]. I'll
google for the synopsis of gethostbyname_r() now.

Thanks for clarifying this!

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311132031.hADKVTfU015985>