This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Fix MIPS n64 sync_file_range
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-ports at sourceware dot org
- Date: Fri, 1 Apr 2011 16:08:17 +0000 (UTC)
- Subject: Fix MIPS n64 sync_file_range
In the course of making ports changes corresponding to recent libc changes
to make fallocate* and sync_file_range cancellation points, I noticed that
MIPS n64 would get the wrong version of sync_file_range: the one from
libc's sysdeps/unix/sysv/linux/sync_file_range.c, which expects the 32-bit
version of the syscall with 6 arguments, whereas both n32 and n64 use the
4-argument syscall. (Recall that n64 does not use
sysdeps/unix/sysv/linux/wordsize-64 because of differences between the
stat and stat64 structures.) I've applied this patch to fix this
separately from the general cancellation changes, since I think this fix
will be appropriate for merging to 2.13 branch on its own.
diff --git a/ChangeLog.mips b/ChangeLog.mips
index 8a72ec5..c811fd7 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,3 +1,8 @@
+2011-04-01 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Add
+ sync_file_range.
+
2011-03-22 Joseph Myers <joseph@codesourcery.com>
* sysdeps/mips/dl-lookup.c: Update from generic version.
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list b/sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
index 2c8c4d4..2404709 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
@@ -1,5 +1,7 @@
# File name Caller Syscall name # args Strong name Weak names
+sync_file_range - sync_file_range i:iiii sync_file_range
+
prlimit EXTRA prlimit64 i:iipp prlimit prlimit64
fanotify_mark EXTRA fanotify_mark i:iiiis fanotify_mark
--
Joseph S. Myers
joseph@codesourcery.com