blob: 0d3eae5183526cc53aded9ce2e6ca66b6dc9574f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/*
* 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);
}
|