Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2003 17:03:30 -0500
From:      Mike Barcroft <mike@FreeBSD.org>
To:        Ben Mesander <ben@timing.com>
Cc:        Warner Losh <imp@harmony.village.org>, Daniel Eischen <eischen@pcnet1.pcnet.com>, freebsd-arch@FreeBSD.ORG
Subject:   Re: _REENTRANT in math.h & libm oddities.
Message-ID:  <20030123170330.A32279@espresso.q9media.com>
In-Reply-To: <15920.26383.567651.566335@piglet.timing.com>; from ben@timing.com on Thu, Jan 23, 2003 at 03:05:03PM -0700
References:  <Pine.GSO.4.10.10301231601440.12720-100000@pcnet1.pcnet.com> <200301232122.h0NLM31e003077@harmony.village.org> <15920.25508.766136.494182@piglet.timing.com> <15920.26383.567651.566335@piglet.timing.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ben Mesander <ben@timing.com> writes:
> Ben Mesander writes:
>  > But even so, I disagree that the _r function definitions should only
>  > appear in math.h if _REENTRANT is defined. That is, I disagree unless
>  > the POSIX specification says otherwise; I've been surprised by it
>  > before. I was unaware that POSIX mentioned _REENTRANT.
> 
> The folks on freebsd-standards said that the defns for the threadsafe
> gamma funcs should be in the BSD namespace (__BSD_VISIBLE).

I've only been eyeballing this and the other thread, but I think the
conditional we're looking for is:

#if defined(__BSD_VISIBLE) || (defined(__POSIX_VISIBLE) && defined(_REENTRANT))

This provides the reentrant functions in the unencumbered (no standard
specified) namespace and in the POSIX namespace when requested.

Best regards,
Mike Barcroft

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030123170330.A32279>