projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix double-processing of DT_RELR relocations in ldso relocating itself
[musl]
/
src
/
signal
/
sigisemptyset.c
diff --git
a/src/signal/sigisemptyset.c
b/src/signal/sigisemptyset.c
index
312c66c
..
68b8662
100644
(file)
--- a/
src/signal/sigisemptyset.c
+++ b/
src/signal/sigisemptyset.c
@@
-4,6
+4,7
@@
int sigisemptyset(const sigset_t *set)
{
- static const unsigned long zeroset[_NSIG/8/sizeof(long)];
- return !memcmp(set, &zeroset, _NSIG/8);
+ for (size_t i=0; i<_NSIG/8/sizeof *set->__bits; i++)
+ if (set->__bits[i]) return 0;
+ return 1;
}