aboutsummaryrefslogtreecommitdiff
path: root/linux-user/i386
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-10-12 03:55:51 +0000
committerBlue Swirl <blauwirbel@gmail.com>2012-12-08 18:49:30 +0000
commit24c35a504e8b09e697d0268bbefb2a329b901611 (patch)
treea20bed13981d69cc37e6855e3d354e896a283ef5 /linux-user/i386
parentf877d09e63bd94424dab049da75bc1cd601a7609 (diff)
downloadqemu-24c35a504e8b09e697d0268bbefb2a329b901611.zip
qemu-24c35a504e8b09e697d0268bbefb2a329b901611.tar.gz
qemu-24c35a504e8b09e697d0268bbefb2a329b901611.tar.bz2
linux-user: Merge pread/pwrite into pread64/pwrite64
The Linux syscalls underlying pread() and pwrite() take a 64 bit offset on all architectures, even if some of them name the syscall "pread/pwrite" rather than "pread64/pwrite64" for historical reasons. So move the four QEMU target architectures (arm, i386, sparc, unicore32) which were defining TARGET_NR_pread/pwrite to define TARGET_NR_pread64/pwrite64 instead, and drop the TARGET_NR_pread/pwrite implementation code completely. (Based on examination of the kernel sources for the four architectures this patch affects.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'linux-user/i386')
-rw-r--r--linux-user/i386/syscall_nr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/i386/syscall_nr.h b/linux-user/i386/syscall_nr.h
index 74abfca..f080305 100644
--- a/linux-user/i386/syscall_nr.h
+++ b/linux-user/i386/syscall_nr.h
@@ -182,8 +182,8 @@
#define TARGET_NR_rt_sigtimedwait 177
#define TARGET_NR_rt_sigqueueinfo 178
#define TARGET_NR_rt_sigsuspend 179
-#define TARGET_NR_pread 180
-#define TARGET_NR_pwrite 181
+#define TARGET_NR_pread64 180
+#define TARGET_NR_pwrite64 181
#define TARGET_NR_chown 182
#define TARGET_NR_getcwd 183
#define TARGET_NR_capget 184