projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add legacy sys/ttydefaults.h header
[oweals/musl.git]
/
src
/
signal
/
sigandset.c
1
#define _GNU_SOURCE
2
#include <signal.h>
3
4
#define SST_SIZE (_NSIG/8/sizeof(long))
5
6
int sigandset(sigset_t *dest, sigset_t *left, sigset_t *right)
7
{
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;
11
}
12