off_t curSize;
OFF_T curSize;
int sqliteOsSeek(OsFile *id, off_t offset){  SEEK(offset/1024 + 1);#if OS_UNIX  lseek(id->fd, offset, SEEK_SET);  return SQLITE_OK;#endif#if OS_WIN  {    LONG upperBits = offset>>32;    LONG lowerBits = offset & 0xffffffff;    DWORD rc;    rc = SetFilePointer(id->h, lowerBits, &upperBits, FILE_BEGIN);    /* TRACE3("SEEK rc=0x%x upper=0x%x\n", rc, upperBits); */  }  return SQLITE_OK;#endif#if OS_MAC  {    off_t curSize;    if( sqliteOsFileSize(id, &curSize) != SQLITE_OK ){      return SQLITE_IOERR;    }    if( offset >= curSize ){      if( sqliteOsTruncate(id, offset+1) != SQLITE_OK ){        return SQLITE_IOERR;      }    }# ifdef _LARGE_FILE    if( FSSetForkPosition(id->refNum, fsFromStart, offset) != noErr ){# else    if( SetFPos(id->refNum, fsFromStart, offset) != noErr ){# endif      return SQLITE_IOERR;    }else{      return SQLITE_OK;    }  }#endif}