summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/signal/sigemptyset.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libc-top-half/musl/src/signal/sigemptyset.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/signal/sigemptyset.c b/libc-top-half/musl/src/signal/sigemptyset.c
new file mode 100644
index 0000000..1d07471
--- /dev/null
+++ b/libc-top-half/musl/src/signal/sigemptyset.c
@@ -0,0 +1,13 @@
+#include <signal.h>
+#include <string.h>
+
+int sigemptyset(sigset_t *set)
+{
+ set->__bits[0] = 0;
+ if (sizeof(long)==4 || _NSIG > 65) set->__bits[1] = 0;
+ if (sizeof(long)==4 && _NSIG > 65) {
+ set->__bits[2] = 0;
+ set->__bits[3] = 0;
+ }
+ return 0;
+}