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 )
48 int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact)
50 if( signum < 0 || signum >= NUM_SIGNALS ) {
56 *oldact = sighandlers[signum];
58 sighandlers[signum] = *act;
63 int sigemptyset(sigset_t *set)
68 int sigfillset(sigset_t *set)