aboutsummaryrefslogtreecommitdiff
path: root/sigreturn.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2015-07-20 21:33:09 +0000
committerDmitry V. Levin <ldv@altlinux.org>2015-07-20 22:03:07 +0000
commitfa6c0879c7bcd3128c3407e87539ad73b2ed8231 (patch)
tree3b54d5202d0c499f80e8b081c81554055f95a2cf /sigreturn.c
parenteebb5616bfa15bb75eeeb646b46f2bbaf9b93115 (diff)
downloadstrace-fa6c0879c7bcd3128c3407e87539ad73b2ed8231.tar.gz
sigreturn: make use of RVAL_DECODED
* sigreturn.c (arch_sigreturn): New function. (sys_sigreturn): Use it. Return RVAL_DECODED. * linux/alpha/arch_sigreturn.c: Update. * linux/crisv10/arch_sigreturn.c: Likewise. * linux/m68k/arch_sigreturn.c: Likewise. * linux/microblaze/arch_sigreturn.c: Likewise. * linux/x86_64/arch_sigreturn.c: Likewise.
Diffstat (limited to 'sigreturn.c')
-rw-r--r--sigreturn.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sigreturn.c b/sigreturn.c
index 659d5af9..9f2e32de 100644
--- a/sigreturn.c
+++ b/sigreturn.c
@@ -14,10 +14,15 @@
# error NSIG < 32
#endif
-SYS_FUNC(sigreturn)
+static void
+arch_sigreturn(struct tcb *tcp)
{
- if (entering(tcp)) {
#include "arch_sigreturn.c"
- }
- return 0;
+}
+
+SYS_FUNC(sigreturn)
+{
+ arch_sigreturn(tcp);
+
+ return RVAL_DECODED;
}