X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=h%2Fsignals.h;h=480bf6d0dfe00880d25b2906e3a54337081c4b6f;hb=b33ba7a7953d06a123ee59811903f0eb7f69e120;hp=645c340d16752ec6bde641f8c4f7cbab05f910d3;hpb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;p=mmh diff --git a/h/signals.h b/h/signals.h index 645c340..480bf6d 100644 --- a/h/signals.h +++ b/h/signals.h @@ -7,25 +7,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); +SIGNAL_HANDLER SIGNAL(int, SIGNAL_HANDLER); +SIGNAL_HANDLER SIGNAL2(int, SIGNAL_HANDLER);