From acf89323f4784be531c5dc8de70718eb107431dd Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Sat, 13 Apr 2002 04:18:32 +0000 Subject: [PATCH] Add wrapper for lseek(). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@61 --- coregrind/arch/x86-linux/vg_libpthread.c | 9 +++++++++ coregrind/vg_libpthread.c | 9 +++++++++ vg_libpthread.c | 9 +++++++++ 3 files changed, 27 insertions(+) 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? */ -- 2.47.2