Subject: Re: syslog_r (Re: CVS commit: src/lib/libc)
To: None <tech-userlevel@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-userlevel
Date: 10/26/2006 23:14:17
On Thu, Oct 26, 2006 at 09:32:22PM +0100, David Laight wrote:
> On Thu, Oct 26, 2006 at 10:23:56PM +0200, Joerg Sonnenberger wrote:
> > On Thu, Oct 26, 2006 at 10:17:34PM +0200, Jaromir Dolecek wrote:
> > > BTW, how hard it would be to make __dtoa() use caller-provided
> > > buffer and thus making it reentrant & async-signal-safe?
> >
> > gdtoa internally keeps a number of high-precision integers in a cache.
> > Those are dynamically allocated and therefore not async-signal safe. I
> > don't think that can be fixed non-trivally as it is a property of the
> > algorithm.
>
> Are they constants? or do they depend on the input data ?
Constant, but huge. You certainly don't want to include them in libc.
Joerg