1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/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 Add libg++ 3.0 1997-04-03 06:08:28 +00:00
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 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
libcompat This commit was generated by cvs2svn to compensate for changes in r27180, 1997-07-03 03:28:27 +00:00
libcrypt Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
libcurses This commit was generated by cvs2svn to compensate for changes in r27180, 1997-07-03 03:28:27 +00:00
libdisk Fixed this header to compile with gcc -pedantic -Werror (removed comma 1997-03-19 01:54:04 +00:00
libedit Kill histedit.h again. Importing Lite2 brought it back for some reason 1997-07-03 04:15:01 +00:00
libf2c Add a -I switch to CFLAGS to use the f2c.h header file in the usr.bin/f2c 1997-04-24 17:10:56 +00:00
libF77 Upgrade to the 1997/02/26 version. 1997-04-13 01:16:58 +00:00
libftpio Make this C++ safe. 1997-05-05 11:18:55 +00:00
libgnumalloc Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
libI77 Upgrade to the 1997/02/26 version. 1997-04-13 01:16:58 +00:00
libipx Fixed missing const in synopsis. 1997-04-13 14:12:48 +00:00
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 FIxed arg types (mostly missing consts) in synopsis. 1997-03-19 00:52:58 +00:00
libmytinfo Remove conflicting declaration of sys_errlist, which caused make world 1997-03-29 17:42:32 +00:00
libncurses Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
libopie Install opie.h in /usr/include 1997-03-08 19:42:41 +00:00
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 Yet another attempt to remove the old libraries correctly. libfoo.* 1996-10-08 20:06:41 +00:00
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 Don't use the undocumented .Fr (function return value) macro for function 1997-03-19 22:09:08 +00:00
libskey Fixed synopsis (missing #includes and consts). 1997-03-19 01:33:23 +00:00
libss Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
libtcl Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
libtelnet Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
libterm Import Lite2's src/lib, except for non-i386 machine-dependent directories, 1997-07-03 03:28:27 +00:00
libtermcap Fixed spelling of __set_ospeed (was _set_ospeed) and improved 1997-04-13 12:16:59 +00:00
libutil Import Lite2's src/lib, except for non-i386 machine-dependent directories, 1997-07-03 03:28:27 +00:00
libxpg4
liby Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
libz Back out an easy $FreeBSD$ 1997-02-22 11:38:21 +00:00
msun Fixed wrong mnemonic `setnel' that gas happened to generate correct object 1997-04-30 20:37:52 +00:00
ncurses/ncurses Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
Makefile Hook in alias library. 1997-05-23 04:46:49 +00:00
Makefile.inc