Subject: Re: syslog_r (Re: CVS commit: src/lib/libc)
To: None <tech-userlevel@netbsd.org>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: tech-userlevel
Date: 10/26/2006 22:17:34
--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Oct 26, 2006 at 10:07:03PM +0200, Joerg Sonnenberger wrote:
> 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 y=
ou
> > wish] wrappers that look like the nor _r functions, but they only do:
> >=20
> > 	fp->_flags |=3D __SAFE;
> >=20
> > Then we can use them in syslog_r(), and everything works as expected.
> > Well, floating point numbers print NaN, but...
>=20
> 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.

BTW, how hard it would be to make __dtoa() use caller-provided
buffer and thus making it reentrant & async-signal-safe?

Jaromir
--=20
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=3D- We can walk our road together if our goals are all the same;     -=3D-
-=3D- We can run alone and free if we pursue a different aim.          -=3D-

--ibTvN161/egqYuK8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: xBZRty9DZo0A164lBDDnKG4qAvnibZWE

iQCVAwUBRUEX3bZjOQfIPRaZAQFZLwQAnguwPO/cMY69WtQdtJD3/+PYOewiY/ui
V6aYB3Pkx8iolasnwW/+Ss0qD6d0diEUkyFFoZz5XbbJXm1eHqR4WI3UYjNxJr5y
nZjZa99Op0uufx+be4Al+dEX08uFsLbOgQM3JdDFytg3g9HIE8XsiujG0vI/mNtx
WLe2hroDK7U=
=Jwqh
-----END PGP SIGNATURE-----

--ibTvN161/egqYuK8--