sigisemptyset.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/sigisemptyset.c
blob: 68b8662468eedf54e1e5c7f8695ab78fe7cd2b0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#define _GNU_SOURCE
#include <signal.h>
#include <string.h>
int sigisemptyset(const sigset_t *set)
{
	for (size_t i=0; i<_NSIG/8/sizeof *set->__bits; i++)
		if (set->__bits[i]) return 0;
	return 1;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月08日 18:31:49 +0000

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