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

int pthread_sigmask(int how, const sigset_t *set, sigset_t *old)
{
	int ret = sigprocmask(how, set, old);
	if (ret) return errno;
	return 0;
}