blob: df1b1b17deb9040586f6f1b043feebbe79ba8690 (
plain) (
tree)
|
|
#define _GNU_SOURCE
#include <signal.h>
#define SST_SIZE (_NSIG/8/sizeof(long))
int sigorset(sigset_t *dest, sigset_t *left, sigset_t *right)
{
unsigned long i = 0, *d = (void*) dest, *l = (void*) left, *r = (void*) right;
for(; i < SST_SIZE; i++) d[i] = l[i] | r[i];
return 0;
}
|