From owner-freebsd-arch Thu Jan 23 13:32:47 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 BA9FE37B401 for ; Thu, 23 Jan 2003 13:32:46 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id E79AF43F18 for ; Thu, 23 Jan 2003 13:32:45 -0800 (PST) (envelope-from eischen@pcnet1.pcnet.com) Received: from localhost (eischen@localhost) by mail.pcnet.com (8.12.3/8.12.1) with ESMTP id h0NLWjpQ017884; Thu, 23 Jan 2003 16:32:45 -0500 (EST) Date: Thu, 23 Jan 2003 16:32:44 -0500 (EST) From: Daniel Eischen To: Warner Losh Cc: ben@timing.com, freebsd-arch@FreeBSD.ORG Subject: Re: _REENTRANT in math.h & libm oddities. In-Reply-To: <200301232122.h0NLM31e003077@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 23 Jan 2003, Warner Losh wrote: > In message Daniel Eischen writes: > : The gcc manpage is wrong. It should state _REENTRANT instead of > : _THREAD_SAFE. POSIX specifies that _REENTRANT be defined to get > : these functions. I know that we always provide implementations > : of most of these _r functions so it might not make sense to > : #ifdef them in the header files, but I don't know that always > : making them visible would be against the spec or cause namespace > : pollution. > > Then FreeBSD's source tree is basically wrong, since it uses > _THREAD_SAFE for this in many places. But most of them appear to be > just defining the macro for compiles and such. There's a little bit > in libc's stdio still, but that's the only significant place that uses > it in the tree. I'm not sure about out-of-tree software. I removed a lot of the _THREAD_SAFE stuff a couple of years ago, but it wasn't complete removed. -stable might be worse off. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message