[PATCH v2] linux-user: Disable static assert involving __SIGRTMAX if it is missing

2021-05-26 Thread Michael Forney
in the upcoming POSIX revision[0]). musl libc does not define __SIGRTMAX, so disabling this check when it is missing fixes one of the last remaining errors when building qemu. [0] https://www.austingroupbugs.net/view.php?id=741 Signed-off-by: Michael Forney --- Changes since v2: * Guard check

[PATCH] linux-user: Remove unnecessary static assert involving __SIGRTMAX

2021-05-25 Thread Michael Forney
qemu. [0] https://www.austingroupbugs.net/view.php?id=741 Signed-off-by: Michael Forney --- If you prefer, I can send an alternate patch to leave the QEMU_BUILD_BUG_ON, but guard it by #ifdef __SIGRTMAX. linux-user/signal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/linux-user/signal

[PATCH] linux-user: Use public sigev_notify_thread_id member if available

2021-05-25 Thread Michael Forney
-by: Michael Forney --- configure| 16 linux-user/syscall.c | 6 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 676239c697..fa39b0a727 100755 --- a/configure +++ b/configure @@ -4462,6 +4462,19 @@ if compile_prog

[PATCH] linux-user: Fix incorrect use of feature-test-macros

2021-05-25 Thread Michael Forney
the st_*tim fields, use the configure test result which does exactly that. Signed-off-by: Michael Forney --- linux-user/syscall.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index c9f812091c..9a52f235d2 100644 --- a/linux

[PATCH v2] linux-user: Remove obsolete F_SHLCK and F_EXLCK translation

2021-01-14 Thread Michael Forney
#L322-L324 [1] https://github.com/mpe/linux-fullhistory/blob/v2.2.0/fs/locks.c#L429-L445 Signed-off-by: Michael Forney --- Changes since v1: fixed typo in commit message, resend to qemu-trivial. linux-user/alpha/target_fcntl.h | 2 -- linux-user/generic/fcntl.h | 5 - linux-user/syscall.c

[PATCH v2] osdep.h: Remove include

2021-01-13 Thread Michael Forney
, just remove it. Tested building on OpenBSD after removing this include. Signed-off-by: Michael Forney Reviewed-by: Eric Blake --- Changes since v1: rebase on latest master include/qemu/osdep.h | 4 meson.build | 1 - 2 files changed, 5 deletions(-) diff --git a/include/qemu

[PATCH] linux-user: Remove obsolete F_SHLCK and F_WRLCK translation

2020-10-27 Thread Michael Forney
#L322-L324 [1] https://github.com/mpe/linux-fullhistory/blob/v2.2.0/fs/locks.c#L429-L445 Signed-off-by: Michael Forney --- linux-user/alpha/target_fcntl.h | 2 -- linux-user/generic/fcntl.h | 5 - linux-user/syscall.c| 2 -- 3 files changed, 9 deletions(-) diff --git a/linux

[PATCH] osdep.h: Remove include

2020-10-26 Thread Michael Forney
, just remove it. Tested building on OpenBSD after removing this include. Signed-off-by: Michael Forney --- configure| 10 -- include/qemu/osdep.h | 4 2 files changed, 14 deletions(-) diff --git a/configure b/configure index 55e07c82dd..7b57456052 100755 --- a/configure