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 ***************************************************************************/
22 #include <curses.priv.h>
24 /* This file provides sigaction() emulation using sigvec() */
25 /* Use only if this is non POSIX system */
29 #include <SigAction.h>
31 MODULE_ID("$Id: sigaction.c,v 1.6 1996/07/31 00:15:36 tom Exp $")
34 sigaction (int sig, sigaction_t * sigact, sigaction_t * osigact)
36 return sigvec(sig, sigact, osigact);
40 sigemptyset (sigset_t * mask)
47 sigprocmask (int mode, sigset_t * mask, sigset_t * omask)
49 sigset_t current = sigsetmask(0);
51 if (omask) *omask = current;
55 else if (mode==SIG_UNBLOCK)
57 else if (mode==SIG_SETMASK)
65 sigsuspend (sigset_t * mask)
67 return sigpause (*mask);
71 sigdelset (sigset_t * mask, int sig)
73 *mask &= ~sigmask (sig);
78 sigaddset (sigset_t * mask, int sig)
80 *mask |= sigmask (sig);
84 extern void _nc_sigaction(void); /* quiet's gcc warning */
85 void _nc_sigaction(void) { } /* nonempty for strict ANSI compilers */