From: Julian Seward Date: Tue, 26 Dec 2006 02:54:46 +0000 (+0000) Subject: Merge r6084 (fix for #134727: valgrind exits with "Value too large X-Git-Tag: svn/VALGRIND_3_2_2~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3f833c76ebbb75280fe504d7149012c5241978d;p=thirdparty%2Fvalgrind.git Merge r6084 (fix for #134727: valgrind exits with "Value too large for defined data type") git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_2_BRANCH@6421 --- diff --git a/coregrind/m_libcfile.c b/coregrind/m_libcfile.c index f84a1c24c0..4afe9cfd51 100644 --- a/coregrind/m_libcfile.c +++ b/coregrind/m_libcfile.c @@ -234,10 +234,14 @@ Int VG_(access) ( HChar* path, Bool irusr, Bool iwusr, Bool ixusr ) /* returns: 0 = success, non-0 is failure */ Int VG_(check_executable)(HChar* f) { +#ifdef __NR_stat64 + struct vki_stat64 st; + SysRes res = VG_(do_syscall2)(__NR_stat64, (UWord)f, (UWord)&st); +#else struct vki_stat st; - SysRes res; + SysRes res = VG_(do_syscall2)(__NR_stat, (UWord)f, (UWord)&st); +#endif - res = VG_(stat)(f, &st); if (res.isError) { return res.val; }