scsh-0.5/scsh/irix/sigset.h

11 lines
357 B
C
Raw Permalink Normal View History

1995-10-13 23:34:21 -04:00
/* Convert between a lo24/hi integer-pair bitset and a sigset_t value.
** These macros are OS-dependent, and must be defined per-OS.
*/
#define make_sigset(maskp, hi, lo) ((maskp)->sigbits[0]=((hi)<<24)|(lo))
/* Not a procedure: */
#define split_sigset(mask, hip, lop) \
((*(hip)=((mask).sigbits[0]>>24)&0xff), \
(*(lop)=((mask).sigbits[0]&0xffffff)))