]> granicus.if.org Git - strace/blob - sigreturn.c
tests: workaround systemd-nspawn habit of disabling unimplemented syscalls
[strace] / sigreturn.c
1 /*
2  * Copyright (c) 2015-2018 Dmitry V. Levin <ldv@altlinux.org>
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: LGPL-2.1-or-later
6  */
7
8 #include "defs.h"
9 #include "ptrace.h"
10 #include "nsig.h"
11 #include "regs.h"
12
13 #if defined HAVE_ASM_SIGCONTEXT_H && !defined HAVE_STRUCT_SIGCONTEXT
14 # include <asm/sigcontext.h>
15 #endif
16
17 #include "arch_sigreturn.c"
18
19 SYS_FUNC(sigreturn)
20 {
21         arch_sigreturn(tcp);
22
23         return RVAL_DECODED;
24 }