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.
|
|
|
|
*/
|
|
|
|
|
1999-07-14 21:27:15 -04:00
|
|
|
#define make_sigset(maskp, hi, lo) \
|
|
|
|
((maskp)->__val[0] = (unsigned long int) ((hi) << 24) | (lo))
|
|
|
|
|
|
|
|
#define split_sigset(mask, hip, lop)\
|
|
|
|
((*(hip) = ((mask).__val[0] >> 24) & 0xff),\
|
|
|
|
(*(lop) = ((mask).__val[0] & 0xffffff)))
|