off_t cUnbufferedFile::Seek(off_t Offset, int Whence) {
- if (fd >= 0)
return lseek(fd, Offset, Whence);
- return -1;
- if (Whence == SEEK_SET && Offset == curpos)
return curpos;
- curpos = lseek(fd, Offset, Whence);
- return curpos;
}
ups, missed this previously -- ignore my comment wrt to seeks... A function call i can live with :)