Re: FreeBSD Thread-safe functions ... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: FreeBSD Thread-safe functions ...
Date
Msg-id 2577.1063594889@sss.pgh.pa.us
Whole thread Raw
In response to FreeBSD Thread-safe functions ...  ("Marc G. Fournier" <scrappy@hub.org>)
Responses Re: FreeBSD Thread-safe functions ...
List pgsql-hackers
"Marc G. Fournier" <scrappy@hub.org> writes:
> FreeBSD 5.x has a getpwuid_r function that should be used ... and, the
> word I got from one of the developers was that getaddrinfo(3) should be
> used instead of gethostbyname ...

Hm.  A quick grep shows that our *only* use of gethostbyname is in
src/port/getaddrinfo.c.  Seems like we should omit this "porting
requirement" on platforms that have getaddrinfo.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: FreeBSD Thread-safe functions ...
Next
From: Bruce Momjian
Date:
Subject: getaddrinfo() for threading instead of gethostbyname()