3 * signals.h -- header file for nmh signal interface
11 * The type for a signal handler
13 typedef RETSIGTYPE (*SIGNAL_HANDLER)(int);
16 * If not a POSIX machine, then we create our
17 * own POSIX style signal sets functions. This
18 * currently assumes you have 31 signals, which
19 * should be true on most pure BSD machines.
22 # define sigemptyset(s) (*(s) = 0)
23 # define sigfillset(s) (*(s) = ~((sigset_t) 0), 0)
24 # define sigaddset(s,n) (*(s) |= (1 << ((n) - 1)), 0)
25 # define sigdelset(s,n) (*(s) &= ~(1 << ((n) - 1)), 0)
26 # define sigismember(s,n) ((*(s) & (1 << ((n) - 1))) != 0)
32 int SIGPROCMASK (int, const sigset_t *, sigset_t *);
33 SIGNAL_HANDLER SIGNAL (int, SIGNAL_HANDLER);
34 SIGNAL_HANDLER SIGNAL2 (int, SIGNAL_HANDLER);