From owner-freebsd-arch Thu Jan 23 16:58:35 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 068C637B401 for ; Thu, 23 Jan 2003 16:58:34 -0800 (PST) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 548B543ED8 for ; Thu, 23 Jan 2003 16:58:33 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.6/8.12.6) with ESMTP id h0O0wVbs052923 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 23 Jan 2003 19:58:32 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.6/8.12.6/Submit) id h0O0wVt3052922; Thu, 23 Jan 2003 19:58:31 -0500 (EST) (envelope-from wollman) Date: Thu, 23 Jan 2003 19:58:31 -0500 (EST) From: Garrett Wollman Message-Id: <200301240058.h0O0wVt3052922@khavrinen.lcs.mit.edu> To: eischen@pcnet1.pcnet.com Subject: Re: _REENTRANT in math.h & libm oddities. In-Reply-To: References: <20030123.101335.95024590.imp@bsdimp.com> Organization: MIT Laboratory for Computer Science Cc: arch@FreeBSD.org 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 article you write: >The gcc manpage is wrong. It should state _REENTRANT instead of >_THREAD_SAFE. POSIX specifies that _REENTRANT be defined to get >these functions. Obsolete versions of POSIX might say that. The current version of POSIX says nothing of the kind: it says that functions of that sort *shall be declared*, unconditionally. As I noted elsewhere, the functions in question (lgamma_r() etc.) are not standard functions at all and POSIX doesn't give a whoop about when they are declared, provided that they are NOT declared when _POSIX_C_SOURCE == 200112L. -GAWollman -- Garrett A. Wollman | [G]enes make enzymes, and enzymes control the rates of wollman@lcs.mit.edu | chemical processes. Genes do not make ``novelty- Opinions not those of| seeking'' or any other complex and overt behavior. MIT, LCS, CRS, or NSA| - Stephen Jay Gould (1941-2002) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message