X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..303e8387acecca26329e939f228f78ca805b7a15:/h/signals.h diff --git a/h/signals.h b/h/signals.h index 9648e04f..788fa98b 100644 --- a/h/signals.h +++ b/h/signals.h @@ -1,34 +1,21 @@ /* * signals.h -- header file for nmh signal interface - * - * $Id$ */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif -/* - * The type for a signal handler - */ -typedef RETSIGTYPE (*SIGNAL_HANDLER)(int); +#include /* - * 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. + * The type for a signal handler */ -#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);