[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 05/14] linux-user: Handle arches with llseek instead
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PULL 05/14] linux-user: Handle arches with llseek instead of _llseek |
Date: |
Fri, 2 May 2014 22:15:40 +0300 |
From: James Hogan <address@hidden>
Recently merged kernel ports (such as OpenRISC and Meta) have an llseek
system call instead of _llseek. This is handled for the host
architecture by defining __NR__llseek as __NR_llseek, but not for the
target architecture.
Handle it in the same way for these architectures, defining
TARGET_NR__llseek as TARGET_NR_llseek.
Signed-off-by: James Hogan <address@hidden>
Cc: Riku Voipio <address@hidden>
Cc: Jia Liu <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
linux-user/syscall.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 27073b1..15de6f8 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -198,6 +198,11 @@ static type name (type1 arg1,type2 arg2,type3 arg3,type4
arg4,type5 arg5, \
#define __NR__llseek __NR_lseek
#endif
+/* Newer kernel ports have llseek() instead of _llseek() */
+#if defined(TARGET_NR_llseek) && !defined(TARGET_NR__llseek)
+#define TARGET_NR__llseek TARGET_NR_llseek
+#endif
+
#ifdef __NR_gettid
_syscall0(int, gettid)
#else
--
2.0.0.rc0
- [Qemu-devel] [PULL 00/14] linux-user update, riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 01/14] linux-user: Add /proc/self/exe open forwarding, riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 03/14] linux-user: Move if-elses to a switch statement., riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 06/14] linux-user: avoid using glibc internals in _syscall5 and in definition of target_sigevent struct, riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 02/14] linux-user: Assert stack used for auxvec, envp, argv, riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 11/14] linux-user/elfload.c: Fix incorrect ARM HWCAP bits, riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 08/14] linux-user: rename cpu- uname -> uname, riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 05/14] linux-user: Handle arches with llseek instead of _llseek,
riku . voipio <=
- [Qemu-devel] [PULL 04/14] linux-user: Add support for SCM_CREDENTIALS., riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 14/14] linux-user/elfload.c: Support ARM HWCAP2 flags, riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 07/14] linux-user/signal.c: Set fault address in AArch64 signal info, riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 13/14] linux-user/elfload.c: Fix A64 code which was incorrectly acting like A32, riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 12/14] linux-user/elfload.c: Update ARM HWCAP bits, riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 10/14] linux-user: remove configure option for setting uname release, riku . voipio, 2014/05/02
- [Qemu-devel] [PULL 09/14] linux-user: move uname functions to uname.c, riku . voipio, 2014/05/02