From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Lee Kindness <lkindness(at)csl(dot)co(dot)uk>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: libpq_r |
Date: | 2003-07-24 15:30:10 |
Message-ID: | 68690000.1059060610@lerlaptop-red.iadfw.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
--On Thursday, July 24, 2003 17:21:17 +0200 Peter Eisentraut
<peter_e(at)gmx(dot)net> wrote:
> Bruce Momjian writes:
>
>> Now I see what you are saying, that _REENTRANT just makes it reentrant,
>
> _REENTRANT only makes additional functions visible in the header files, it
> doesn't change any functions to behave differently. (This is not hard to
> imagine, because the lack of reentrancy of most functions lies in the
> public interface, and you can't change that transparently.)
>
I beg to differ. Explicitly, on UnixWare, the <errno.h> header, reproduced
below, under
fair use, show an EXPLICIT difference in what happens with _REENTRANT:
$ cat /usr/include/errno.h
/*
* Copyright (c) 2002 Caldera International, Inc. All Rights Reserved.
*
* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
* Caldera International, Inc.
*
* The copyright notice above does not evidence any actual or intended
* publication of such source code.
*/
#ifndef _ERRNO_H
#define _ERRNO_H
#ident "@(#)unixsrc:usr/src/common/head/errno.h /main/uw7_nj/2"
#include <sys/errno.h>
#ifdef _REENTRANT
#ifdef __cplusplus
extern "C" {
#endif
extern int *__thr_errno(void);
#ifdef __cplusplus
}
#endif
#define errno (*__thr_errno())
#else /*!_REENTRANT*/
extern int errno;
#ifdef __cplusplus /* C++ requires that this be a macro! */
#define errno errno
#endif
#endif /*_REENTRANT*/
#endif /*_ERRNO_H*/
$
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2003-07-24 16:00:01 | Re: libpq_r |
Previous Message | Lee Kindness | 2003-07-24 15:29:58 | Re: libpq_r |