From owner-freebsd-arch Thu Jan 23 13:22: 5 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 C8AD537B401 for ; Thu, 23 Jan 2003 13:22:04 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19F3843F1E for ; Thu, 23 Jan 2003 13:22:04 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id h0NLM31e003077; Thu, 23 Jan 2003 14:22:03 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200301232122.h0NLM31e003077@harmony.village.org> To: Daniel Eischen Subject: Re: _REENTRANT in math.h & libm oddities. Cc: ben@timing.com, freebsd-arch@FreeBSD.ORG In-reply-to: Your message of "Thu, 23 Jan 2003 16:06:40 EST." References: Date: Thu, 23 Jan 2003 14:22:03 -0700 From: Warner Losh 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 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. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message