You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
467 B
23 lines
467 B
4 months ago
|
#include "negated_errno.h"
|
||
|
|
||
|
#define get_error s390_get_error
|
||
|
#define ARCH_REGSET s390_regset
|
||
|
#include "../s390/get_error.c"
|
||
|
#undef ARCH_REGSET
|
||
|
#undef get_error
|
||
|
|
||
|
#define get_error s390x_get_error
|
||
|
#define ARCH_REGSET s390x_regset
|
||
|
#include "../s390/get_error.c"
|
||
|
#undef ARCH_REGSET
|
||
|
#undef get_error
|
||
|
|
||
|
static void
|
||
|
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);
|
||
|
}
|