2 * AcessOS Basic C Library
12 #define NUM_SIGNALS 40
15 struct sigaction sighandlers[NUM_SIGNALS];
18 sighandler_t signal(int num, sighandler_t handler)
21 if(num < 0 || num >= NUM_SIGNALS) return NULL;
22 prev = sighandlers[num].sa_handler;
23 sighandlers[num].sa_handler = handler;
24 sighandlers[num].sa_mask = 0;
30 if( signal < 0 || signal > NUM_SIGNALS )
44 _SysDebug("abort() - %p", __builtin_return_address(0));
49 int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact)
51 if( signum < 0 || signum >= NUM_SIGNALS ) {
57 *oldact = sighandlers[signum];
59 sighandlers[signum] = *act;
64 int sigemptyset(sigset_t *set)
69 int sigfillset(sigset_t *set)