X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=h%2Fsignals.h;h=480bf6d0dfe00880d25b2906e3a54337081c4b6f;hp=b8f086501f5fa4c29a6ab8b2d5f08cfbdab9cbd5;hb=ac0b9fcce4167e2959ebc5b8d6efb8511acec66d;hpb=fc71710f8695ea07d852284286b058ecb3955317 diff --git a/h/signals.h b/h/signals.h index b8f0865..480bf6d 100644 --- a/h/signals.h +++ b/h/signals.h @@ -10,22 +10,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);