X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=h%2Fsignals.h;h=1e1dde16e213037b2437e3b22934183b63975a72;hp=4ad2b57d65b44ca52cb990f33b346edc08ab8e37;hb=18591f8e001ecedbee48a51c1d1f08ebaa1c15c8;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b diff --git a/h/signals.h b/h/signals.h index 4ad2b57..1e1dde1 100644 --- a/h/signals.h +++ b/h/signals.h @@ -1,32 +1,17 @@ - /* - * signals.h -- header file for nmh signal interface - */ +** signals.h -- header file for nmh signal interface +*/ #include +#include /* - * The type for a signal handler - */ -typedef RETSIGTYPE (*SIGNAL_HANDLER)(int); - -/* - * If not a POSIX machine, then we create our - * own POSIX style signal sets functions. This - * currently assumes you have 31 signals, which - * should be true on most pure BSD machines. - */ -#ifndef POSIX_SIGNALS -# define sigemptyset(s) (*(s) = 0) -# define sigfillset(s) (*(s) = ~((sigset_t) 0), 0) -# define sigaddset(s,n) (*(s) |= (1 << ((n) - 1)), 0) -# define sigdelset(s,n) (*(s) &= ~(1 << ((n) - 1)), 0) -# define sigismember(s,n) ((*(s) & (1 << ((n) - 1))) != 0) -#endif +** The type for a signal handler +*/ +typedef void (*SIGNAL_HANDLER)(int); /* - * prototypes - */ -int SIGPROCMASK (int, const sigset_t *, sigset_t *); -SIGNAL_HANDLER SIGNAL (int, SIGNAL_HANDLER); -SIGNAL_HANDLER SIGNAL2 (int, SIGNAL_HANDLER); +** prototypes +*/ +SIGNAL_HANDLER SIGNAL(int, SIGNAL_HANDLER); +SIGNAL_HANDLER SIGNAL2(int, SIGNAL_HANDLER);