X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=h%2Fsignals.h;h=6f7ed6cb0e14cb4046261e662e91604ba7d83e01;hb=ea28cc1be7f254842b243b9e297056f47c9cdd70;hp=905b811b43403ad19e2f807aead820653681da92;hpb=d45c3d28d788129428036fd7f26fa417beccd93e;p=mmh diff --git a/h/signals.h b/h/signals.h index 905b811..6f7ed6c 100644 --- a/h/signals.h +++ b/h/signals.h @@ -13,22 +13,7 @@ typedef void (*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 - -/* * prototypes */ -int SIGPROCMASK (int, const sigset_t *, sigset_t *); SIGNAL_HANDLER SIGNAL (int, SIGNAL_HANDLER); SIGNAL_HANDLER SIGNAL2 (int, SIGNAL_HANDLER);