freebsd-skq/include
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
..
arpa Fix a bunch of spelling errors in the comment fields 1996-01-30 23:33:04 +00:00
protocols Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
rpc Remove unnecessary typedef. All inclusions of <rpc/auth.h> in the source 1996-01-31 08:02:11 +00:00
rpcsvc Add structure and procedure definitions for NIS v1. (This information 1996-02-26 02:22:53 +00:00
_ctype.h Fixed longstanding namespace convolution involving rune_t vs wchar_t. 1996-05-01 00:40:10 +00:00
a.out.h Woops, include machine/exec.h, too. 1994-09-24 21:49:20 +00:00
ar.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
assert.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
bitstring.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
ctype.h Fixed longstanding namespace convolution involving rune_t vs wchar_t. 1996-05-01 00:40:10 +00:00
db.h Fix conflicts and merge into mainline (this may get cvs admined out and redone properly by Peter later) 1996-02-27 19:42:44 +00:00
dirent.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
disktab.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
err.h Add err_set_file() and err_set_exit() functions to make it possible for 1995-04-13 18:04:11 +00:00
f2c.h Install f2c.h for FORTRAN support. 1994-10-26 18:35:40 +00:00
fnmatch.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
fstab.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
fts.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
glob.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
grp.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
histedit.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
kvm.h Comment out declaration of kvm_uread until it can be fixed correctly. 1995-03-20 16:35:11 +00:00
limits.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
link.h Fix a bunch of spelling errors in the comment fields 1996-01-30 23:33:04 +00:00
locale.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
Makefile Don't install netns, it doesn't exist any more. 1996-02-14 15:17:53 +00:00
malloc.h By Bruce and Joerg suggestions and by looking into June version 1994-11-17 11:04:49 +00:00
math.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
memory.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
mpool.h Fix conflicts and merge into mainline (this may get cvs admined out and redone properly by Peter later) 1996-02-27 19:42:44 +00:00
ndbm.h Don't reference ndbm(3) manpage. Everything is covered by db(3). 1996-03-03 09:04:40 +00:00
netdb.h Fix a bunch of spelling errors in the comment fields 1996-01-30 23:33:04 +00:00
nl_types.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
nlist.h Document some of the fields used by the new shlib code. 1994-12-23 22:32:48 +00:00
paths.h Due conflict to some obsoleted applications (dump/restore) rename 1995-09-23 15:14:25 +00:00
pthread.h Submitted by: john birrel 1996-01-22 00:24:56 +00:00
pwd.h NIS cleanups and fixes, the next generation. 1996-04-16 00:22:41 +00:00
ranlib.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
regex.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
regexp.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
resolv.h Fix a bunch of spelling errors in the comment fields 1996-01-30 23:33:04 +00:00
rune.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
runetype.h Fixed longstanding namespace convolution involving rune_t vs wchar_t. 1996-05-01 00:40:10 +00:00
setjmp.h Delete vax' (and i386' and `hp300' etc.) namespace pollution. 1994-10-30 00:21:30 +00:00
sgtty.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
signal.h Fix standards conformance bugs in <signal.h>: 1995-06-28 02:14:13 +00:00
stab.h Made them idempotent. 1994-08-21 04:03:58 +00:00
stddef.h Fixed longstanding namespace convolution involving rune_t vs wchar_t. 1996-05-01 00:40:10 +00:00
stdio.h Add an implementation of the gnu-ish asprintf() and vasprintf(). They are 1996-05-27 10:49:43 +00:00
stdlib.h Fixed longstanding namespace convolution involving rune_t vs wchar_t. 1996-05-01 00:40:10 +00:00
strhash.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
string.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
strings.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
struct.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
sysexits.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
tar.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
time.h Reviewed by: julian and (hsu?) 1996-01-22 00:02:33 +00:00
timers.h Submitted by: john birrel 1996-01-22 00:24:56 +00:00
ttyent.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
unistd.h Add prototype for rfork(). 1996-02-23 19:45:46 +00:00
utime.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
utmp.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
vis.h Made this work with the documented prerequisite #includes (none). 1996-05-01 00:57:57 +00:00