Skip site navigation (1) Skip section navigation (2)

Re: Unixware Patch (Was: Re: Beta2 Tag'd and Bundled ...)

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>,Peter Eisentraut <peter_e(at)gmx(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>,"Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>,pgsql-hackers(at)postgresql(dot)org
Subject: Re: Unixware Patch (Was: Re: Beta2 Tag'd and Bundled ...)
Date: 2003-08-30 04:13:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

--On Saturday, August 30, 2003 01:09:54 -0300 "Marc G. Fournier" 
<scrappy(at)hub(dot)org> wrote:

> 'K, but why the change to NEEDS_REENTRANT_FUNC_NAMES in the first place?
> The thing that has me most confused here is that the end result is the
> same with or without the patch, from what I can tell ... the right side of
> the && will always resolve to TRUE, before or after the patch ... no?
I want to conditionalize ONLY getpwuid_r, and not strerror_r and 

So, I changed the NEED_REENTRANT_FUNC_NAMES to no, or undefined in the
template, and need a configure check to set HAVE_GETPWUID_R, so we will
use getpwuid_r in the ENABLE_THREADS case.

UnixWare does NOT have strerror_r nor does it have gethostbyname_r, and the
libc versions are reentrant in libc, for those 2.  We need to use 
getpwuid_r for
threaded apps.

Does this clarify things?


Larry Rosenman           
Phone: +1 972-414-9812                 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to


pgsql-hackers by date

Next:From: Bruce MomjianDate: 2003-08-30 04:17:41
Subject: Re: Unixware Patch (Was: Re: Beta2 Tag'd and Bundled ...)
Previous:From: Bruce MomjianDate: 2003-08-30 04:12:24
Subject: Re: SetVariable

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group