ipc: prefer SYS_ipc when it is defined
[musl.git] / src / signal / sigandset.c
blob974186f3d034bf3c77d70ccec6657fd558f2eaf5
1 #define _GNU_SOURCE
2 #include <signal.h>
4 #define SST_SIZE (_NSIG/8/sizeof(long))
6 int sigandset(sigset_t *dest, const sigset_t *left, const sigset_t *right)
8 unsigned long i = 0, *d = (void*) dest, *l = (void*) left, *r = (void*) right;
9 for(; i < SST_SIZE; i++) d[i] = l[i] & r[i];
10 return 0;