2 * sigmisc.c - used to get a signal mask
6 #if defined(_POSIX_SOURCE)
8 /* This can't be done in setjmp.e, since SIG_SETMASK is defined in
9 * <signal.h>. This is a C-file, which can't be included.
12 #include <sys/types.h>
16 int _sigprocmask(int, sigset_t
*, sigset_t
*);
20 /* This switch compiles when a sigset_t has the right size. */
23 case sizeof(sigset_t
) <= sizeof(long): break;
28 __newsigset(sigset_t
*p
)
30 /* The SIG_SETMASK is not significant */
31 _sigprocmask(SIG_SETMASK
, NULL
, p
);
35 __oldsigset(sigset_t
*p
)
37 _sigprocmask(SIG_SETMASK
, p
, NULL
);
39 #endif /* _POSIX_SOURCE */