The NetBSD Project

CVS log for src/usr.sbin/rwhod/rwhod.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / rwhod

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.40 / (download) - annotate - [select for diffs], Sun Nov 4 22:32:01 2012 UTC (2 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, netbsd-7, agc-symver-base, agc-symver, HEAD
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored)

include <pwd.h>

Revision 1.39 / (download) - annotate - [select for diffs], Wed Aug 31 13:32:41 2011 UTC (3 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Use __dead

Revision 1.38 / (download) - annotate - [select for diffs], Sat Apr 18 13:05:54 2009 UTC (5 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Fix -Wsign-compare issue

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jul 21 13:36:59 2008 UTC (6 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: jym-xensuspend
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jul 13 20:07:49 2008 UTC (6 years, 5 months ago) by dholland
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

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.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Dec 15 19:44:56 2007 UTC (7 years ago) by perry
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: wrstuden-revivesa
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

convert __attribute__s to applicable cdefs.h macros

Revision 1.34 / (download) - annotate - [select for diffs], Thu May 11 08:40:28 2006 UTC (8 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: matt-armv6
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

assign to wd.wd_recvtime rather than  casting a pointer to it
to a time_t pointer to call time(3).

Revision 1.33 / (download) - annotate - [select for diffs], Sun Oct 2 16:49:46 2005 UTC (9 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

Off by one in copying stuff to struct whoent. Found by Liam Foy.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Sep 12 18:34:37 2005 UTC (9 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Sync usage with man page.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Sep 12 16:13:13 2005 UTC (9 years, 3 months ago) by tsarna
Branch: MAIN
Changes since 1.30: +47 -3 lines
Diff to previous 1.30 (colored)

Add -u option: rwhod will drop privledges and become the given user.

reviewed by jwise

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jul 5 02:46:36 2005 UTC (9 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.29: +12 -8 lines
Diff to previous 1.29 (colored)

Patch from Liam J. Foy:
- cleanup sendto code.
- fix usage.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jul 1 15:31:18 2005 UTC (9 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.28: +13 -11 lines
Diff to previous 1.28 (colored)

Change g flag to i as in the PR.
Don't allow interval to be set to > 11 minutes.
Rephrase option blurb.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jul 1 13:07:21 2005 UTC (9 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.27: +48 -6 lines
Diff to previous 1.27 (colored)

PR/30648: Liam J. Foy: rwhod patch to reduce time interval between broadcasts

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jun 27 12:07:46 2005 UTC (9 years, 5 months ago) by junyoung
Branch: MAIN
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored)

Remove a unnecessary semicolon and trailing spaces.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jun 24 13:47:30 2005 UTC (9 years, 6 months ago) by peter
Branch: MAIN
Changes since 1.25: +37 -46 lines
Diff to previous 1.25 (colored)

- Use the timer* macros from sys/time.h, no need to invent a new time add
  function if it already exists.
- Improve a few function/variable names and use EXIT_FAILURE.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jun 24 13:24:23 2005 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Initialize events not revents. Noted by Peter Postma. The timer changes he
can make himself :-)

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jun 24 13:22:09 2005 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.23: +191 -152 lines
Diff to previous 1.23 (colored)

Fixes from Liam J. Foy to use poll, and proper signals. (from OpenBSD)
While there, ansify, and fix const abuse.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Oct 30 15:39:39 2004 UTC (10 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored)

Add (unsigned char) cast to ctype functions

Revision 1.22 / (download) - annotate - [select for diffs], Thu Aug 7 11:25:43 2003 UTC (11 years, 4 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.21: +2 -6 lines
Diff to previous 1.21 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jul 13 12:13:49 2003 UTC (11 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

use bounded string op

Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 12 17:49:35 2003 UTC (11 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.19: +14 -12 lines
Diff to previous 1.19 (colored)

PR/20318: Johnny Billquist: rwhod does not compile with -DDEBUG

Revision 1.19 / (download) - annotate - [select for diffs], Fri Aug 2 02:38:15 2002 UTC (12 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.18: +20 -50 lines
Diff to previous 1.18 (colored)

use utmpx.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Oct 11 20:23:56 2000 UTC (14 years, 2 months ago) by is
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

More format string cleanups by sommerfeld.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Dec 30 09:10:28 1999 UTC (14 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.16: +8 -4 lines
Diff to previous 1.16 (colored)

avoid memory leak on realloc() error.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 15 15:59:24 1999 UTC (15 years, 1 month ago) by mjl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.15: +7 -1 lines
Diff to previous 1.15 (colored)

From FreeBSD bin/14844 (slightly modified): Due to signed calculations
with the packet size, a short packet would trigger an infinite loop
on little endian machines.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jun 6 03:33:08 1999 UTC (15 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

Use pidfile(3).

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jul 8 15:17:57 1998 UTC (16 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.13: +12 -12 lines
Diff to previous 1.13 (colored)

fix error in previous pointed out by bad.  minor KNFing.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jul 6 06:58:26 1998 UTC (16 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

- use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 18 11:37:10 1997 UTC (17 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.11: +25 -32 lines
Diff to previous 1.11 (colored)

deprecate register, use warn/err

Revision 1.11 / (download) - annotate - [select for diffs], Fri Oct 17 13:13:49 1997 UTC (17 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.10: +13 -8 lines
Diff to previous 1.10 (colored)

WARNSify

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 25 19:32:07 1997 UTC (17 years, 4 months ago) by kleink
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Sep 7 21:12:57 1996 UTC (18 years, 3 months ago) by explorer
Branch: MAIN
Changes since 1.8: +7 -2 lines
Diff to previous 1.8 (colored)

Fix some potential buffer overflow problems.
From David Holland <dholland@hcs.harvard.edu>

Revision 1.8 / (download) - annotate - [select for diffs], Sun May 29 02:53:23 1994 UTC (20 years, 7 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.7: +180 -172 lines
Diff to previous 1.7 (colored)

sync with 44lite

Revision 1.7 / (download) - annotate - [select for diffs], Wed Apr 6 03:01:48 1994 UTC (20 years, 8 months ago) by andrew
Branch: MAIN
Changes since 1.6: +7 -15 lines
Diff to previous 1.6 (colored)

rwhod wasn't too happy after the off_t change - its lseek() to check the
boottime was broken.  Replaced this code with kvm_nlist()/kvm_read() to be
more efficient.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Mar 30 02:34:03 1994 UTC (20 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

kill bad casts

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 28 07:10:40 1994 UTC (20 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)

kill extern'd lseek()

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 15 23:52:40 1993 UTC (21 years ago) by mycroft
Branch: MAIN
Changes since 1.3: +9 -1 lines
Diff to previous 1.3 (colored)

From: mrm@sceard.com (M.R.Murphy)
Fix memory leak.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 1 17:56:56 1993 UTC (21 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Add RCS identifiers.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 18 20:30:08 1993 UTC (21 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.1: +9 -9 lines
Diff to previous 1.1 (colored)

Cleanup for GCC 2.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (21 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8

after 0.2.2 "stable" patches applied

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>