summaryrefslogtreecommitdiff
path: root/src/signal/sigsuspend.c
blob: 0806288ce5754a164a355525d9677f893ca43ff8 (plain)
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 = syscall2(__NR_rt_sigsuspend, (long)mask, SYSCALL_SIGSET_SIZE);
	CANCELPT_END;
	return ret;
}