2 /***************************************************************************
4 ****************************************************************************
5 * ncurses is copyright (C) 1992-1995 *
7 * zmbenhal@netcom.com *
9 * esr@snark.thyrsus.com *
11 * Permission is hereby granted to reproduce and distribute ncurses *
12 * by any means and for any fee, whether alone or as part of a *
13 * larger distribution, in source or in binary form, PROVIDED *
14 * this notice is included with any such distribution, and is not *
15 * removed from any of its header files. Mention of ncurses in any *
16 * applications linked with it is highly appreciated. *
18 * ncurses comes AS IS with no warranty, implied or expressed. *
20 ***************************************************************************/
23 /* This file exists to handle non-POSIX systems which don't have <unistd.h>,
24 * and usually no sigaction() nor <termios.h>
38 #define SIG_UNBLOCK 01
41 #define SIG_SETMASK 02
44 * <bsd/signal.h> is in the Linux 1.2.8 + gcc 2.7.0 configuration,
45 * and is useful for testing this header file.
48 #include <bsd/signal.h>
51 typedef struct sigvec sigaction_t;
53 #define sigset_t _nc_sigset_t
54 typedef unsigned long sigset_t;
57 #define sa_mask sv_mask
59 #define sa_handler sv_handler
61 #define sa_flags sv_flags
64 #define sigaction _nc_sigaction
66 #define sigprocmask _nc_sigprocmask
68 #define sigemptyset _nc_sigemptyset
70 #define sigsuspend _nc_sigsuspend
72 #define sigdelset _nc_sigdelset
74 #define sigaddset _nc_sigaddset
76 extern int sigaction (int sig, sigaction_t * sigact, sigaction_t * osigact);
77 extern int sigprocmask (int how, sigset_t *mask, sigset_t *omask);
78 extern int sigemptyset (sigset_t *mask);
79 extern int sigsuspend (sigset_t *mask);
80 extern int sigdelset (sigset_t *mask, int sig);
81 extern int sigaddset (sigset_t *mask, int sig);