summaryrefslogtreecommitdiffstats
path: root/linux-headers/asm-x86/unistd.h
diff options
context:
space:
mode:
authorMarc-André Lureau2015-10-09 17:17:17 +0200
committerMichael S. Tsirkin2015-10-22 13:34:48 +0200
commit1842bdfdbac2ec46f2934d8914c874db83dd1344 (patch)
tree79b69f646ed48588f60cd58e436d52e60f796b2d /linux-headers/asm-x86/unistd.h
parentconfigure: probe for memfd (diff)
downloadqemu-1842bdfdbac2ec46f2934d8914c874db83dd1344.tar.gz
qemu-1842bdfdbac2ec46f2934d8914c874db83dd1344.tar.xz
qemu-1842bdfdbac2ec46f2934d8914c874db83dd1344.zip
linux-headers: add unistd.h
New syscalls are not yet widely distributed. Add them to qemu linux-headers include directory. Update based on v4.3-rc3 kernel headers. Exclude mips for now, which is more problematic due to extra header inclusion and probably unnecessary here. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: Thibaut Collet <thibaut.collet@6wind.com>
Diffstat (limited to 'linux-headers/asm-x86/unistd.h')
-rw-r--r--linux-headers/asm-x86/unistd.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/linux-headers/asm-x86/unistd.h b/linux-headers/asm-x86/unistd.h
new file mode 100644
index 0000000000..1f99b12843
--- /dev/null
+++ b/linux-headers/asm-x86/unistd.h
@@ -0,0 +1,15 @@
+#ifndef _ASM_X86_UNISTD_H
+#define _ASM_X86_UNISTD_H
+
+/* x32 syscall flag bit */
+#define __X32_SYSCALL_BIT 0x40000000
+
+# ifdef __i386__
+# include <asm/unistd_32.h>
+# elif defined(__ILP32__)
+# include <asm/unistd_x32.h>
+# else
+# include <asm/unistd_64.h>
+# endif
+
+#endif /* _ASM_X86_UNISTD_H */