freebsd kernel with SKQ
Go to file
peter fbe6339187 Add an implementation of the gnu-ish asprintf() and vasprintf(). They are
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.
1996-05-27 10:49:43 +00:00
bin This commit was generated by cvs2svn to compensate for changes in r15920, 1996-05-27 01:41:12 +00:00
eBones Localize time 1996-05-07 19:05:10 +00:00
etc Eliminate warning message and add big warnings about security holes 1996-05-22 05:43:30 +00:00
games Find caesar and strfile properly. 1996-05-27 09:31:46 +00:00
gnu There's no -p flag to our diff. 1996-05-26 22:27:52 +00:00
include Add an implementation of the gnu-ish asprintf() and vasprintf(). They are 1996-05-27 10:49:43 +00:00
lib Add an implementation of the gnu-ish asprintf() and vasprintf(). They are 1996-05-27 10:49:43 +00:00
libexec When checking to see whether a needed shared library has already 1996-05-22 06:34:12 +00:00
lkm `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
release Fixed oops in previous change. 1996-05-24 15:35:36 +00:00
sbin Return make_union, s-bit removed 1996-05-19 17:24:10 +00:00
secure Localize time 1996-05-07 19:05:10 +00:00
share Add my PGP key 1996-05-27 02:33:13 +00:00
sys Cleanup the last of the assembly time "-KERNBASE" relocations. 1996-05-27 06:51:46 +00:00
tools Don't look in libkern, it went away. 1995-12-29 01:51:23 +00:00
usr.bin Changed printf for reporting transfer stats from using %.2g to %.2f to 1996-05-26 21:12:50 +00:00
usr.sbin Fixed oops in previous change. 1996-05-24 15:35:36 +00:00
COPYRIGHT
Makefile 1) make -DCLOBBER not remove most of /usr/lib 1996-05-04 07:12:07 +00:00