~bkerensa/ubuntu/raring/valgrind/merge-from-deb

« back to all changes in this revision

Viewing changes to coregrind/m_libcfile.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-11-16 17:56:30 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20061116175630-hatkgajb0twz0upw
Tags: upstream-3.2.1
Import upstream version 3.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
 
134
134
Int VG_(fsize) ( Int fd )
135
135
{
 
136
#ifdef __NR_fstat64
 
137
   struct vki_stat64 buf;
 
138
   SysRes res = VG_(do_syscall2)(__NR_fstat64, fd, (UWord)&buf);
 
139
#else
136
140
   struct vki_stat buf;
137
141
   SysRes res = VG_(do_syscall2)(__NR_fstat, fd, (UWord)&buf);
 
142
#endif
138
143
   return res.isError ? (-1) : buf.st_size;
139
144
}
140
145