NetBSD/libexec
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
..
atf-cleanup Adjust the build of the ATF tools to use the new paths to the source files 2008-05-01 15:35:14 +00:00
atf-exec Adjust the build of the ATF tools to use the new paths to the source files 2008-05-01 15:35:14 +00:00
atf-format Adjust the build of the ATF tools to use the new paths to the source files 2008-05-01 15:35:14 +00:00
atf-killpg Adjust the build of the ATF tools to use the new paths to the source files 2008-05-01 15:35:14 +00:00
atrun Fix build from dieter roelants 2008-04-05 20:17:37 +00:00
comsat Clarify how one is supposed to use the pointers returned by getutentries() 2008-07-13 20:07:48 +00:00
cron
fingerd change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
ftpd Add missing RCSID. 2008-06-09 01:00:23 +00:00
getNAME remove clause #3 from my license where there are no other 2008-05-29 14:51:25 +00:00
getty '_' is functionally alphanumeric in many contexts, including login names. 2008-04-13 02:38:01 +00:00
hpropd Add more required libraries by libkrb5 and libroken in NOPIC case. 2008-04-10 14:26:33 +00:00
httpd new openssl returns const method objects. 2008-05-10 19:25:20 +00:00
identd Avoid buffer overflow. 2006-09-29 17:02:04 +00:00
ipropd-master Add more required libraries by libkrb5 and libroken in NOPIC case. 2008-04-10 14:26:33 +00:00
ipropd-slave Add more required libraries by libkrb5 and libroken in NOPIC case. 2008-04-10 14:26:33 +00:00
kadmind Add more required libraries by libkrb5 and libroken in NOPIC case. 2008-04-10 14:26:33 +00:00
kpasswdd Add more required libraries by libkrb5 and libroken in NOPIC case. 2008-04-10 14:26:33 +00:00
ld.aout_so Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
ld.elf_so Fix error in previous. From nakayama@. 2008-06-05 00:03:20 +00:00
lfs_cleanerd Make sure all cached buffers with valid, not yet written data have been 2008-05-16 09:21:59 +00:00
mail.local Make sure temporary errors are reported as such, using status code 2008-05-04 03:03:11 +00:00
makekey
makewhatis Urgh, part of another patch for PR 35619 (which is for after the freeze) 2008-05-27 01:42:40 +00:00
rexecd Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
rlogind change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
rpc.rquotad change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
rpc.rstatd change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
rpc.rusersd convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
rpc.rwalld change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
rpc.sprayd change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
rshd convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
talkd y2038 fixes: time_t != long. 2008-03-04 03:05:00 +00:00
telnetd Move ctype.h from headers to files which really need it 2007-02-21 21:14:07 +00:00
tftpd change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
utmp_update Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
Makefile Import Heimdal-1.1 2008-03-22 08:36:48 +00:00
Makefile.inc Oops. USE_FORT needs to be in Makefile.inc, not Makefile, to cause the 2007-08-16 18:36:46 +00:00