OFF_T Seek(fd_t fd, OFF_T lba) { OFF_T return_lba; #ifdef WINDOWS return_lba=(OFF_T) FileSeek64(fd, lba, FILE_BEGIN); #else return_lba=(OFF_T) lseek64(fd,lba,SEEK_SET); #endif return(return_lba); }
OFF_T SeekEnd(fd_t fd) { OFF_T return_lba; #ifdef WINDOWS return_lba=(OFF_T) FileSeek64(fd, 0, FILE_END); #else return_lba=(OFF_T) lseek64(fd, 0, SEEK_END); #endif return(return_lba); }
OFF_T SeekEnd(fd_t fd) { OFF_T return_lba; #ifdef WINDOWS return_lba = (OFF_T) FileSeek64(fd, 0, FILE_END); #elif defined(AIX) || defined(__linux__) return_lba = (OFF_T) lseek64(fd, 0, SEEK_END); #elif defined(__FreeBSD__) return_lba = lseek(fd, 0, SEEK_END); #endif return (return_lba); }
OFF_T Seek(fd_t fd, OFF_T lba) { OFF_T return_lba; #ifdef WINDOWS return_lba = (OFF_T) FileSeek64(fd, lba, FILE_BEGIN); #elif defined(AIX) || defined(__linux__) return_lba = (OFF_T) lseek64(fd, lba, SEEK_SET); #elif defined(__FreeBSD__) return_lba = lseek(fd, lba, SEEK_SET); #endif return (return_lba); }