Commit Graph

46 Commits

Author SHA1 Message Date
dholland 431304b3b0 remove unnecessary cast 2009-08-27 00:22:28 +00:00
dholland e0ba63fe83 sprinkle static 2009-08-12 05:48:04 +00:00
dholland b76cf716a9 Don't use a FILE * after fclose(). PR 41832 from Henning Petersen. 2009-08-06 17:55:18 +00:00
lukem 2fe2731d3f Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
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
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
dan f96b430610 read config more strictly, from Maximillian Dornseif 2006-05-25 07:11:54 +00:00
jmc 4f50e1e42e KNF conversion 2005-07-02 08:35:29 +00:00
dsl 49f7d8a9b1 Add (unsigned char) cast to ctype functions 2004-11-05 21:30:31 +00:00
jsm 10b61a7cca Mark unused parameters, nonreturning functions and format functions in
the few cases not already marked.
2004-02-08 22:23:50 +00:00
jsm cb5fd8342e Remove uses of __P. 2004-01-27 20:30:28 +00:00
agc e5aeb4ea46 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
2003-08-07 09:36:50 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz c91d8d6b9b Lots of minor fixes resulting from reading these man pages in detail. 2002-09-26 18:31:58 +00:00
lukem 706cee2abf need bsd.own.mk for NETBSDSRCDIR 2002-09-18 03:23:00 +00:00
lukem 58a44e7ae0 use NETBSDSRCDIR as appropriate 2002-09-18 02:51:46 +00:00
christos 346b4189a5 utmpx support. 2002-08-02 03:06:24 +00:00
jdolecek a30fb66eca play(): use snprintf() instead of hard-to-parse strncpy() calls 2001-01-25 20:41:41 +00:00
jsm 13f44a1f67 Don't include terminal . in argument of err(). 1999-09-22 18:54:42 +00:00
jsm 419fb603c3 Don't include <nlist.h>. 1999-09-22 18:54:03 +00:00
jsm 2e57752a37 Allow dm to ban games playing 11pm-midnight.
From OpenBSD.
1999-09-19 18:13:41 +00:00
hubertf 24d3aaa397 Const poisoning.
Patch submitted in PR 7993 by Joseph Myers <jsm28@cam.ac.uk>
1999-07-14 22:52:07 +00:00
garbled d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
hubertf 1c9494f62b mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-13 15:27:25 +00:00
hubertf 5795fc4c70 Make dm ignore TZ; PR#6073 by Joseph Myers <jsm28@cam.ac.uk> 1998-09-13 12:34:43 +00:00
mrg a3c2805530 minor KNF. 1998-07-04 20:06:55 +00:00
lukem fc90756956 Implement a new manual page category ``SECURITY CONSIDERATIONS''
(suggested by mycroft)
1998-06-08 12:41:41 +00:00
fair 45f41278ec fix bad .Xr references 1998-04-29 18:16:01 +00:00
fair a3a66ff007 fix bad mdoc reference & clean up a little 1998-04-28 18:34:12 +00:00
fair dc026e0515 Change occurrences of "UNIX" to .Ux or .At as appropriate. 1998-04-28 06:00:51 +00:00
mrg c1fdab6ca5 remove an old setgid() from when dm(6) was setuid kmem (i assume for getloadavg()) 1997-11-19 08:24:09 +00:00
mrg ae2aef9bc3 make dm setgid games, rather than setuid games. 1997-11-19 08:23:37 +00:00
lukem 82090a8bf1 WARNSify 1997-10-10 12:49:45 +00:00
mrg 1741f3a9c7 be safe with buffers. 1997-04-21 11:11:47 +00:00
jtc 5224609738 Removed "extern int errno"; Added #include <errno.h> if not already present. 1996-02-06 22:47:06 +00:00
cgd 101657d110 clean up import 1995-03-21 15:03:38 +00:00
cgd c4c01d75b2 specify man pages the new way. 1994-12-22 09:31:26 +00:00
cgd bb12398ce4 no longer need library hacks, nor the sgid 1994-01-28 05:08:25 +00:00
cgd bca5d4ac26 hack to make getloadavg() link properly 1994-01-28 00:26:35 +00:00
cgd 247aa8acb6 dm should be suid games. note that perms on /usr/games are wrong,
and will be, until we get the mtree setup working (and get rid of
the install -d's for directories...)
1993-10-12 21:23:51 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
mycroft b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
mycroft 217183f668 Clean up deleted files. 1993-05-20 10:10:07 +00:00
mycroft f7f4b85ce9 Cleanup for GCC 2. 1993-04-18 21:52:18 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00