question about s390/bits/siginfo.h

Edjunior Barbosa Machado emachado@linux.vnet.ibm.com
Wed Mar 20 21:29:00 GMT 2013


Hi all,

working on a patch that updates siginfo.h files from glibc, we've
noticed something in sysdeps/unix/sysv/linux/s390/bits/siginfo.h that
seems to be inconsistent with the kernel source.

In the generic kernel header <asm-generic/siginfo.h> included by
arch/s390/include/uapi/asm/siginfo.h, _sigfault has an optional field
int _trapno that is included #ifdef __ARCH_SI_TRAPNO. On kernel 3.8,
__ARCH_SI_TRAPNO is defined for sparc, tile and alpha.

However, glibc doesn't use __ARCH_SI_TRAPNO and siginfo.h for s390 has
int _trapno hardcoded on _sigfault. Is that struct correct for s390?

Thanks!
-- 
Edjunior



More information about the Libc-help mailing list