head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.44 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.42 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.40 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.38 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.36 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.34 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.32 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.30 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.28 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.26 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.24 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.22 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.20 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.18 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.16 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.14 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.12 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.10 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.8 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.6 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.4 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.2 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.2.0.6 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.4 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.2 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.1.1.1.0.12 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-2003Q4:1.1.1.1.0.10 pkgsrc-2003Q4-base:1.1.1.1 netbsd-1-6-1:1.1.1.1.0.6 netbsd-1-6-1-base:1.1.1.1 netbsd-1-6:1.1.1.1.0.8 netbsd-1-6-RELEASE-base:1.1.1.1 pkgviews:1.1.1.1.0.4 pkgviews-base:1.1.1.1 buildlink2:1.1.1.1.0.2 buildlink2-base:1.1.1.1 netbsd-1-5-PATCH003:1.1.1.1 netbsd-1-5-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.3 date 2005.02.28.02.48.56; author ben; state dead; branches; next 1.2; 1.2 date 2004.04.15.21.17.08; author ben; state Exp; branches; next 1.1; 1.1 date 2001.04.27.15.27.31; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.04.27.15.27.31; author agc; state Exp; branches; next ; desc @@ 1.3 log @Remove ularn package, as the code is unmaintained and messy. @ text @$NetBSD: patch-az,v 1.2 2004/04/15 21:17:08 ben Exp $ --- signal.c.orig 1992-06-19 13:55:37.000000000 -0700 +++ signal.c @@@@ -1,8 +1,11 @@@@ /* signal.c */ +#include +#include +#include #include "header.h" #include "extern.h" -s2choose() /* text to be displayed if ^C during intro screen */ +void s2choose(void) /* text to be displayed if ^C during intro screen */ { cursor(1,24); lprcat("Press "); @@@@ -14,7 +17,8 @@@@ s2choose() /* text to be displayed if ^C } SIGTYPE -cntlc() /* what to do for an interrupt */ +cntlc(siggy) /* what to do for an interrupt */ +int siggy; { if (nosignal) { signal(SIGINT, cntlc); @@@@ -37,7 +41,8 @@@@ cntlc() /* what to do for an interrupt * * subroutine to save the game if a hangup signal */ SIGTYPE -sgam() +sgam(siggy) +int siggy; { if (ckpflag) { if (fork() == 0) { @@@@ -86,10 +91,10 @@@@ int sig; ** sigsave called before a shell escape ** sigreset called after a shell escape */ -static SIGTYPE (*intsave)(), - (*quitsave)(); +static SIGTYPE (*intsave)(int), + (*quitsave)(int); -sigsetup() +void sigsetup(void) { SIGTYPE tstop(); signal(SIGHUP, sgam); @@@@ -98,7 +103,9 @@@@ sigsetup() signal(SIGILL, sigpanic); signal(SIGTRAP, sigpanic); signal(SIGIOT, sigpanic); +#ifdef SIGEMT signal(SIGEMT, sigpanic); +#endif signal(SIGFPE, sigpanic); signal(SIGBUS, sigpanic); signal(SIGSEGV, sigpanic); @@@@ -110,7 +117,7 @@@@ sigsetup() #endif /* SIGTSTP */ } -sigsave() +void sigsave(void) { signal(SIGHUP, SIG_DFL); intsave = signal(SIGINT, SIG_DFL); @@@@ -118,7 +125,9 @@@@ sigsave() signal(SIGILL, SIG_DFL); signal(SIGTRAP, SIG_DFL); signal(SIGIOT, SIG_DFL); +#ifdef SIGEMT signal(SIGEMT, SIG_DFL); +#endif signal(SIGFPE, SIG_DFL); signal(SIGBUS, SIG_DFL); signal(SIGSEGV, SIG_DFL); @@@@ -130,7 +139,7 @@@@ sigsave() #endif /* SIGTSTP */ } -sigreset() +void sigreset(void) { signal(SIGHUP, sgam); signal(SIGINT, intsave); @@@@ -138,7 +147,9 @@@@ sigreset() signal(SIGILL, sigpanic); signal(SIGTRAP, sigpanic); signal(SIGIOT, sigpanic); +#ifdef SIGEMT signal(SIGEMT, sigpanic); +#endif signal(SIGFPE, sigpanic); signal(SIGBUS, sigpanic); signal(SIGSEGV, sigpanic); @@@@ -177,6 +188,7 @@@@ static char *signame[NSIG] = { /* * routine to process a fatal error signal */ +SIGTYPE sigpanic(sig) int sig; { @ 1.2 log @Make ularn build and run in Linux. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Initial revision @ text @d3 3 a5 3 --- signal.c.orig Fri Jun 19 13:55:37 1992 +++ signal.c Sat Jan 13 21:03:53 2001 @@@@ -1,8 +1,10 @@@@ d8 1 d18 1 a18 1 @@@@ -14,7 +16,8 @@@@ d28 1 a28 1 @@@@ -37,7 +40,8 @@@@ d38 1 a38 1 @@@@ -86,10 +90,10 @@@@ d52 11 a62 1 @@@@ -110,7 +114,7 @@@@ d71 11 a81 1 @@@@ -130,7 +134,7 @@@@ d90 11 a100 1 @@@@ -177,6 +181,7 @@@@ @ 1.1.1.1 log @Initial import of ularn-6.12.92 into the packages collection. Provided in PR 12072 by Ben Collver (collver@@linuxfreemail.com). Ularn is a fantasy games in which your child has contracted a strange dis- ease, and none of your home remedies seem to have any effect. You set out to find a remedy in a limited amount of time, and to collect gold along the way of course! Ularn is based on larn, and adds the concept of character classes. @ text @@