freebsd_amp_hwpstate/usr.sbin
Bill Paul 5fe4681564 Fix for memory leak: specify NULL as openinfo parameter when calling
dbopen() to open an NIS map.

Testing with very large maps (e.g. a sample password database with 31,000+
entries) has shown that ypserv will leak memory (ps shows RSS and VSZ
growing to 4000 pages or more) when performing repeated yp_next()s or
a yp_all(). The problem with yp_all() is not immediately obvious since
the ypproc_all service is handled in a child process which exits once
the transfer is finished, but with repeated yp_next()s (like what you
get when you use getpwent() to scroll through the password database),
the parent ypserv grows to enormous size and never shrinks again.

It seems this is related to the HASHINFO parameters I used in yp_dblookup.c,
which I actually stole from pwd_mkdb. Calling dbopen() with the default
parameters (specifying openinfo as NULL) fixes the problem.

I still need to see how this impacts the other NIS tools. I'm also
considering changing from hash to btree databases: the hash database
method doesn't support R_CURSOR, which means yp_next_record() has to
do a lot of ugly work in order to reach an arbitrary location in the
database.
1996-04-11 20:54:15 +00:00
..
IPXrouted
ac Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
accton
adduser
amd Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
apm Open up /dev/apm instead of /dev/apm0. 1996-03-18 20:34:29 +00:00
apmconf Use /dev/apm instead of /dev/apm0. 1996-03-18 20:35:17 +00:00
arp
bad144
bootparamd Change references from rpc.bootparamd to bootparamd. 1996-04-07 23:28:25 +00:00
cdcontrol
chown
chroot
config Count PCI irqs in up to 4 ISAish counters named `pci irqnn' instead of 1996-03-29 15:04:14 +00:00
cron Quick patch to fix a bug where issuing ctl-c while in crontab -e 1996-04-09 20:28:16 +00:00
crunch
ctm Updated howmany() to be once again identical with the namespace-polluting 1996-03-19 15:36:32 +00:00
dev_mkdb
diskpart Merged type changes and overflow bug fixes from Lite2. 1996-03-19 15:38:44 +00:00
edquota Allow the use of uid ranges when using the "-p" option to allow 1996-03-31 20:57:44 +00:00
eeprom
fdcontrol
fdformat
fdwrite
inetd
iostat
kbdcontrol
kbdmap
kernbb
kgmon
kvm_mkdb
lpr Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
lptcontrol Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
lsdev
manctl
mixer
mkdosfs
mount_portalfs
mountd Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
mrouted
mtree
named delete /usr/ucb from PATH 1996-03-12 21:46:08 +00:00
ncrcontrol
newsyslog
nfsd
nologin
nslookup
pccard Run indent on all these files to make them more readable. (I also went 1996-04-10 06:49:32 +00:00
pcvt Correct paths for pcvt in FreeBSD. Close PR#1071 1996-03-10 02:16:58 +00:00
pkg_install Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
portmap
ppp Fix editing mistake in last commit...sorry. 1996-04-11 08:24:04 +00:00
pppd Work around the problem that our -current pppd can no longer talk 1996-03-08 01:21:53 +00:00
pppstats
pstat From Lite2: file LIST changes. 1996-03-11 05:41:43 +00:00
pwd_mkdb
qcamcontrol Add support for /very/ experimental -e (exposure) option. 1996-03-21 08:19:10 +00:00
quot
quotaon
rarpd
repquota
rmt
rndcontrol
routed
rpc.lockd Correct the rpc.lockd and rpc.statd man pages to not reference 1996-04-07 08:55:32 +00:00
rpc.statd Correct the rpc.lockd and rpc.statd man pages to not reference 1996-04-07 08:55:32 +00:00
rpc.yppasswdd Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
rtprio
rwhod Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
sa Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
sade Major surgery. 1996-04-07 03:52:36 +00:00
sendmail Add the '8' flag to the smtp and esmtp mailers. This causes sendmail-8.7.5 1996-04-03 03:06:17 +00:00
sgsc
sicontrol
sliplogin
slstat
spkrtest
spray
sup
sysctl Fix a core dump when the user gives "-w" without an "=" 1996-04-10 00:53:22 +00:00
sysinstall Major surgery. 1996-04-07 03:52:36 +00:00
syslogd
tcpdump Update IGMP printing, removing the obsolete packet header version number & 1996-03-19 17:25:12 +00:00
timed Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
traceroute Bring in LBL traceroute, which has the '-g' option. This is a bugfixed and 1996-03-13 08:04:29 +00:00
trpt Include queue.h in preparation for struct socket changes. 1996-03-11 13:02:44 +00:00
tzsetup Copy /etc/localtime, unless it's already a symlink. 1996-04-01 08:17:49 +00:00
vidcontrol
vipw
vnconfig
watch Properly save and restore the terminal characters! 1996-03-01 18:21:41 +00:00
wormcontrol
xntpd
xten
ypbind
yppoll
yppush yppush_main.c: 1996-04-03 03:24:03 +00:00
ypserv Fix for memory leak: specify NULL as openinfo parameter when calling 1996-04-11 20:54:15 +00:00
ypset
zic
Makefile Add rpc.statd and the stub rpc.lockd, as these build and are of some use to 1996-04-04 03:17:48 +00:00
Makefile.inc