int sqliteOsFileSize(OsFile *id, off_t *pSize){
int sqliteOsFileSize(OsFile *id, OFF_T *pSize){
int sqliteOsFileSize(OsFile *id, off_t *pSize){#if OS_UNIX  struct stat buf;  SimulateIOError(SQLITE_IOERR);  if( fstat(id->fd, &buf)!=0 ){    return SQLITE_IOERR;  }  *pSize = buf.st_size;  return SQLITE_OK;#endif#if OS_WIN  DWORD upperBits, lowerBits;  SimulateIOError(SQLITE_IOERR);  lowerBits = GetFileSize(id->h, &upperBits);  *pSize = (((off_t)upperBits)<<32) + lowerBits;  return SQLITE_OK;#endif#if OS_MAC# ifdef _LARGE_FILE  if( FSGetForkSize(id->refNum, pSize) != noErr){# else  if( GetEOF(id->refNum, pSize) != noErr ){# endif    return SQLITE_IOERR;  }else{    return SQLITE_OK;  }#endif}