[comp.sys.sgi] Access to current signal mask

art@DINORAH.WUSTL.EDU (02/09/90)

Greetings all,

    I am writing some code that needs to run on several different
platforms and that plays with signals and the process's signal mask,
(flames and pity to /dev/null  8^) ) and I would like to be polite and
restore the signal mask to its previous state when I am done.
Unfortunately, I can find no way to get at the signal mask under Irix.
There are broad hints in /usr/include/sys/signal.h that it exists, but
it appears to be buried inaccessably deep in the kernal.

    Ideally what I would like to find are the POSIX standard signal
handling routines, since that is what my "portable" code uses.  In
particular, I would like to find sigprocmask(), sigaction(),
sigsuspend() and the sigset_t operators.  I would be almost as happy
to find any set of routines that would let me implement these POSIX
routines.  I would even be willing to do some mucking around in the
kernal, if I knew how and where to muck.

    If anyone has any gems of wisdom on this topic, I would love to
hear from you.  I do not follow comp.sys.sgi regularly, and am not on
the info-iris mailing list (though one of my coworkers is), so please
(also) send any responses to me directly by e-mail.  Thanks in
advance!  I am

    -art smith
(art@dinorah.wustl.edu    or    ...!uunet!wucs1!dinorah!art)