home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
emacs-19.28-src.tgz
/
tar.out
/
fsf
/
emacs
/
unixlib
/
src
/
sigsetmask.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
400b
|
23 lines
#include "amiga.h"
#include "signals.h"
long sigsetmask(long mask)
{
int oldmask = _sig_mask, i, imask;
chkabort();
_sig_mask = mask;
/* Check all pending signals */
for (i = 0, imask = 1; i < NSIG; i++, imask <<= 1)
if ((_sig_pending & imask) && !(_sig_mask & imask))
_sig_dispatch(i);
return oldmask;
}
long sigblock(long mask)
{
return sigsetmask(_sig_mask | mask);
}