musl/src/signal/sigemptyset.c
Rich Felker 0753b1faf0 fix sigemptyset and sigfillset for mips
they were leaving junk in the upper bits.
2013-09-16 12:58:51 -04:00

14 lines
249 B
C

#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;
}