summaryrefslogtreecommitdiffstats
path: root/linux-user/i386
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-07-08 19:05:45 +0200
committerLaurent Vivier2021-07-12 21:53:35 +0200
commit8f968b6a24aec7de8b1a1b4d2de922adad689297 (patch)
tree672c47e157f30ffd9ae8cb26b5a07a4d58b55885 /linux-user/i386
parentlinux-user/sparc: Rename target_errno.h -> target_errno_defs.h (diff)
downloadqemu-8f968b6a24aec7de8b1a1b4d2de922adad689297.tar.gz
qemu-8f968b6a24aec7de8b1a1b4d2de922adad689297.tar.xz
qemu-8f968b6a24aec7de8b1a1b4d2de922adad689297.zip
linux-user: Extract target errno to 'target_errno_defs.h'
We want to access the target errno indepently of the rest of the linux-user code. Move the header containing the generic errno definitions ('errno_defs.h') to 'generic/target_errno_defs.h', create a new 'target_errno_defs.h' in each target which itself includes 'generic/target_errno_defs.h'. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210708170550.1846343-4-f4bug@amsat.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/i386')
-rw-r--r--linux-user/i386/target_errno_defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux-user/i386/target_errno_defs.h b/linux-user/i386/target_errno_defs.h
new file mode 100644
index 0000000000..459b2189e2
--- /dev/null
+++ b/linux-user/i386/target_errno_defs.h
@@ -0,0 +1,7 @@
+#ifndef I386_TARGET_ERRNO_DEFS_H
+#define I386_TARGET_ERRNO_DEFS_H
+
+/* Target uses generic errno */
+#include "../generic/target_errno_defs.h"
+
+#endif