From: Julian Seward Date: Sat, 13 Apr 2002 04:18:32 +0000 (+0000) Subject: Add wrapper for lseek(). X-Git-Tag: svn/VALGRIND_1_0_3~385 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acf89323f4784be531c5dc8de70718eb107431dd;p=thirdparty%2Fvalgrind.git Add wrapper for lseek(). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@61 --- diff --git a/coregrind/arch/x86-linux/vg_libpthread.c b/coregrind/arch/x86-linux/vg_libpthread.c index 2f7b5b3464..1d776d0265 100644 --- a/coregrind/arch/x86-linux/vg_libpthread.c +++ b/coregrind/arch/x86-linux/vg_libpthread.c @@ -390,6 +390,15 @@ int fsync(int fd) return __libc_fsync(fd); } +extern +off_t __libc_lseek(int fildes, off_t offset, int whence); +off_t lseek(int fildes, off_t offset, int whence) +{ + return __libc_lseek(fildes, offset, whence); +} + +/*--------------------------------------------------*/ + /* I've no idea what these are, but they get called quite a lot. Anybody know? */ diff --git a/coregrind/vg_libpthread.c b/coregrind/vg_libpthread.c index 2f7b5b3464..1d776d0265 100644 --- a/coregrind/vg_libpthread.c +++ b/coregrind/vg_libpthread.c @@ -390,6 +390,15 @@ int fsync(int fd) return __libc_fsync(fd); } +extern +off_t __libc_lseek(int fildes, off_t offset, int whence); +off_t lseek(int fildes, off_t offset, int whence) +{ + return __libc_lseek(fildes, offset, whence); +} + +/*--------------------------------------------------*/ + /* I've no idea what these are, but they get called quite a lot. Anybody know? */ diff --git a/vg_libpthread.c b/vg_libpthread.c index 2f7b5b3464..1d776d0265 100644 --- a/vg_libpthread.c +++ b/vg_libpthread.c @@ -390,6 +390,15 @@ int fsync(int fd) return __libc_fsync(fd); } +extern +off_t __libc_lseek(int fildes, off_t offset, int whence); +off_t lseek(int fildes, off_t offset, int whence) +{ + return __libc_lseek(fildes, offset, whence); +} + +/*--------------------------------------------------*/ + /* I've no idea what these are, but they get called quite a lot. Anybody know? */