From owner-freebsd-arch Thu Jan 23 9:22:13 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 76E2937B401 for ; Thu, 23 Jan 2003 09:22:11 -0800 (PST) Received: from straylight.ringlet.net (office.sbnd.net [217.75.140.130]) by mx1.FreeBSD.org (Postfix) with SMTP id 6A60C43EB2 for ; Thu, 23 Jan 2003 09:22:06 -0800 (PST) (envelope-from roam@straylight.ringlet.net) Received: (qmail 20072 invoked by uid 1000); 23 Jan 2003 17:20:56 -0000 Date: Thu, 23 Jan 2003 19:20:55 +0200 From: Peter Pentchev To: "M. Warner Losh" Cc: ben@timing.com, freebsd-arch@FreeBSD.ORG Subject: Re: _REENTRANT in math.h & libm oddities. Message-ID: <20030123172055.GB19717@straylight.oblivion.bg> Mail-Followup-To: "M. Warner Losh" , ben@timing.com, freebsd-arch@FreeBSD.ORG References: <15920.6175.737639.566519@piglet.timing.com> <20030123.101335.95024590.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: <20030123.101335.95024590.imp@bsdimp.com> User-Agent: Mutt/1.5.3i 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 --17pEHd4RhPHOinZp Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 23, 2003 at 10:13:35AM -0700, M. Warner Losh wrote: [snip] > : Also note that there are reentrant API's available for gammaf & lgamm= a: > : gammaf_r and lgammaf_r, but there are no prototypes for these in > : math.h. Additionally, there is no mention of the four functions > : gamma_r, lgamma_r, gammaf_r, and lgammaf_r on the lgamma(3) man page. >=20 > This is likely also an issue. >=20 > : Is it worthwhile to work up a patch to: > : - remove _REENTRANT from math.h (and replace with _THREAD_SAFE if > : people think that is appropriate) >=20 > I'd remove it completely, unless the standard's wonks think some name > space pollution avoiding typedef is necessary. >=20 > : - add prototypes for gammaf_r & lgammaf_r to math.h >=20 > I'd add it as above. >=20 > : - update the lgamma(3) man page to mention gamma_r, lgamma_r, gammaf_= r, > : and lgammaf_r >=20 > Safe. With all this talk of removing / adding prototypes, and generally changing math.h, I hope that both you and the original poster are aware of the several math.h discussion threads on the -standards list :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I am jealous of the first word in this sentence. --17pEHd4RhPHOinZp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+MCR37Ri2jRYZRVMRAgLNAKDAce9Ya65srfbsEz9WgbM7fYdzjACgxDVX DiXIkdNwy9o4pLGLI5hztuk= =Bq1T -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message