]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Enable sys_ftruncate64 on ppc32.
authorJulian Seward <jseward@acm.org>
Fri, 7 Oct 2005 13:30:48 +0000 (13:30 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 7 Oct 2005 13:30:48 +0000 (13:30 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4891

coregrind/m_syswrap/syswrap-generic.c
coregrind/m_syswrap/syswrap-ppc32-linux.c
coregrind/vki_unistd-ppc32-linux.h

index 39ce5eab1a8e6d914ec8d3834549465f816a6686..d92b085f6c814333f1b35ce445fcc76bf964c737 100644 (file)
@@ -2857,7 +2857,7 @@ PRE(sys_truncate)
 }
 
 // XXX: this wrapper is only suitable for 32-bit platforms
-#if defined(VGP_x86_linux)
+#if defined(VGP_x86_linux) || defined(VGP_ppc32_linux)
 PRE(sys_ftruncate64)
 {
    *flags |= SfMayBlock;
index 10dcbb27e41f3a787559fdaf982fa1033c99ba02..89118af7e973e4e6ca0fddd5988d75d0fc2f8f3a 100644 (file)
@@ -1890,7 +1890,7 @@ const SyscallTableEntry ML_(syscall_table)[] = {
 //__NR_readahead      // 191 ppc/Linux only?
    PLAX_(__NR_mmap2,             sys_mmap2),             // 192
 //..    GENX_(__NR_truncate64,        sys_truncate64),        // 193
-//..    GENX_(__NR_ftruncate64,       sys_ftruncate64),       // 194
+   GENX_(__NR_ftruncate64,       sys_ftruncate64),       // 194
 //..    
 
    PLAXY(__NR_stat64,            sys_stat64),            // 195
index a7f576912cd8587d22b43918d9af74341ca24440..0ee5a40a3ff4a0940b1f166b90547fbe87b2af0d 100644 (file)
 //#define __NR_readahead               191
 #define __NR_mmap2                     192
 //#define __NR_truncate64              193
-//#define __NR_ftruncate64             194
+#define __NR_ftruncate64               194
 #define __NR_stat64                    195
 #define __NR_lstat64                   196
 #define __NR_fstat64                   197