summaryrefslogblamecommitdiff
path: root/src/signal/sigorset.c
blob: df1b1b17deb9040586f6f1b043feebbe79ba8690 (plain) (tree)
1
2
3
4
5
6
7

                   
 
                                       


                                                             




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