NetBSD/games
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
..
adventure convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
arithmetic convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
atc Fix y2038 bug: time_t != int. 2008-01-31 05:19:44 +00:00
backgammon Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is 2008-05-03 14:48:30 +00:00
banner Bump date for previous. Use mdoc macros. 2006-12-23 09:47:30 +00:00
battlestar convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
bcd Add test for HAVE_PCC with HAVE_GCC which turn off compiler warning flags. 2008-07-12 12:29:42 +00:00
boggle convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
caesar Make the default WARNS for games 4. The only game that needs to set WARNS 2008-01-28 07:03:58 +00:00
canfield Work around gcc signedness warning: if you check for uid_t < 0, gcc warns 2008-01-28 02:37:50 +00:00
ching Quote macro. 2005-07-05 08:48:47 +00:00
countmail remove clause #3 from my license where there are no other 2008-05-29 14:51:25 +00:00
cribbage convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
dab 2-clause my license. 2008-05-08 15:31:07 +00:00
dm Clarify how one is supposed to use the pointers returned by getutentries() 2008-07-13 20:07:48 +00:00
factor convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
fish convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
fortune Fix a tip: use pkg_info, not pkg_add to find out which executables 2008-03-25 10:50:34 +00:00
gomoku build with WARNS=4 2008-01-28 07:01:01 +00:00
hack Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
hangman convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
hunt clean for WARNS=4 2008-01-28 03:23:29 +00:00
larn Split some code from moreobj.c into action.c, as per larn 12.2. 2008-02-19 06:05:26 +00:00
mille make mille build with WARNS=4 2008-01-28 05:55:10 +00:00
monop Don't crash if we're asked to restore from /dev/null. (woops) 2008-02-24 06:12:49 +00:00
morse Make this build with WARNS=4 by not reusing names from ctype.h. 2008-01-28 06:18:23 +00:00
number convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
phantasia Make this build with WARNS=4 by not reusing names from <math.h>. 2008-01-28 06:20:15 +00:00
pig convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
pom Add test for HAVE_PCC with HAVE_GCC which turn off compiler warning flags. 2008-07-12 12:29:42 +00:00
ppt Remove uses of __P. 2004-01-27 20:30:28 +00:00
primes Document -d. 2008-02-03 03:29:17 +00:00
quiz convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
rain Make the default WARNS for games 4. The only game that needs to set WARNS 2008-01-28 07:03:58 +00:00
random Make the default WARNS for games 4. The only game that needs to set WARNS 2008-01-28 07:03:58 +00:00
robots Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
rogue ANSIfy. Remove unnecessary casts. Clean up for -Wsign-compare. Make more 2008-01-14 03:50:01 +00:00
sail Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
snake convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
tetris Make the default WARNS for games 4. The only game that needs to set WARNS 2008-01-28 07:03:58 +00:00
trek Make the default WARNS for games 4. The only game that needs to set WARNS 2008-01-28 07:03:58 +00:00
wargames Use standard AUTHORS section header. From YOMURA Masanori in private mail 2005-09-15 02:09:41 +00:00
worm Make the default WARNS for games 4. The only game that needs to set WARNS 2008-01-28 07:03:58 +00:00
worms Make the default WARNS for games 4. The only game that needs to set WARNS 2008-01-28 07:03:58 +00:00
wtf Teach wtf(6) about pkgsrc's help facility: 2007-08-06 21:14:36 +00:00
wump Make the default WARNS for games 4. The only game that needs to set WARNS 2008-01-28 07:03:58 +00:00
Makefile moduli utils moved from games to usr.bin. 2006-01-24 19:01:45 +00:00
Makefile.inc Make the default WARNS for games 4. The only game that needs to set WARNS 2008-01-28 07:03:58 +00:00