From owner-freebsd-arch Thu Jan 23 14:15: 9 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 295E937B405 for ; Thu, 23 Jan 2003 14:15:06 -0800 (PST) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 624B943ED8 for ; Thu, 23 Jan 2003 14:15:05 -0800 (PST) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 286759C4E; Thu, 23 Jan 2003 17:03:30 -0500 (EST) Date: Thu, 23 Jan 2003 17:03:30 -0500 From: Mike Barcroft To: Ben Mesander Cc: Warner Losh , Daniel Eischen , freebsd-arch@FreeBSD.ORG Subject: Re: _REENTRANT in math.h & libm oddities. Message-ID: <20030123170330.A32279@espresso.q9media.com> References: <200301232122.h0NLM31e003077@harmony.village.org> <15920.25508.766136.494182@piglet.timing.com> <15920.26383.567651.566335@piglet.timing.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15920.26383.567651.566335@piglet.timing.com>; from ben@timing.com on Thu, Jan 23, 2003 at 03:05:03PM -0700 Organization: The FreeBSD Project Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ben Mesander 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