projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
there is no such GNU function fpurge, only __fpurge.
[musl]
/
src
/
signal
/
sigfillset.c
diff --git
a/src/signal/sigfillset.c
b/src/signal/sigfillset.c
index
fab50a5
..
6c84b9b
100644
(file)
--- a/
src/signal/sigfillset.c
+++ b/
src/signal/sigfillset.c
@@
-1,8
+1,14
@@
#include <signal.h>
#include <string.h>
#include <signal.h>
#include <string.h>
+#include <limits.h>
int sigfillset(sigset_t *set)
{
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;
}
return 0;
}