diff options
Diffstat (limited to 'src/signal/sigfillset.c')
-rw-r--r-- | src/signal/sigfillset.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/signal/sigfillset.c b/src/signal/sigfillset.c index fab50a52..6c84b9b7 100644 --- a/src/signal/sigfillset.c +++ b/src/signal/sigfillset.c @@ -1,8 +1,14 @@ #include <signal.h> #include <string.h> +#include <limits.h> int sigfillset(sigset_t *set) { - memset(set, -1, sizeof *set); +#if ULONG_MAX == 0xffffffff + set->__bits[0] = 0x7ffffffful; + set->__bits[1] = 0xfffffffcul; +#else + set->__bits[0] = 0xfffffffc7ffffffful; +#endif return 0; } |