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:07:03
On Thu, Oct 26, 2006 at 07:18:12PM +0000, Christos Zoulas wrote:
> Finally we provide a snprintf_r() and a vsnprintf_r() [call them what you
> wish] wrappers that look like the nor _r functions, but they only do:
> 
> 	fp->_flags |= __SAFE;
> 
> Then we can use them in syslog_r(), and everything works as expected.
> Well, floating point numbers print NaN, but...

Fine with me with the exception of using public names for them. They
should be kept internal, so that we can later fix the issue without
having to alter the ABI of libc.

Joerg