]> granicus.if.org Git - strace/commit
Fix struct sigevent decoding for musl
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 12 Jan 2016 01:13:48 +0000 (01:13 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 12 Jan 2016 03:07:39 +0000 (03:07 +0000)
commite714b87064ca296bcfbc1f8ade9e99773e9dc813
tree26f9e3c309213e500162d3e6880945df42b21e63
parent2a6ac9473cc8db42504d9cb0f3b9c8f56b9292b9
Fix struct sigevent decoding for musl

Do not rely on "struct sigevent.__pad" being located at the same address
as "struct sigevent.sigev_notify_thread_id", it's not the case with musl
libc.  Do not rely on struct sigevent definition at all to access
sigev_notify_thread_id.

* configure.ac (AC_CHECK_MEMBERS): Remove struct sigevent._sigev_un._pad
and struct sigevent.__pad.
* sigevent.h: New file.
* Makefile.am (strace_SOURCES): Add it.
* print_sigevent.c: Include it.
* print_sigevent.c (struct_sigevent): Remove.
(print_sigevent): Update all struct_sigevent users.
* tests/timer_create.c: Include "sigevent.h".
(main): Use struct_sigevent instead of struct sigevent,
all struct sigevent clients changed.
Makefile.am
configure.ac
print_sigevent.c
sigevent.h [new file with mode: 0644]
tests/timer_create.c