blob: ed488738c4ec3779c40db13d5eac3ebac6369489 (
plain) (
tree)
|
|
#define _GNU_SOURCE
#include <signal.h>
#define SST_SIZE (_NSIG/8/sizeof(long))
int sigorset(sigset_t *dest, const sigset_t *left, const 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;
}
|