aboutsummaryrefslogtreecommitdiffstats
path: root/sigreturn.c
blob: 3909d1d1b0dcc0a15515458d699194c5e868e243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "defs.h"
#include "regs.h"
#include "ptrace.h"

#if defined HAVE_ASM_SIGCONTEXT_H && !defined HAVE_STRUCT_SIGCONTEXT
# include <asm/sigcontext.h>
#endif

#ifndef NSIG
# warning NSIG is not defined, using 32
# define NSIG 32
#elif NSIG < 32
# error NSIG < 32
#endif

SYS_FUNC(sigreturn)
{
	if (entering(tcp)) {
#include "arch_sigreturn.c"
	}
	return 0;
}