freebsd-dev/lib
Peter Wemm 15aa00d597 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
..
csu/i386 `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
libc Add an implementation of the gnu-ish asprintf() and vasprintf(). They are 1996-05-27 10:49:43 +00:00
libc_r `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
libcom_err Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libcompat Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
libcrypt Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libcurses Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libdisk `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
libedit This commit was generated by cvs2svn to compensate for changes in r13122, 1995-12-30 19:02:48 +00:00
libf2c Update to the 1995/09/20 version. Previous version was 1993/12/17. 1995-09-28 20:49:15 +00:00
libF77 recording cvs-1.6 file death 1995-12-30 19:02:48 +00:00
libfakegnumalloc Some fixes: 1996-02-12 12:40:04 +00:00
libforms hash_search() has changed its calling semantics somewhat - bring 1996-04-30 00:17:56 +00:00
libgnumalloc Some fixes: 1996-02-12 12:40:04 +00:00
libI77 Update to the 1995/09/20 version. Previous version was 1993/12/17. 1995-09-28 20:49:15 +00:00
libipx Do not install the now unsupported netns and netiso 1996-04-08 05:15:09 +00:00
libkse `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
libkvm NBPG -> PAGE_SIZE 1996-05-02 09:23:36 +00:00
libm `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
libmd Don't install mdX.3, it's the template used to build the other pages. 1996-02-09 22:44:44 +00:00
libmytinfo recording cvs-1.6 file death 1995-12-30 19:02:48 +00:00
libncurses The traceon and traceoff directives aren't in this version ncurses. 1996-04-25 01:18:30 +00:00
libpam/modules #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
libpcap `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
libpthread `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
libresolv BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
librpcsvc If we are going to set the OBJS target, don't add to the old target. This 1995-03-04 17:39:24 +00:00
libscsi Add a couple more man page links and some minor formatting fixes. 1996-02-09 02:49:14 +00:00
libskey /etc/skeykeys was basically suffering from the same vulnerability 1996-04-26 21:33:18 +00:00
libss `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
libtelnet This commit was generated by cvs2svn to compensate for changes in r13122, 1995-12-30 19:02:48 +00:00
libtermcap Another round of man page cleanups. 1996-02-12 04:57:03 +00:00
libutil If the two recently added sysctl variables exist, use those rather than 1996-02-24 14:37:30 +00:00
libxpg4 Add more stuff moved out from XPG3 1995-11-03 09:03:00 +00:00
liby BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
msun Don't trash %ebp. 1996-02-25 20:29:46 +00:00
ncurses/ncurses Added some missing MLINKS for section 3 man pages. 1996-02-09 00:45:45 +00:00
Makefile Add libdisk. 1996-03-18 18:59:08 +00:00
Makefile.inc From 1.1.5: define default shared library versions. For 2.0, use version 1994-08-04 22:44:00 +00:00