sigwait.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/sigwait.c
blob: c8822eea49837bfc732ca38a330af89bc8582288 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <signal.h>
int sigwait(const sigset_t *restrict mask, int *restrict sig)
{
	siginfo_t si;
	if (sigtimedwait(mask, &si, 0) < 0)
		return -1;
	*sig = si.si_signo;
	return 0;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月07日 11:09:09 +0000

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