sigandset.c\signal\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/signal/sigandset.c
blob: 974186f3d034bf3c77d70ccec6657fd558f2eaf5 (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/sizeof(long))
int sigandset(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;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月08日 17:46:01 +0000

AltStyle によって変換されたページ (->オリジナル) /