summaryrefslogtreecommitdiff
path: root/src/signal/sigorset.c
blob: 5460224bfbb93fac43c59ec873ee6d24b9f5b8ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#define _GNU_SOURCE
#include <signal.h>

#define SST_SIZE (_NSIG/8)

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