Skip to content

Commit 386d386

Browse files
Sergei Trofimovichvivier
authored andcommitted
linux-user/syscall.c: add target-to-host mapping for epoll_create1()
Noticed by Barnabás Virágh as a python-3.7 failue on qemu-alpha. The bug shows up on alpha as it's one of the targets where EPOLL_CLOEXEC differs from other targets: sysdeps/unix/sysv/linux/alpha/bits/epoll.h: EPOLL_CLOEXEC = 01000000 sysdeps/unix/sysv/linux/bits/epoll.h: EPOLL_CLOEXEC = 02000000 Bug: https://bugs.gentoo.org/717548 Reported-by: Barnabás Virágh Signed-off-by: Sergei Trofimovich <[email protected]> CC: Riku Voipio <[email protected]> CC: Laurent Vivier <[email protected]> Reviewed-by: Laurent Vivier <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]>
1 parent 20038cd commit 386d386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux-user/syscall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12012,7 +12012,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
1201212012
#endif
1201312013
#if defined(TARGET_NR_epoll_create1) && defined(CONFIG_EPOLL_CREATE1)
1201412014
case TARGET_NR_epoll_create1:
12015-
return get_errno(epoll_create1(arg1));
12015+
return get_errno(epoll_create1(target_to_host_bitmask(arg1, fcntl_flags_tbl)));
1201612016
#endif
1201712017
#if defined(TARGET_NR_epoll_ctl)
1201812018
case TARGET_NR_epoll_ctl:

0 commit comments

Comments
 (0)