mailing list of musl libc
 help / color / mirror / code / Atom feed
0b33888cbfba639f128298199258e1ea82adc0a7 blob 260 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
#include <signal.h>
#include <errno.h>

int sigismember(const sigset_t *set, int sig)
{
	unsigned s = sig-1;
	if (s < 0 || s >= _NSIG-1) {
		errno = EINVAL;
		return -1;
	}
	return !!(set->__bits[s/8/sizeof *set->__bits] & 1UL<<(s&8*sizeof *set->__bits-1));
}
debug log:

solving 0b33888c ...
found 0b33888c in https://inbox.vuxu.org/musl/20241029130234.729799-1-lihua.zhao.cn@windriver.com/
found ab87d622 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 ab87d62249de487cdb1c0990ffa26acf60160ade	src/signal/sigismember.c

applying [1/1] https://inbox.vuxu.org/musl/20241029130234.729799-1-lihua.zhao.cn@windriver.com/
diff --git a/src/signal/sigismember.c b/src/signal/sigismember.c
index ab87d622..0b33888c 100644

Checking patch src/signal/sigismember.c...
Applied patch src/signal/sigismember.c cleanly.

index at:
100644 0b33888cbfba639f128298199258e1ea82adc0a7	src/signal/sigismember.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).