int sqliteOsTruncate(OsFile *id, off_t nByte){
int sqliteOsTruncate(OsFile *id, OFF_T nByte){
int sqliteOsTruncate(OsFile *id, off_t nByte){  SimulateIOError(SQLITE_IOERR);#if OS_UNIX  return ftruncate(id->fd, nByte)==0 ? SQLITE_OK : SQLITE_IOERR;#endif#if OS_WIN  {    LONG upperBits = nByte>>32;    SetFilePointer(id->h, nByte, &upperBits, FILE_BEGIN);    SetEndOfFile(id->h);  }  return SQLITE_OK;#endif#if OS_MAC# ifdef _LARGE_FILE  if( FSSetForkSize(id->refNum, fsFromStart, nByte) != noErr){# else  if( SetEOF(id->refNum, nByte) != noErr ){# endif    return SQLITE_IOERR;  }else{    return SQLITE_OK;  }#endif}