From owner-freebsd-arch Thu Jan 23 14:43: 3 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 A7F9A37B401 for ; Thu, 23 Jan 2003 14:43:02 -0800 (PST) Received: from Daffy.timing.com (daffy.timing.com [206.168.13.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id F03F343F13 for ; Thu, 23 Jan 2003 14:43:01 -0800 (PST) (envelope-from ben@timing.com) Received: from piglet.timing.com (piglet.timing.com [206.168.13.178]) by Daffy.timing.com (8.11.3/8.11.3) with ESMTP id h0NMh0H02672; Thu, 23 Jan 2003 15:43:00 -0700 (MST) (envelope-from ben@timing.com) Received: from piglet.timing.com (localhost.timing.com [127.0.0.1]) by piglet.timing.com (8.12.6/8.12.6) with ESMTP id h0NMh0vR042158; Thu, 23 Jan 2003 15:43:00 -0700 (MST) (envelope-from ben@piglet.timing.com) Received: (from ben@localhost) by piglet.timing.com (8.12.6/8.12.6/Submit) id h0NMgxGa042155; Thu, 23 Jan 2003 15:42:59 -0700 (MST) From: Ben Mesander MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15920.28659.884511.537371@piglet.timing.com> Date: Thu, 23 Jan 2003 15:42:59 -0700 To: Daniel Eischen Cc: Ben Mesander , Warner Losh , freebsd-arch@FreeBSD.ORG Subject: Re: _REENTRANT in math.h & libm oddities. In-Reply-To: References: <15920.25508.766136.494182@piglet.timing.com> X-Mailer: VM 7.00 under Emacs 21.2.93.1 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 Daniel Eischen writes: > Compiling with -D_REENTRANT doesn't mean you have to be a > threaded program, nor automatically linked to the threads > library :-) Well, fair enough. And you're right, solaris (which is where msun came from a long time ago) still has the _REENTRANT. I should have looked at some of the solaris machines I have accounts on. Does the conditional that Mike Barcroft suggested: #if defined(__BSD_VISIBLE) || (defined(__POSIX_VISIBLE) && defined(_REENTRANT)) Seem reasonable to you? Regards, Ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message