NetBSD/usr.bin/systat
dholland 16e3bec279 Clarify how one is supposed to use the pointers returned by getutentries()
(the utmpentry.c code), specifically with respect to who owns them and
when to free them. Now they're owned by utmpentry.c, only. Abolish the
freeutentries() function, which was the wrong abstraction; add instead
endutentries(), which flushes out the internally managed memory.

Update callers as necessary. Some (e.g. talkd) had been leaking memory;
others (e.g. syslogd) had been accidentally freeing and reloading utmp
more often than necessary. There are a couple untidy bits in users and
rwhod that someone should look after sometime, maybe.

Fixes PR bin/35131, which was about talkd's memory leak.
2008-07-13 20:07:48 +00:00
..
bufcache.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cmds.c
cmdtab.c Include code to display per system call counts and times. 2007-02-18 17:00:08 +00:00
df.c
disks.c
extern.h Use sysctl to fetch network statistics unless a memory file is specified 2008-04-10 17:14:25 +00:00
fetch.c
globalcmds.c
icmp.c Don't even bother initializing the namelist if we're not going to use it. 2008-04-10 17:16:39 +00:00
iostat.c
ip6.c Don't even bother initializing the namelist if we're not going to use it. 2008-04-10 17:16:39 +00:00
ip.c Don't even bother initializing the namelist if we're not going to use it. 2008-04-10 17:16:39 +00:00
ipsec.c Make IPSEC and FAST_IPSEC stats per-cpu. Use <net/net_stats.h> and 2008-04-23 06:09:04 +00:00
keyboard.c don't call curses from a signal handler! 2007-12-31 00:22:13 +00:00
main.c Use sysctl to fetch network statistics unless a memory file is specified 2008-04-10 17:14:25 +00:00
Makefile Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
mbufs.c use c99 initializers 2006-10-22 16:43:24 +00:00
netcmds.c
netstat.c use c99 initializers 2006-10-22 16:43:24 +00:00
pigs.c use c99 initializers 2006-10-22 16:43:24 +00:00
ps.c Revert the changes done after newlock2 merge, except for the removal of 2007-02-17 22:49:56 +00:00
ps.h
swap.c convert the rest of my licenses to 2-clause, extracting myself out 2008-05-30 02:29:37 +00:00
syscall.c Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
systat.1 Document 'systat syscall'. 2007-02-18 17:29:26 +00:00
systat.h
tcp.c Don't even bother initializing the namelist if we're not going to use it. 2008-04-10 17:16:39 +00:00
vmstat.c Clarify how one is supposed to use the pointers returned by getutentries() 2008-07-13 20:07:48 +00:00
vmstat.h