freebsd-nq/lib
Peter Wemm e48f3cfbfc Rework previous commit.. I was confused by the number of diffs in the PR
and forgot what I was trying to do originally and accidently zapped
a feature. :-]  The problem is that we are converting a counted buffer in
a malloc pool into a null terminated C-style string.  I was calling realloc
originally to shrink the buffer to the desired size.  If realloc failed, we
still returned the valid buffer - the only thing wrong was it was a tad
too large.  The previous commit disabled this.

This commit now handles the three cases..
1: the buffer is exactly right for the null byte to terminate the
string (we don't call realloc).
2: it's got h.left = 0, so we must expand it to make room. If realloc
fails here, it's fatal.
3: if there's too much room, we realloc to shrink it - a failed realloc
is not fatal, we use the original buffer which is still valid.
1997-07-06 08:42:37 +00:00
..
compat
csu/i386 Import Lite2's src/lib, except for non-i386 machine-dependent directories, 1997-07-03 03:28:27 +00:00
libalias Create the alias library. This is currently only used by 1997-05-23 04:41:31 +00:00
libc Rework previous commit.. I was confused by the number of diffs in the PR 1997-07-06 08:42:37 +00:00
libc_r Bring back nanosleep from the cold. 1997-06-04 13:03:12 +00:00
libcom_err
libcompat This commit was generated by cvs2svn to compensate for changes in r27180, 1997-07-03 03:28:27 +00:00
libcrypt
libcurses This commit was generated by cvs2svn to compensate for changes in r27180, 1997-07-03 03:28:27 +00:00
libdisk
libedit Kill histedit.h again. Importing Lite2 brought it back for some reason 1997-07-03 04:15:01 +00:00
libf2c
libF77
libftpio
libgnumalloc
libI77
libipx
libkse Bring back nanosleep from the cold. 1997-06-04 13:03:12 +00:00
libkvm Import Lite2's src/lib, except for non-i386 machine-dependent directories, 1997-07-03 03:28:27 +00:00
libm This commit was generated by cvs2svn to compensate for changes in r27180, 1997-07-03 03:28:27 +00:00
libmd
libmytinfo
libncurses
libopie
libpam/modules Fix the man page's title (.Dt). 1997-06-02 17:24:36 +00:00
libpcap Bump minor version number. 1997-05-27 00:08:01 +00:00
libpthread Bring back nanosleep from the cold. 1997-06-04 13:03:12 +00:00
libresolv
librpc Import Lite2's src/lib, except for non-i386 machine-dependent directories, 1997-07-03 03:28:27 +00:00
librpcsvc Fix conflicts (this one is easy: there's just the Makefile). 1997-05-28 04:53:07 +00:00
libscsi
libskey
libss
libtcl
libtelnet
libterm Import Lite2's src/lib, except for non-i386 machine-dependent directories, 1997-07-03 03:28:27 +00:00
libtermcap
libutil Import Lite2's src/lib, except for non-i386 machine-dependent directories, 1997-07-03 03:28:27 +00:00
libxpg4
liby
libz
msun
ncurses/ncurses
Makefile Hook in alias library. 1997-05-23 04:46:49 +00:00
Makefile.inc