]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add wrapper for lseek().
authorJulian Seward <jseward@acm.org>
Sat, 13 Apr 2002 04:18:32 +0000 (04:18 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 13 Apr 2002 04:18:32 +0000 (04:18 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@61

coregrind/arch/x86-linux/vg_libpthread.c
coregrind/vg_libpthread.c
vg_libpthread.c

index 2f7b5b346439aa403c94f0b7475aa9512443ff84..1d776d026518ce291e69c602e500bdc2c8165709 100644 (file)
@@ -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? */
 
index 2f7b5b346439aa403c94f0b7475aa9512443ff84..1d776d026518ce291e69c602e500bdc2c8165709 100644 (file)
@@ -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? */
 
index 2f7b5b346439aa403c94f0b7475aa9512443ff84..1d776d026518ce291e69c602e500bdc2c8165709 100644 (file)
@@ -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? */