[freetds] threadsafe

Frediano Ziglio freddyz77 at tin.it
Tue Aug 29 14:44:29 EDT 2006

Il giorno mar, 29/08/2006 alle 12.41 +0100, Patrick Welche ha scritto:
> On Wed, Aug 23, 2006 at 09:59:05PM +0200, Frediano Ziglio wrote:
> > Now I understand. You suggested to use getaddrinfo instead of
> > gethostbyname_r if not available. I though you means why we test for
> > getaddrinfo in configure... I think that one of the reasons why I didn't
> > use getaddrinfo is that on *BSD (where it is helpful to use it) this
> > function is not thread-safe...
> getaddrinfo is thread-safe on, yes it is NetBSD :-) , but the jury is out
> for getnameinfo..
> Cheers,

>From official manual 
seems not thread-safe...
It seems that in very recent versions of *BSD all lookup functions use
tls (thread locale storage) so even gethostbyname is thread-safe but in
former one getaddrinfo was not thread-safe (well.. I didn't checked but
I assume that all mans are right...)


More information about the FreeTDS mailing list