blob: 3347ac7ccd1b8dc01382b7c4f1aef87fd418b189 [file] [log] [blame] [raw]
/*
* set.h Macros that look like sigaddset et al. but
* aren't. They are used to manipulate bits in
* an integer, to do our signal bookeeping.
*/
#define ISMEMBER(set, val) ((set) & (1 << (val)))
#define DELSET(set, val) ((set) &= ~(1 << (val)))
#define ADDSET(set, val) ((set) |= (1 << (val)))
#define EMPTYSET(set) ((set) = 0)