diff options
Diffstat (limited to 'src/signal/sigisemptyset.c')
-rw-r--r-- | src/signal/sigisemptyset.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/signal/sigisemptyset.c b/src/signal/sigisemptyset.c new file mode 100644 index 00000000..e2410514 --- /dev/null +++ b/src/signal/sigisemptyset.c @@ -0,0 +1,9 @@ +#define _GNU_SOURCE +#include <signal.h> +#include <string.h> + +int sigisemptyset(const sigset_t *set) +{ + static const sigset_t zeroset; + return !memcmp(set, &zeroset, 8); +} |