Date: Thu, 23 Jan 2003 19:20:55 +0200 From: Peter Pentchev <roam@ringlet.net> To: "M. Warner Losh" <imp@bsdimp.com> Cc: ben@timing.com, freebsd-arch@FreeBSD.ORG Subject: Re: _REENTRANT in math.h & libm oddities. Message-ID: <20030123172055.GB19717@straylight.oblivion.bg> In-Reply-To: <20030123.101335.95024590.imp@bsdimp.com> References: <15920.6175.737639.566519@piglet.timing.com> <20030123.101335.95024590.imp@bsdimp.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 & lgamma: > : 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. > > This is likely also an issue. > > : 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) > > I'd remove it completely, unless the standard's wonks think some name > space pollution avoiding typedef is necessary. > > : - add prototypes for gammaf_r & lgammaf_r to math.h > > I'd add it as above. > > : - update the lgamma(3) man page to mention gamma_r, lgamma_r, gammaf_r, > : and lgammaf_r > > 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 -- 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. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+MCR37Ri2jRYZRVMRAgLNAKDAce9Ya65srfbsEz9WgbM7fYdzjACgxDVX DiXIkdNwy9o4pLGLI5hztuk= =Bq1T -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030123172055.GB19717>
