From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: FreeBSD Thread-safe functions ... |
Date: | 2003-09-15 03:59:04 |
Message-ID: | 200309150359.h8F3x4108165@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> "Marc G. Fournier" <scrappy(at)hub(dot)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.
See the post I just made --- fe-secure.c calls pqGethostbyname(), and
that should be converted to getaddrinfo --- once that is done, we can
omit the test on platforms with getaddrinfo() as you indicated.
Can someone handle this. I am heading to Mexico tomorrow. I an adjust
the test script when I return but I would like to see fe-secure.c
adjusted.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-09-15 04:00:53 | Heading to Mexico on Monday |
Previous Message | Bruce Momjian | 2003-09-15 03:55:29 | getaddrinfo() for threading instead of gethostbyname() |