]> git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/src/signal/sigemptyset.c
WASI libc prototype implementation.
[wasi-libc.git] / libc-top-half / musl / src / signal / sigemptyset.c
1 #include <signal.h>
2 #include <string.h>
3
4 int sigemptyset(sigset_t *set)
5 {
6 set->__bits[0] = 0;
7 if (sizeof(long)==4 || _NSIG > 65) set->__bits[1] = 0;
8 if (sizeof(long)==4 && _NSIG > 65) {
9 set->__bits[2] = 0;
10 set->__bits[3] = 0;
11 }
12 return 0;
13 }