status-go/vendor/modernc.org/libc/musl/src/signal/sigprocmask.c

11 lines
207 B
C
Raw Normal View History

2024-03-07 11:42:38 +00:00
#include <signal.h>
#include <errno.h>
int sigprocmask(int how, const sigset_t *restrict set, sigset_t *restrict old)
{
int r = pthread_sigmask(how, set, old);
if (!r) return r;
errno = r;
return -1;
}