X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=h%2Fsignals.h;h=6f7ed6cb0e14cb4046261e662e91604ba7d83e01;hb=90986dddba4b24b0449238f86f836581cfb93938;hp=6858dff7fca1faae5e91967fa50281766eaece46;hpb=326954c9b88b5698383fe317f4c202d871ef47d0;p=mmh diff --git a/h/signals.h b/h/signals.h index 6858dff..6f7ed6c 100644 --- a/h/signals.h +++ b/h/signals.h @@ -10,25 +10,10 @@ /* * 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 +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);