freebsd-src/lib
Bill Paul 4e6ace0853 Fix resource allocation problems:
- Completely recoded the ypmatch cache code. The old code could leak
  memory: it would allow the cache to grow, but never
  shrink. The new code imposes the following limits:

	o The cache is capped at a limit of 5 entries.
	o Each entry expires after five seconds, at which point
	  its slot is freed.
	o If an insertion is to be done and all five slots
	  are filled, the oldest entry is forcibly expired
	  to release its slot.

  Also, the cache is implemented on a per-binding basis rather than
  having a global cache covering all bindings. This means that each
  bound domain has its own 5 slot cache.

- Changed clntudp_create() to clntudp_bufcreate() so that the
  xmit/recv message buffer sizes can be set explicitly. NIS transactions
  are rarely much larger than 1024 bytes since YPMAXRECORD is 1024.
  The defaults chosen by clntudb_create() are actually much larger
  than needed. I set the xmit buffer to a little over 1024 and the
  recv buffer to a little over 2048. This saves a few Kbytes for each
  NIS binding.

- Add my name to the copyright. I think I've made enough changes to
  this file to merit it. :)

Note: these changes should go into the 2.2.x branch, but I'm waiting
on feedback from a tester to see if the cache fixes solve the reported
memory leak problem.
1998-03-07 05:06:10 +00:00
..
compat Add libg++ 3.0 1997-04-03 06:08:28 +00:00
csu Remove the include of <dlfcn.h> from crt0.c; it is not needed now 1998-02-11 04:57:25 +00:00
libalias 1) in CleanupAliasData, don't nullify entry in linkTableOut 1998-02-27 23:07:07 +00:00
libc Fix resource allocation problems: 1998-03-07 05:06:10 +00:00
libc_r Fixes from Jeremy Allison and Terry Lambert for pthreads: 1998-02-13 01:27:34 +00:00
libcalendar Delete "typedef ... date" (see style(9)). 1997-12-13 11:51:16 +00:00
libcom_err Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
libcompat kill the undead 1997-07-13 14:26:00 +00:00
libcrypt When compiling under elf, use correct library naming conventions. Also 1997-09-05 12:12:35 +00:00
libcurses Remove extra definition of vwprintw. 1997-08-23 23:23:07 +00:00
libdisk Reconized OpenBSD partitions. 1998-03-05 03:08:16 +00:00
libedit Don't swap carriage return and new line in quoted mode (after ^V). 1998-01-22 07:37:10 +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 environment variables missing from ftpio(3) man page 1998-02-10 07:01:51 +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 -I${DESTDIR}/sys -> -I${.CURDIR}/../../sys. 1997-08-26 14:13:02 +00:00
libkse Fixes from Jeremy Allison and Terry Lambert for pthreads: 1998-02-13 01:27:34 +00:00
libkvm Fixed bugs in the conversion of kvm to to use procfs in rev.1.3. All 1998-01-16 16:45:05 +00:00
libm This commit was generated by cvs2svn to compensate for changes in r27180, 1997-07-03 03:28:27 +00:00
libmd If not building a.out, still build a pic version of libmd. This allows 1997-09-05 11:49:43 +00:00
libmytinfo When printf'ing the result of pointer arithmetic, cast the result to 1998-01-13 03:07:10 +00:00
libncurses Avoid an uninitialised variable warning from gcc. I bet some people 1998-02-20 07:40:22 +00:00
libopie Move locks from /etc/opielocks to /var/run/opielocks to keep 1997-10-01 13:02:20 +00:00
libpam/modules Changes for KTH KerberosIV. 1997-09-28 08:57:24 +00:00
libpcap Also install pcap-int.h so things can call pcap_compile on arbitary 1997-10-10 11:55:42 +00:00
libpthread Fixes from Jeremy Allison and Terry Lambert for pthreads: 1998-02-13 01:27:34 +00:00
libresolv Yet another attempt to remove the old libraries correctly. libfoo.* 1996-10-08 20:06:41 +00:00
librpcsvc Don't add non-generated sources to CLEANFILES. There was no problem 1998-02-25 01:30:05 +00:00
libscsi -I${DESTDIR}/sys -> -I${.CURDIR}/../../sys. 1997-08-26 14:13:02 +00:00
libskey Compile under -W -Wall -Werror. 1998-02-27 22:36:51 +00:00
libss Use the standard method for avoiding concurrent builds of multiple targets 1998-03-06 13:44:12 +00:00
libtcl Don't install the tcl implementation headers. The tcl distribution 1998-01-17 15:52:32 +00:00
libtelnet Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
libtermcap Fixed the termcap 3.0 hacks. They were very broken in my configuration 1997-12-19 22:11:29 +00:00
libutil Change tty-related capability names to match the implementation ("ttys.", 1998-02-21 23:29:59 +00:00
libvgl Fix a few typos. 1997-10-22 23:12:27 +00:00
libxpg4 Add mskanji.c 1997-09-25 23:24:35 +00:00
liby Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
libz Install manpage too 1998-02-28 10:41:01 +00:00
msun Add alpha support. m68k crept in too. Oops. 8-) 1998-02-20 07:44:29 +00:00
ncurses/ncurses Remove terminfo manpage we don't have it 1997-10-20 17:53:55 +00:00
Makefile We can now build libm on Alpha. There is very little MD alpha code. 1998-01-10 22:51:51 +00:00
Makefile.inc