#include "dietfeatures.h" #ifdef WANT_LARGEFILE_BACKCOMPAT #include #ifndef __NO_STAT64 #include #include loff_t lseek64(int fildes, loff_t offset, int whence) { loff_t tmp; if (llseek(fildes,offset>>32,offset&0xffffffff,&tmp,whence)) { #ifdef WANT_THREAD_SAFE if (*__errno_location()!=ENOSYS) return -1; #else if (errno!=ENOSYS) return -1; #endif return (loff_t)lseek(fildes,(off_t)offset,whence); } return tmp; } #endif #endif