diff options
Diffstat (limited to 'games/hunt/huntd')
-rw-r--r-- | games/hunt/huntd/Makefile | 1 | ||||
-rw-r--r-- | games/hunt/huntd/answer.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/bsd.h | 1 | ||||
-rw-r--r-- | games/hunt/huntd/ctl.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/ctl_transact.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/draw.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/driver.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/execute.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/expl.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/extern.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/faketalk.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/get_names.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/hunt.h | 1 | ||||
-rw-r--r-- | games/hunt/huntd/huntd.6 | 106 | ||||
-rw-r--r-- | games/hunt/huntd/makemaze.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/pathname.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/shots.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/talk_ctl.h | 1 | ||||
-rw-r--r-- | games/hunt/huntd/terminal.c | 6 |
19 files changed, 71 insertions, 123 deletions
diff --git a/games/hunt/huntd/Makefile b/games/hunt/huntd/Makefile index cbf07727fba..708b0bc5174 100644 --- a/games/hunt/huntd/Makefile +++ b/games/hunt/huntd/Makefile @@ -1,4 +1,5 @@ # $NetBSD: Makefile,v 1.1 1997/10/04 09:11:21 mrg Exp $ +# $OpenBSD: Makefile,v 1.2 1999/01/21 05:47:39 d Exp $ PROG= huntd SRCS= answer.c ctl.c ctl_transact.c draw.c driver.c execute.c expl.c \ diff --git a/games/hunt/huntd/answer.c b/games/hunt/huntd/answer.c index c78fcea2a64..eed0c82de46 100644 --- a/games/hunt/huntd/answer.c +++ b/games/hunt/huntd/answer.c @@ -1,15 +1,11 @@ /* $NetBSD: answer.c,v 1.3 1997/10/10 16:32:50 lukem Exp $ */ +/* $OpenBSD: answer.c,v 1.2 1999/01/21 05:47:39 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: answer.c,v 1.3 1997/10/10 16:32:50 lukem Exp $"); -#endif /* not lint */ - # include <ctype.h> # include <errno.h> # include <fcntl.h> diff --git a/games/hunt/huntd/bsd.h b/games/hunt/huntd/bsd.h index 0fea1d0823f..f27a6ddfaa4 100644 --- a/games/hunt/huntd/bsd.h +++ b/games/hunt/huntd/bsd.h @@ -1,4 +1,5 @@ /* $NetBSD: bsd.h,v 1.2 1998/01/09 08:03:40 perry Exp $ */ +/* $OpenBSD: bsd.h,v 1.2 1999/01/21 05:47:39 d Exp $ */ /* * Hunt diff --git a/games/hunt/huntd/ctl.c b/games/hunt/huntd/ctl.c index b7066f65dcf..14f3261b815 100644 --- a/games/hunt/huntd/ctl.c +++ b/games/hunt/huntd/ctl.c @@ -1,4 +1,5 @@ /* $NetBSD: ctl.c,v 1.2 1997/10/10 16:32:54 lukem Exp $ */ +/* $OpenBSD: ctl.c,v 1.2 1999/01/21 05:47:40 d Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -9,13 +10,8 @@ #if defined(TALK_43) || defined(TALK_42) -#include <sys/cdefs.h> #ifndef lint -#if 0 static char sccsid[] = "@(#)ctl.c 5.2 (Berkeley) 3/13/86"; -#else -__RCSID("$NetBSD: ctl.c,v 1.2 1997/10/10 16:32:54 lukem Exp $"); -#endif #endif /* not lint */ /* diff --git a/games/hunt/huntd/ctl_transact.c b/games/hunt/huntd/ctl_transact.c index d183bd39fa3..35f1c4fd25b 100644 --- a/games/hunt/huntd/ctl_transact.c +++ b/games/hunt/huntd/ctl_transact.c @@ -1,4 +1,5 @@ /* $NetBSD: ctl_transact.c,v 1.3 1997/10/20 00:37:16 lukem Exp $ */ +/* $OpenBSD: ctl_transact.c,v 1.2 1999/01/21 05:47:40 d Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -9,13 +10,8 @@ #if defined(TALK_43) || defined(TALK_42) -#include <sys/cdefs.h> #ifndef lint -#if 0 static char sccsid[] = "@(#)ctl_transact.c 5.2 (Berkeley) 3/13/86"; -#else -__RCSID("$NetBSD: ctl_transact.c,v 1.3 1997/10/20 00:37:16 lukem Exp $"); -#endif #endif /* not lint */ #include <sys/time.h> diff --git a/games/hunt/huntd/draw.c b/games/hunt/huntd/draw.c index ee53641ca0e..2262407a989 100644 --- a/games/hunt/huntd/draw.c +++ b/games/hunt/huntd/draw.c @@ -1,15 +1,11 @@ /* $NetBSD: draw.c,v 1.2 1997/10/10 16:33:04 lukem Exp $ */ +/* $OpenBSD: draw.c,v 1.2 1999/01/21 05:47:40 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: draw.c,v 1.2 1997/10/10 16:33:04 lukem Exp $"); -#endif /* not lint */ - # include "hunt.h" void diff --git a/games/hunt/huntd/driver.c b/games/hunt/huntd/driver.c index 4b06af9153c..c842448bc43 100644 --- a/games/hunt/huntd/driver.c +++ b/games/hunt/huntd/driver.c @@ -1,15 +1,11 @@ /* $NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $ */ +/* $OpenBSD: driver.c,v 1.2 1999/01/21 05:47:40 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $"); -#endif /* not lint */ - # include <sys/ioctl.h> # include <sys/stat.h> # include <sys/time.h> diff --git a/games/hunt/huntd/execute.c b/games/hunt/huntd/execute.c index 30046448c00..53695c72f88 100644 --- a/games/hunt/huntd/execute.c +++ b/games/hunt/huntd/execute.c @@ -1,15 +1,11 @@ /* $NetBSD: execute.c,v 1.2 1997/10/10 16:33:13 lukem Exp $ */ +/* $OpenBSD: execute.c,v 1.2 1999/01/21 05:47:40 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: execute.c,v 1.2 1997/10/10 16:33:13 lukem Exp $"); -#endif /* not lint */ - # include <stdlib.h> # include "hunt.h" diff --git a/games/hunt/huntd/expl.c b/games/hunt/huntd/expl.c index 74a8f585fb6..8de5adba1df 100644 --- a/games/hunt/huntd/expl.c +++ b/games/hunt/huntd/expl.c @@ -1,15 +1,11 @@ /* $NetBSD: expl.c,v 1.2 1997/10/10 16:33:18 lukem Exp $ */ +/* $OpenBSD: expl.c,v 1.2 1999/01/21 05:47:41 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: expl.c,v 1.2 1997/10/10 16:33:18 lukem Exp $"); -#endif /* not lint */ - # include <stdlib.h> # include "hunt.h" diff --git a/games/hunt/huntd/extern.c b/games/hunt/huntd/extern.c index e25ba836af9..7bf4290e165 100644 --- a/games/hunt/huntd/extern.c +++ b/games/hunt/huntd/extern.c @@ -1,15 +1,11 @@ /* $NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $ */ +/* $OpenBSD: extern.c,v 1.2 1999/01/21 05:47:41 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $"); -#endif /* not lint */ - # include "hunt.h" # ifdef MONITOR diff --git a/games/hunt/huntd/faketalk.c b/games/hunt/huntd/faketalk.c index 2044ce1ddf1..26365bc48fb 100644 --- a/games/hunt/huntd/faketalk.c +++ b/games/hunt/huntd/faketalk.c @@ -1,4 +1,5 @@ /* $NetBSD: faketalk.c,v 1.4 1997/10/11 08:13:48 lukem Exp $ */ +/* $OpenBSD: faketalk.c,v 1.2 1999/01/21 05:47:41 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -9,11 +10,6 @@ * specifies the terms and conditions for redistribution. */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: faketalk.c,v 1.4 1997/10/11 08:13:48 lukem Exp $"); -#endif /* not lint */ - #include "bsd.h" #if defined(TALK_43) || defined(TALK_42) diff --git a/games/hunt/huntd/get_names.c b/games/hunt/huntd/get_names.c index 3e358e4f226..c32461d2de8 100644 --- a/games/hunt/huntd/get_names.c +++ b/games/hunt/huntd/get_names.c @@ -1,15 +1,11 @@ /* $NetBSD: get_names.c,v 1.3 1998/07/06 07:00:31 mrg Exp $ */ +/* $OpenBSD: get_names.c,v 1.2 1999/01/21 05:47:41 d Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: get_names.c,v 1.3 1998/07/06 07:00:31 mrg Exp $"); -#endif /* not lint */ - #include "bsd.h" #if defined(TALK_43) || defined(TALK_42) diff --git a/games/hunt/huntd/hunt.h b/games/hunt/huntd/hunt.h index 95072e55a8c..0ecfa4a569b 100644 --- a/games/hunt/huntd/hunt.h +++ b/games/hunt/huntd/hunt.h @@ -1,4 +1,5 @@ /* $NetBSD: hunt.h,v 1.5 1998/09/13 15:27:28 hubertf Exp $ */ +/* $OpenBSD: hunt.h,v 1.2 1999/01/21 05:47:41 d Exp $ */ /* * Hunt diff --git a/games/hunt/huntd/huntd.6 b/games/hunt/huntd/huntd.6 index c51a8c0caaa..984736b42d1 100644 --- a/games/hunt/huntd/huntd.6 +++ b/games/hunt/huntd/huntd.6 @@ -1,4 +1,5 @@ .\" $NetBSD: huntd.6,v 1.3 1998/01/09 08:03:42 perry Exp $ +.\" $OpenBSD: huntd.6,v 1.2 1999/01/21 05:47:41 d Exp $ .\" .\" Hunt .\" Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -8,93 +9,92 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.TH HUNTD 6 "21 August 1986" -.UC 4 -.SH NAME -huntd \- hunt daemon, back-end for hunt game -.SH SYNOPSIS -\fB/usr/games/huntd\fP [ \fB\-s\fP ] [ \fB\-p\fP port ] -.SH DESCRIPTION -.PP -.I huntd +.Dd August 21, 1986 +.Os 4BSD +.Dt HUNTD 6 +.Sh NAME +.Nm huntd +.Nd hunt daemon, back-end for hunt game +.Sh SYNOPSIS +.Nm huntd +.Op Fl s +.Op Fl p Ar port +.Sh DESCRIPTION +.Nm huntd controls the multi-player -.IR hunt (6) +.Xr hunt 6 game. When it starts up, it tries to notify all members of the -.I hunt-players +.Pa hunt-players mailing list (see -.IR sendmail (8)) +.Xr sendmail 8) by faking a -.IR talk (1) -request from user ``Hunt Game''. -.PP +.Xr talk 1 +request from user +.Sq Hunt Game . +.Pp The -.B \-s +.Fl s option is for running -.I huntd +.Nm huntd forever (server mode). This is similar to running it under the control of -.I inetd +.Xr inetd 8 (see below), but it consumes a process table entry when no one is playing. -.PP +.Pp The -.B \-p +.Fl p option changes the udp port number used to rendezvous with the player process and thus allows for private games of hunt. This option turns off the notification of players on the -.I hunt-players +.Pa hunt-players mailing list. -.SH INETD -.PP +.Sh INETD +.Pp To run -.I huntd +.Nm huntd from -.IR inetd , +.Xr inetd 8 , you'll need to put the -.I hunt +.Sq hunt service in -.BR /etc/services : -.IP -hunt 26740/udp # multi-player/multi-host mazewars -.LP +.Pa /etc/services : +.Dl hunt 26740/udp # multi-player/multi-host mazewars and add a line in -.BR /etc/inetd.conf : -.IP -hunt dgram udp wait nobody /usr/games/huntd HUNT -.LP -except for Suns which use -.BR /etc/servers : -.IP -hunt udp /usr/games/huntd -.LP +.Pa /etc/inetd.conf : +.Dl hunt dgram udp wait nobody /usr/games/huntd HUNT +.Pp Do not use any of the command line options \(em if you want -.I inetd +.Xr inetd 8 to start up -.I huntd +.Nm huntd on a private port, change the port listed in -.BR /etc/services . -.SH "NETWORK RENDEZVOUS" +.Pa /etc/services . +.Sh "NETWORK RENDEZVOUS" When -.IR hunt (6) +.Xr hunt 6 starts up, it broadcasts on the local area net (using the broadcast address for each interface) to find a -.I hunt +.Nm hunt game in progress. If a -.I huntd +.Nm huntd hears the request, it sends back the port number for the -.I hunt +.Nm hunt process to connect to. Otherwise, the -.I hunt +.Nm hunt process starts up a -.I huntd +.Nm huntd on the local machine and trys to rendezvous with it. -.SH "SEE ALSO" -hunt(6), talk(1), sendmail(8) -.SH AUTHORS +.Sh "SEE ALSO" +.Xr hunt 6 , +.Xr talk 1 , +.Xr sendmaail 8 , +.Xr inetd 8 +.Sh AUTHORS Conrad Huang, Ken Arnold, and Greg Couch; .br University of California, San Francisco, Computer Graphics Lab -.\"SH BUGS +.\"Sh BUGS diff --git a/games/hunt/huntd/makemaze.c b/games/hunt/huntd/makemaze.c index bcc21c61b27..508d0109ee0 100644 --- a/games/hunt/huntd/makemaze.c +++ b/games/hunt/huntd/makemaze.c @@ -1,15 +1,11 @@ /* $NetBSD: makemaze.c,v 1.2 1997/10/10 16:33:43 lukem Exp $ */ +/* $OpenBSD: makemaze.c,v 1.2 1999/01/21 05:47:42 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: makemaze.c,v 1.2 1997/10/10 16:33:43 lukem Exp $"); -#endif /* not lint */ - # include "hunt.h" # define ISCLEAR(y,x) (Maze[y][x] == SPACE) diff --git a/games/hunt/huntd/pathname.c b/games/hunt/huntd/pathname.c index 0f909f78b88..d4ed5b2ada6 100644 --- a/games/hunt/huntd/pathname.c +++ b/games/hunt/huntd/pathname.c @@ -1,15 +1,11 @@ /* $NetBSD: pathname.c,v 1.2 1997/10/10 16:33:49 lukem Exp $ */ +/* $OpenBSD: pathname.c,v 1.2 1999/01/21 05:47:42 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: pathname.c,v 1.2 1997/10/10 16:33:49 lukem Exp $"); -#endif /* not lint */ - /* * There is no particular significance to the numbers assigned * to Test_port. They're just random numbers greater than the diff --git a/games/hunt/huntd/shots.c b/games/hunt/huntd/shots.c index b4080dbd76c..18305c845ee 100644 --- a/games/hunt/huntd/shots.c +++ b/games/hunt/huntd/shots.c @@ -1,15 +1,11 @@ /* $NetBSD: shots.c,v 1.3 1997/10/11 08:13:50 lukem Exp $ */ +/* $OpenBSD: shots.c,v 1.2 1999/01/21 05:47:42 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: shots.c,v 1.3 1997/10/11 08:13:50 lukem Exp $"); -#endif /* not lint */ - # include <err.h> # include <signal.h> # include <stdlib.h> diff --git a/games/hunt/huntd/talk_ctl.h b/games/hunt/huntd/talk_ctl.h index 3cf3a876bec..abd2f484ea0 100644 --- a/games/hunt/huntd/talk_ctl.h +++ b/games/hunt/huntd/talk_ctl.h @@ -1,4 +1,5 @@ /* $NetBSD: talk_ctl.h,v 1.4 1998/01/09 08:03:42 perry Exp $ */ +/* $OpenBSD: talk_ctl.h,v 1.2 1999/01/21 05:47:42 d Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. diff --git a/games/hunt/huntd/terminal.c b/games/hunt/huntd/terminal.c index 94493531c31..f1bab1368db 100644 --- a/games/hunt/huntd/terminal.c +++ b/games/hunt/huntd/terminal.c @@ -1,15 +1,11 @@ /* $NetBSD: terminal.c,v 1.2 1997/10/10 16:34:05 lukem Exp $ */ +/* $OpenBSD: terminal.c,v 1.2 1999/01/21 05:47:42 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: terminal.c,v 1.2 1997/10/10 16:34:05 lukem Exp $"); -#endif /* not lint */ - #if __STDC__ #include <stdarg.h> #else |