From owner-freebsd-standards Thu Jan 23 10:12:16 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CDD637B401 for ; Thu, 23 Jan 2003 10:12:15 -0800 (PST) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC58143F1E for ; Thu, 23 Jan 2003 10:12:14 -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 h0NIC1bs049628 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 23 Jan 2003 13:12:03 -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 h0NIC1vK049625; Thu, 23 Jan 2003 13:12:01 -0500 (EST) (envelope-from wollman) Date: Thu, 23 Jan 2003 13:12:01 -0500 (EST) From: Garrett Wollman Message-Id: <200301231812.h0NIC1vK049625@khavrinen.lcs.mit.edu> To: "M. Warner Losh" Cc: ryany@pobox.com, freebsd-standards@FreeBSD.ORG Subject: Re: math.h: first run In-Reply-To: <20030123.105659.100599437.imp@bsdimp.com> References: <20030121130737.6be86e80.ryany@pobox.com> <20030123.105659.100599437.imp@bsdimp.com> Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG < said: > This repeats the historical mistake about _REENTRANT defining > *gamma*_r functions we inherited from Sun. Shouldn't those be > protected by some more appropriate standards symbol? gamma_r functions are nonstandard. The Standard says: # These functions need not be reentrant. A function that is not # required to be reentrant is not required to be thread-safe. This is probably related to the XSI requirement to store the sign of the gamma function in the global variable `signgam', which obviously cannot be done reentrantly. As an implementation extension, we might choose to implement reentrant versions of the gamma family of functions. If we do so, they should be declared unconditionally in the BSD namespace (__BSD_VISIBLE) -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message