summaryrefslogtreecommitdiff
path: root/src/signal/sigsuspend.c
blob: 6c13fce139459171366585118f5ea5c306e3ab73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <signal.h>
#include "syscall.h"
#include "libc.h"

int sigsuspend(const sigset_t *mask)
{
	int ret;
	CANCELPT_BEGIN;
	ret = syscall(__NR_rt_sigsuspend, mask, 8);
	CANCELPT_END;
	return ret;
}