summaryrefslogblamecommitdiff
path: root/src/signal/sigaltstack.c
blob: 3cc2d456b3bb572a6dc6af926b6a4ddc6a198762 (plain) (tree)
1
2
3
4
5
6
7
8







                                                               
#include <signal.h>
#include "syscall.h"

int sigaltstack(const stack_t *ss, stack_t *old)
{
	/* depends on kernel struct matching */
	return syscall2(__NR_sigaltstack, (long)ss, (long)old);
}