<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/stdio/printf.3, branch release/2.2.8_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC: Spelling corrections from PR 6868.</title>
<updated>1998-06-06T06:09:26+00:00</updated>
<author>
<name>Joseph Koshy</name>
<email>jkoshy@FreeBSD.org</email>
</author>
<published>1998-06-06T06:09:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=058bfe4aa5d3a3228a43f40b6acfd253a059bf49'/>
<id>058bfe4aa5d3a3228a43f40b6acfd253a059bf49</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC: various improvements to printf() family, among them support for</title>
<updated>1998-02-17T17:33:57+00:00</updated>
<author>
<name>Jordan K. Hubbard</name>
<email>jkh@FreeBSD.org</email>
</author>
<published>1998-02-17T17:33:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=84f7f79739e7ad9afacc3756e82ca782f8128082'/>
<id>84f7f79739e7ad9afacc3756e82ca782f8128082</id>
<content type='text'>
long double.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
long double.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update some more man pages to use the .Fx macro.</title>
<updated>1996-08-21T22:10:36+00:00</updated>
<author>
<name>Mike Pritchard</name>
<email>mpp@FreeBSD.org</email>
</author>
<published>1996-08-21T22:10:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a2d402aa3c31a7d04a8bc2be5387920460b5ee40'/>
<id>a2d402aa3c31a7d04a8bc2be5387920460b5ee40</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Reword the sentence about the required space for the result string.</title>
<updated>1996-06-09T06:48:42+00:00</updated>
<author>
<name>Joerg Wunsch</name>
<email>joerg@FreeBSD.org</email>
</author>
<published>1996-06-09T06:48:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d230d4275aef34bea1c1fd8e672a162cdc321492'/>
<id>d230d4275aef34bea1c1fd8e672a162cdc321492</id>
<content type='text'>
Closes PR # 1303.-
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes PR # 1303.-
</pre>
</div>
</content>
</entry>
<entry>
<title>Add an implementation of the gnu-ish asprintf() and vasprintf().  They are</title>
<updated>1996-05-27T10:49:43+00:00</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1996-05-27T10:49:43+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=15aa00d597010009c3fb718ded37438aa3f601ab'/>
<id>15aa00d597010009c3fb718ded37438aa3f601ab</id>
<content type='text'>
not based on gpl'ed code, just prototype and usage.  I'm not 100% certain
they behave the same while the system is in trouble (eg: malloc() failing)
but in those circumstances all bets would be off anyway.

These routines work like sprintf() and vsprintf(), except that instead of
using a fixed buffer, they allocate memory and return it to the user
and it's the user's responsibility to free() it.  They have allocate as
much memory as they need (and can get), so the size of strings it can deal
with is limited only by the amount of memory it can malloc() on your
behalf.

There are a few gpl'ed programs starting to use this interface, and it's
becoming more common with the scares about security risks with sprintf().
I dont like the look of the code that the various programs (including
cvs, gdb, libg++, etc) provide if configure can't find it on the system.

It should be possible to modify the stdio core code to provide this
interface more efficiently, I was more worried about having something
that worked and was secure.  :-)  (I noticed that there was once intended
to be a smprintf() routine when our stdio was written for 4.4BSD, but it
looks pretty stillborn, and it's intended interface is not clear).  Since
Linux and gnu libc have this interface, it seemed silly to bring yet
another one onto the scene.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
not based on gpl'ed code, just prototype and usage.  I'm not 100% certain
they behave the same while the system is in trouble (eg: malloc() failing)
but in those circumstances all bets would be off anyway.

These routines work like sprintf() and vsprintf(), except that instead of
using a fixed buffer, they allocate memory and return it to the user
and it's the user's responsibility to free() it.  They have allocate as
much memory as they need (and can get), so the size of strings it can deal
with is limited only by the amount of memory it can malloc() on your
behalf.

There are a few gpl'ed programs starting to use this interface, and it's
becoming more common with the scares about security risks with sprintf().
I dont like the look of the code that the various programs (including
cvs, gdb, libg++, etc) provide if configure can't find it on the system.

It should be possible to modify the stdio core code to provide this
interface more efficiently, I was more worried about having something
that worked and was secure.  :-)  (I noticed that there was once intended
to be a smprintf() routine when our stdio was written for 4.4BSD, but it
looks pretty stillborn, and it's intended interface is not clear).  Since
Linux and gnu libc have this interface, it seemed silly to bring yet
another one onto the scene.
</pre>
</div>
</content>
</entry>
<entry>
<title>Correct a minor typo.  Fixes part of PR#1000.</title>
<updated>1996-04-09T21:48:21+00:00</updated>
<author>
<name>Mike Pritchard</name>
<email>mpp@FreeBSD.org</email>
</author>
<published>1996-04-09T21:48:21+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=20631f47f16df06373ffdbbc2f2d4a4307f0b047'/>
<id>20631f47f16df06373ffdbbc2f2d4a4307f0b047</id>
<content type='text'>
Submitted by:	Dave Glowacki &lt;dglo@ssec.wisc.edu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Submitted by:	Dave Glowacki &lt;dglo@ssec.wisc.edu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed typo.</title>
<updated>1995-05-15T12:23:03+00:00</updated>
<author>
<name>David Greenman</name>
<email>dg@FreeBSD.org</email>
</author>
<published>1995-05-15T12:23:03+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=dbe38b75e5bfe6470c657079040eda053ed84d03'/>
<id>dbe38b75e5bfe6470c657079040eda053ed84d03</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BSD 4.4 Lite Lib Sources</title>
<updated>1994-05-27T05:00:24+00:00</updated>
<author>
<name>Rodney W. Grimes</name>
<email>rgrimes@FreeBSD.org</email>
</author>
<published>1994-05-27T05:00:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=58f0484fa251c266ede97b591b499fe3dd4f578e'/>
<id>58f0484fa251c266ede97b591b499fe3dd4f578e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
