diff options
Diffstat (limited to 'hunt/hunt')
| -rw-r--r-- | hunt/hunt/connect.c | 35 | ||||
| -rw-r--r-- | hunt/hunt/hunt.6 | 37 | ||||
| -rw-r--r-- | hunt/hunt/hunt.c | 46 | ||||
| -rw-r--r-- | hunt/hunt/otto.c | 37 | ||||
| -rw-r--r-- | hunt/hunt/playit.c | 35 |
5 files changed, 160 insertions, 30 deletions
diff --git a/hunt/hunt/connect.c b/hunt/hunt/connect.c index f1443810..5275dbf8 100644 --- a/hunt/hunt/connect.c +++ b/hunt/hunt/connect.c @@ -1,13 +1,38 @@ -/* $NetBSD: connect.c,v 1.4 2003/06/11 09:51:56 martin Exp $ */ +/* $NetBSD: connect.c,v 1.5 2003/06/11 12:00:21 wiz Exp $ */ /* - * Hunt - * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold - * San Francisco, California + * Copyright (c) 1983-2003, Regents of the University of California. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * + Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + Neither the name of the University of California, San Francisco nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: connect.c,v 1.4 2003/06/11 09:51:56 martin Exp $"); +__RCSID("$NetBSD: connect.c,v 1.5 2003/06/11 12:00:21 wiz Exp $"); #endif /* not lint */ # include "hunt.h" diff --git a/hunt/hunt/hunt.6 b/hunt/hunt/hunt.6 index e783bfeb..d271578d 100644 --- a/hunt/hunt/hunt.6 +++ b/hunt/hunt/hunt.6 @@ -1,12 +1,35 @@ -.\" $NetBSD: hunt.6,v 1.10 2003/05/14 12:12:56 wiz Exp $ +.\" $NetBSD: hunt.6,v 1.11 2003/06/11 12:00:21 wiz Exp $ .\" -.\" hunt -.\" Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold -.\" San Francisco, California +.\" hunt .\" -.\" Copyright (c) 1985 Regents of the University of California. -.\" All rights reserved. The Berkeley software License Agreement -.\" specifies the terms and conditions for redistribution. +.\" Copyright (c) 1983-2003, Regents of the University of California. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are +.\" met: +.\" +.\" + Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" + Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" + Neither the name of the University of California, San Francisco nor +.\" the names of its contributors may be used to endorse or promote +.\" products derived from this software without specific prior written +.\" permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +.\" IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +.\" PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +.\" OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +.\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .Dd April 4, 2001 .Dt HUNT 6 diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c index f89cf9ce..4a1de158 100644 --- a/hunt/hunt/hunt.c +++ b/hunt/hunt/hunt.c @@ -1,13 +1,38 @@ -/* $NetBSD: hunt.c,v 1.18 2003/05/03 09:10:23 christos Exp $ */ +/* $NetBSD: hunt.c,v 1.19 2003/06/11 12:00:21 wiz Exp $ */ /* - * Hunt - * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold - * San Francisco, California + * Copyright (c) 1983-2003, Regents of the University of California. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * + Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + Neither the name of the University of California, San Francisco nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hunt.c,v 1.18 2003/05/03 09:10:23 christos Exp $"); +__RCSID("$NetBSD: hunt.c,v 1.19 2003/06/11 12:00:21 wiz Exp $"); #endif /* not lint */ # include <sys/param.h> @@ -257,7 +282,7 @@ main(ac, av) clear_the_screen(); (void) signal(SIGINT, intr); (void) signal(SIGTERM, sigterm); - (void) signal(SIGEMT, sigemt); + (void) signal(SIGUSR1, sigusr1); (void) signal(SIGPIPE, SIG_IGN); #if !defined(USE_CURSES) && defined(SIGTSTP) (void) signal(SIGTSTP, tstp); @@ -684,7 +709,7 @@ start_driver() execl(Driver, "HUNT", "-p", use_port, (char *) NULL); # endif /* only get here if exec failed */ - (void) kill(getppid(), SIGEMT); /* tell mom */ + (void) kill(getppid(), SIGUSR1); /* tell mom */ _exit(1); } # ifdef USE_CURSES @@ -735,12 +760,11 @@ sigterm(dummy) /* - * sigemt: - * Handle a emt signal - shouldn't happen on vaxes(?) + * sigusr1: + * Handle a usr1 signal */ SIGNAL_TYPE -sigemt(dummy) - int dummy; +sigusr1() { leavex(1, "Unable to start driver. Try again."); /* NOTREACHED */ diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c index 80314c3e..baa1cfc8 100644 --- a/hunt/hunt/otto.c +++ b/hunt/hunt/otto.c @@ -1,6 +1,37 @@ -/* $NetBSD: otto.c,v 1.4 2001/02/05 00:40:45 christos Exp $ */ +/* $NetBSD: otto.c,v 1.5 2003/06/11 12:00:21 wiz Exp $ */ # ifdef OTTO /* + * Copyright (c) 1983-2003, Regents of the University of California. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * + Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + Neither the name of the University of California, San Francisco nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* * otto - a hunt otto-matic player * * This guy is buggy, unfair, stupid, and not extensible. @@ -8,11 +39,13 @@ * automatic players to link to. If you write your own "otto" * please let us know what subroutines you would expect in the * subroutine library. + * + * Id: otto.c,v 1.14 2003/04/16 06:11:54 gregc Exp */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: otto.c,v 1.4 2001/02/05 00:40:45 christos Exp $"); +__RCSID("$NetBSD: otto.c,v 1.5 2003/06/11 12:00:21 wiz Exp $"); #endif /* not lint */ # include <sys/time.h> diff --git a/hunt/hunt/playit.c b/hunt/hunt/playit.c index 87de7825..76f2982b 100644 --- a/hunt/hunt/playit.c +++ b/hunt/hunt/playit.c @@ -1,13 +1,38 @@ -/* $NetBSD: playit.c,v 1.6 2003/02/26 07:14:44 jdc Exp $ */ +/* $NetBSD: playit.c,v 1.7 2003/06/11 12:00:21 wiz Exp $ */ /* - * Hunt - * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold - * San Francisco, California + * Copyright (c) 1983-2003, Regents of the University of California. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * + Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + Neither the name of the University of California, San Francisco nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: playit.c,v 1.6 2003/02/26 07:14:44 jdc Exp $"); +__RCSID("$NetBSD: playit.c,v 1.7 2003/06/11 12:00:21 wiz Exp $"); #endif /* not lint */ # include <sys/file.h> |
