1999-11-12 07:06:50 -05: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.
|
|
|
|
*/
|
2000-05-16 03:46:13 -04:00
|
|
|
#include <sys/param.h>
|
|
|
|
#if defined __FreeBSD_version && __FreeBSD_version > 400000
|
|
|
|
#define make_sigset(maskp, hi, lo)(*maskp.__bits[0] = ((hi)<<24)|(lo))
|
1999-11-12 07:06:50 -05:00
|
|
|
|
2000-05-16 03:46:13 -04:00
|
|
|
/* Not a procedure: */
|
|
|
|
#define split_sigset(mask, hip, lop) \
|
|
|
|
((*(hip)=(mask.__bits[0]>>24)&0xff), \
|
|
|
|
(*(lop)=(mask.__bits[0]&0xffffff)))
|
|
|
|
#else
|
1999-11-12 07:06:50 -05:00
|
|
|
#define make_sigset(maskp, hi, lo) (*maskp=((hi)<<24)|(lo))
|
|
|
|
|
|
|
|
/* Not a procedure: */
|
|
|
|
#define split_sigset(mask, hip, lop) \
|
|
|
|
((*(hip)=(mask>>24)&0xff), \
|
|
|
|
(*(lop)=(mask&0xffffff)))
|
2000-05-16 03:46:13 -04:00
|
|
|
#endif
|