]> granicus.if.org Git - strace/blob - sigreturn.c
Fix ioctl entries on 32-bit architectures with 64-bit aligned structures
[strace] / sigreturn.c
1 #include "defs.h"
2 #include "regs.h"
3 #include "ptrace.h"
4
5 #if defined HAVE_ASM_SIGCONTEXT_H && !defined HAVE_STRUCT_SIGCONTEXT
6 # include <asm/sigcontext.h>
7 #endif
8
9 #ifndef NSIG
10 # warning NSIG is not defined, using 32
11 # define NSIG 32
12 #elif NSIG < 32
13 # error NSIG < 32
14 #endif
15
16 SYS_FUNC(sigreturn)
17 {
18         if (entering(tcp)) {
19 #include "arch_sigreturn.c"
20         }
21         return 0;
22 }