linux-user: avoid using glibc internals in _syscall5 and in definition of target_sige...
authorNatanael Copa <ncopa@alpinelinux.org>
Tue, 29 Apr 2014 11:11:20 +0000 (13:11 +0200)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 2 May 2014 18:59:28 +0000 (21:59 +0300)
commit34d6086236baeb59f4b46e2380f2b271acd6f6cf
tree8c06a8dede03f4e4660f7b23f3eb2ac81d112dde
parenta29e5ba21f3dc01cd7f12aac9216e06e7bdd0e9e
linux-user: avoid using glibc internals in _syscall5 and in definition of target_sigevent struct

Use the public sigset_t instead of the glibc specific internal
__sigset_t in _syscall.

Calculate the sigevent pad size is calculated in similar way as kernel
does it instead of using glibc internal field _pad.

This is needed for building with musl libc.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/syscall.c
linux-user/syscall_defs.h