]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix MIPS n64 readahead (bug 21026).
authorJoseph Myers <joseph@codesourcery.com>
Thu, 5 Jan 2017 17:35:53 +0000 (17:35 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 9 Apr 2017 17:51:08 +0000 (19:51 +0200)
As noted in bug 20126, MIPS n64 uses an incorrect implementation of
readahead intended for 32-bit systems.  This patch adds a
syscalls.list entry to fix this.  An updated version of the
consolidation patch
<https://sourceware.org/ml/libc-alpha/2016-09/msg00527.html> could
remove this syscalls.list entry again.

Tested with compilation (only) for mips64; the nature of the syscall
doesn't allow for a glibc test to detect this issue.

[BZ #21026]
* sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
(readahead): New syscall entry.

(cherry picked from commit 30733525c6867c160261db1afade6326000f9f75)

ChangeLog
sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list

index 6e4696c7dfc681967024af92de13df1d02dc408d..13f809d26fce19bc6be66a54e1db9ebd6beee397 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-01-05  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #21026]
+       * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
+       (readahead): New syscall entry.
+
 2017-04-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #21258]
index 890a74494ae26eb5e396fafe88126eaa45c0c121..26ab6d0b75ff86e76c5b55b992e7902bc75b2b2f 100644 (file)
@@ -4,6 +4,8 @@ mmap            -       mmap            b:aniiii __mmap         mmap __mmap64 mmap64
 
 sync_file_range        -       sync_file_range Ci:iiii sync_file_range
 
+readahead      -       readahead       i:iii   __readahead     readahead
+
 prlimit                EXTRA   prlimit64       i:iipp  prlimit         prlimit64
 
 fanotify_mark  EXTRA   fanotify_mark   i:iiiis fanotify_mark