1 #include <unistd.h> 2 #include "syscall.h" 3 __lseek(int fd,off_t offset,int whence)4off_t __lseek(int fd, off_t offset, int whence) 5 { 6 #ifdef SYS__llseek 7 off_t result; 8 return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence) ? -1 : result; 9 #else 10 return syscall(SYS_lseek, fd, offset, whence); 11 #endif 12 } 13 14 weak_alias(__lseek, lseek); 15 weak_alias(__lseek, lseek64); 16