You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
286 B
16 lines
286 B
19 years ago
|
/*
|
||
|
* Copyright (C) 2006 Jeff Dike (jdike@addtoit.com)
|
||
|
* Licensed under the GPL
|
||
|
*/
|
||
|
|
||
|
#include <signal.h>
|
||
|
|
||
|
extern void (*handlers[])(int sig, struct sigcontext *sc);
|
||
|
|
||
|
void hard_handler(int sig)
|
||
|
{
|
||
|
struct sigcontext *sc = (struct sigcontext *) (&sig + 1);
|
||
|
|
||
|
(*handlers[sig])(sig, sc);
|
||
|
}
|