You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
375 B

#include <signal.h>
#include <limits.h>
int sigfillset(sigset_t *set)
{
#if ULONG_MAX == 0xffffffff
set->__bits[0] = 0x7ffffffful;
set->__bits[1] = 0xfffffffcul;
if (_NSIG > 65) {
set->__bits[2] = 0xfffffffful;
set->__bits[3] = 0xfffffffful;
}
#else
set->__bits[0] = 0xfffffffc7ffffffful;
if (_NSIG > 65) set->__bits[1] = 0xfffffffffffffffful;
#endif
return 0;
}