293e98256a
glibc >= 2.26 has dropped the tag struct ucontext from ucontext_t type. * linux/arm/arch_sigreturn.c (arch_sigreturn) [AARCH64]: Replace struct ucontext with ucontext_t. * linux/tile/arch_sigreturn.c (arch_sigreturn): Likewise. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
20 lines
489 B
C
20 lines
489 B
C
static void
|
|
arch_sigreturn(struct tcb *tcp)
|
|
{
|
|
#define SIZEOF_STRUCT_SIGINFO 128
|
|
#define SIZEOF_STRUCT_SIGCONTEXT (21 * 4)
|
|
#define OFFSETOF_STRUCT_UCONTEXT_UC_SIGMASK (5 * 4 + SIZEOF_STRUCT_SIGCONTEXT)
|
|
|
|
const unsigned long addr =
|
|
#ifdef AARCH64
|
|
tcp->currpers == 0 ?
|
|
(*aarch64_sp_ptr + SIZEOF_STRUCT_SIGINFO +
|
|
offsetof(ucontext_t, uc_sigmask)) :
|
|
#endif
|
|
(*arm_sp_ptr +
|
|
OFFSETOF_STRUCT_UCONTEXT_UC_SIGMASK);
|
|
tprints("{mask=");
|
|
print_sigset_addr(tcp, addr);
|
|
tprints("}");
|
|
}
|