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

Reported-by: Barnabás Virágh
Signed-off-by: Sergei Trofimovich <>
CC: Riku Voipio <>
CC: Laurent Vivier <>
Reviewed-by: Laurent Vivier <>
Message-Id: <>
Signed-off-by: Laurent Vivier <>
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 674f70e..05f0391 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -12012,7 +12012,7 @@
 #if defined(TARGET_NR_epoll_create1) && defined(CONFIG_EPOLL_CREATE1)
     case TARGET_NR_epoll_create1:
-        return get_errno(epoll_create1(arg1));
+        return get_errno(epoll_create1(target_to_host_bitmask(arg1, fcntl_flags_tbl)));
 #if defined(TARGET_NR_epoll_ctl)
     case TARGET_NR_epoll_ctl: