Dmitry V. Levin
51d89ef0a0
* linux/*/get_error.c: Rename all arch-specific implementations of get_error() to arch_get_error(). * linux/*/get_syscall_args.c: Rename all arch-specific implementations of get_syscall_args() to arch_get_syscall_args(). * syscall.c (get_syscall_args, get_error): New functions. (tamper_with_syscall_exiting, get_syscall_result): Do not clear tcp->u_error before get_error() invocation as the latter does it now.
23 lines
492 B
C
23 lines
492 B
C
#include "negated_errno.h"
|
|
|
|
#define arch_get_error s390_get_error
|
|
#define ARCH_REGSET s390_regset
|
|
#include "../s390/get_error.c"
|
|
#undef ARCH_REGSET
|
|
#undef arch_get_error
|
|
|
|
#define arch_get_error s390x_get_error
|
|
#define ARCH_REGSET s390x_regset
|
|
#include "../s390/get_error.c"
|
|
#undef ARCH_REGSET
|
|
#undef arch_get_error
|
|
|
|
static void
|
|
arch_get_error(struct tcb *tcp, const bool check_errno)
|
|
{
|
|
if (tcp->currpers == 1)
|
|
s390_get_error(tcp, check_errno);
|
|
else
|
|
s390x_get_error(tcp, check_errno);
|
|
}
|