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 22:23:56
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.

Joerg