summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-07 05:05:04 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-07 05:05:04 +0000
commitc67251edb478509b4abd9910e0b499a116112a3c (patch)
tree81d59bfb40b0efc64b3acfc9cbe4dd7d3628af85 /signal.c
parent14fe04bdacfb1bbe1e568c4e1dd4092a64c5ede7 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/signal.c b/signal.c
index d822c9b..f6149ac 100644
--- a/signal.c
+++ b/signal.c
@@ -282,7 +282,7 @@ rb_gc_mark_trap_list()
void
posix_signal(signum, handler)
int signum;
- RETSIGTYPE (*handler)();
+ RETSIGTYPE (*handler)_((int));
{
struct sigaction sigact;
@@ -336,6 +336,7 @@ signal_exec(sig)
}
}
+static RETSIGTYPE sighandle _((int));
static RETSIGTYPE
sighandle(sig)
int sig;
@@ -360,6 +361,7 @@ sighandle(sig)
}
#ifdef SIGBUS
+static RETSIGTYPE sigbus _((int));
static RETSIGTYPE
sigbus(sig)
int sig;
@@ -369,6 +371,7 @@ sigbus(sig)
#endif
#ifdef SIGSEGV
+static RETSIGTYPE sigsegv _((int));
static RETSIGTYPE
sigsegv(sig)
int sig;
@@ -420,8 +423,10 @@ static sigset_t trap_last_mask;
static int trap_last_mask;
# endif
+static RETSIGTYPE sigexit _((int));
static RETSIGTYPE
-sigexit()
+sigexit(sig)
+ int sig;
{
rb_exit(0);
}
@@ -430,7 +435,7 @@ static VALUE
trap(arg)
struct trap_arg *arg;
{
- RETSIGTYPE (*func)();
+ RETSIGTYPE (*func)_((int));
VALUE command, old;
int sig;
char *s;