Lines Matching refs:pFd

17392 static int recoverVfsUnfetch(sqlite3_file *pFd, sqlite3_int64 iOff, void *p);
17416 static int recoverVfsClose(sqlite3_file *pFd){ in recoverVfsClose() argument
17417 assert( pFd->pMethods!=&recover_methods ); in recoverVfsClose()
17418 return pFd->pMethods->xClose(pFd); in recoverVfsClose()
17455 sqlite3_file *pFd, /* File-handle open on input database */ in recoverVfsDetectPagesize() argument
17480 rc = pFd->pMethods->xRead(pFd, aPg, nByte, iBlk*nMax); in recoverVfsDetectPagesize()
17511 static int recoverVfsRead(sqlite3_file *pFd, void *aBuf, int nByte, i64 iOff){ in recoverVfsRead() argument
17513 if( pFd->pMethods==&recover_methods ){ in recoverVfsRead()
17514 pFd->pMethods = recover_g.pMethods; in recoverVfsRead()
17515 rc = pFd->pMethods->xRead(pFd, aBuf, nByte, iOff); in recoverVfsRead()
17569 rc = pFd->pMethods->xFileSize(pFd, &dbFileSize); in recoverVfsRead()
17572 rc = recoverVfsDetectPagesize(p, pFd, nReserve, dbFileSize); in recoverVfsRead()
17615 pFd->pMethods = &recover_methods; in recoverVfsRead()
17617 rc = pFd->pMethods->xRead(pFd, aBuf, nByte, iOff); in recoverVfsRead()
17627 if( pFd->pMethods==&recover_methods ){ \
17628 pFd->pMethods = recover_g.pMethods; \
17630 pFd->pMethods = &recover_methods; \
17643 sqlite3_file *pFd, const void *aBuf, int nByte, i64 iOff in recoverVfsWrite() argument
17646 pFd->pMethods->xWrite(pFd, aBuf, nByte, iOff) in recoverVfsWrite()
17649 static int recoverVfsTruncate(sqlite3_file *pFd, sqlite3_int64 size){ in recoverVfsTruncate() argument
17651 pFd->pMethods->xTruncate(pFd, size) in recoverVfsTruncate()
17654 static int recoverVfsSync(sqlite3_file *pFd, int flags){ in recoverVfsSync() argument
17656 pFd->pMethods->xSync(pFd, flags) in recoverVfsSync()
17659 static int recoverVfsFileSize(sqlite3_file *pFd, sqlite3_int64 *pSize){ in recoverVfsFileSize() argument
17661 pFd->pMethods->xFileSize(pFd, pSize) in recoverVfsFileSize()
17664 static int recoverVfsLock(sqlite3_file *pFd, int eLock){ in recoverVfsLock() argument
17666 pFd->pMethods->xLock(pFd, eLock) in recoverVfsLock()
17669 static int recoverVfsUnlock(sqlite3_file *pFd, int eLock){ in recoverVfsUnlock() argument
17671 pFd->pMethods->xUnlock(pFd, eLock) in recoverVfsUnlock()
17674 static int recoverVfsCheckReservedLock(sqlite3_file *pFd, int *pResOut){ in recoverVfsCheckReservedLock() argument
17676 pFd->pMethods->xCheckReservedLock(pFd, pResOut) in recoverVfsCheckReservedLock()
17679 static int recoverVfsFileControl(sqlite3_file *pFd, int op, void *pArg){ in recoverVfsFileControl() argument
17681 (pFd->pMethods ? pFd->pMethods->xFileControl(pFd, op, pArg) : SQLITE_NOTFOUND) in recoverVfsFileControl()
17684 static int recoverVfsSectorSize(sqlite3_file *pFd){ in recoverVfsSectorSize() argument
17686 pFd->pMethods->xSectorSize(pFd) in recoverVfsSectorSize()
17689 static int recoverVfsDeviceCharacteristics(sqlite3_file *pFd){ in recoverVfsDeviceCharacteristics() argument
17691 pFd->pMethods->xDeviceCharacteristics(pFd) in recoverVfsDeviceCharacteristics()
17695 sqlite3_file *pFd, int iPg, int pgsz, int bExtend, void volatile **pp in recoverVfsShmMap() argument
17698 pFd->pMethods->xShmMap(pFd, iPg, pgsz, bExtend, pp) in recoverVfsShmMap()
17701 static int recoverVfsShmLock(sqlite3_file *pFd, int offset, int n, int flags){ in recoverVfsShmLock() argument
17703 pFd->pMethods->xShmLock(pFd, offset, n, flags) in recoverVfsShmLock()
17706 static void recoverVfsShmBarrier(sqlite3_file *pFd){ in recoverVfsShmBarrier() argument
17707 if( pFd->pMethods==&recover_methods ){ in recoverVfsShmBarrier()
17708 pFd->pMethods = recover_g.pMethods; in recoverVfsShmBarrier()
17709 pFd->pMethods->xShmBarrier(pFd); in recoverVfsShmBarrier()
17710 pFd->pMethods = &recover_methods; in recoverVfsShmBarrier()
17712 pFd->pMethods->xShmBarrier(pFd); in recoverVfsShmBarrier()
17715 static int recoverVfsShmUnmap(sqlite3_file *pFd, int deleteFlag){ in recoverVfsShmUnmap() argument
17717 pFd->pMethods->xShmUnmap(pFd, deleteFlag) in recoverVfsShmUnmap()
17722 sqlite3_file *pFd, in recoverVfsFetch() argument
17727 (void)pFd; in recoverVfsFetch()
17733 static int recoverVfsUnfetch(sqlite3_file *pFd, sqlite3_int64 iOff, void *p){ in recoverVfsUnfetch() argument
17734 (void)pFd; in recoverVfsUnfetch()
17746 sqlite3_file *pFd = 0; in recoverInstallWrapper() local
17749 sqlite3_file_control(p->dbIn, p->zDb, SQLITE_FCNTL_FILE_POINTER, (void*)&pFd); in recoverInstallWrapper()
17750 assert( pFd==0 || pFd->pMethods!=&recover_methods ); in recoverInstallWrapper()
17751 if( pFd && pFd->pMethods ){ in recoverInstallWrapper()
17752 int iVersion = 1 + (pFd->pMethods->iVersion>1 && pFd->pMethods->xShmMap!=0); in recoverInstallWrapper()
17753 recover_g.pMethods = pFd->pMethods; in recoverInstallWrapper()
17756 pFd->pMethods = &recover_methods; in recoverInstallWrapper()
17766 sqlite3_file *pFd = 0; in recoverUninstallWrapper() local
17768 sqlite3_file_control(p->dbIn, p->zDb,SQLITE_FCNTL_FILE_POINTER,(void*)&pFd); in recoverUninstallWrapper()
17769 if( pFd && pFd->pMethods ){ in recoverUninstallWrapper()
17770 pFd->pMethods = recover_g.pMethods; in recoverUninstallWrapper()