]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips32: hook up truncate64 syscall
authorPetar Jovanovic <mips32r2@gmail.com>
Tue, 20 Aug 2019 12:29:57 +0000 (12:29 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Tue, 20 Aug 2019 12:29:57 +0000 (12:29 +0000)
Hook up truncate64 syscall for mips32.

This helps truncate02_64 and several other tests pass without warnings in
the LTP test suite.

coregrind/m_syswrap/syswrap-mips32-linux.c

index 6da479b0f66bfb810152657a770cb99f66973e53..5c34526916ce9602108122991f345fb676feb43c 100644 (file)
@@ -973,7 +973,7 @@ static SyscallTableEntry syscall_main_table[] = {
    //..    GENXY(__NR_getpmsg,           sys_getpmsg),           // 208
    //..    GENX_(__NR_putpmsg,           sys_putpmsg),           // 209
    PLAX_ (__NR_mmap2,                  sys_mmap2),                   // 210
-   //   GENX_(__NR_truncate64,        sys_truncate64),        // 211
+   GENX_ (__NR_truncate64,             sys_truncate64),              // 211
    GENX_ (__NR_ftruncate64,            sys_ftruncate64),             // 212
    PLAXY (__NR_stat64,                 sys_stat64),                  // 213
    PLAXY (__NR_lstat64,                sys_lstat64),                 // 214