about summary refs log tree commit diff
path: root/src/signal/sigprocmask.c
blob: 67e2b82e2ba8362f0db5272477d6588132e28689 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <signal.h>
#include <errno.h>

int sigprocmask(int how, const sigset_t *set, sigset_t *old)
{
	int r = pthread_sigmask(how, set, old);
	if (!r) return r;
	errno = r;
	return -1;
}