summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorRichard Henderson2016-12-05 22:08:12 +0100
committerRichard Henderson2017-01-23 03:14:10 +0100
commitfe8ed7d5794f6cecc69bb31ab1291e2356d31bcd (patch)
tree25721767d3d1c8ea0e5c782075ae2f0f2da6b2bd /linux-user/syscall.c
parentlinux-user: Add SIOCGPGRP, SIOCGSTAMP, SIOCGSTAMPNS (diff)
downloadqemu-fe8ed7d5794f6cecc69bb31ab1291e2356d31bcd.tar.gz
qemu-fe8ed7d5794f6cecc69bb31ab1291e2356d31bcd.tar.xz
qemu-fe8ed7d5794f6cecc69bb31ab1291e2356d31bcd.zip
linux-user: Handle ERFKILL and EHWPOISON
With definitions for generic, alpha and mips taken from 4.9-rc2. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index acb004f035..11a311f9db 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -798,6 +798,12 @@ static uint16_t host_to_target_errno_table[ERRNO_TABLE_SIZE] = {
#ifdef ENOMSG
[ENOMSG] = TARGET_ENOMSG,
#endif
+#ifdef ERKFILL
+ [ERFKILL] = TARGET_ERFKILL,
+#endif
+#ifdef EHWPOISON
+ [EHWPOISON] = TARGET_EHWPOISON,
+#endif
};
static inline int host_to_target_errno(int err)