Lines Matching refs:pFd
18655 static int recoverVfsUnfetch(sqlite3_file *pFd, sqlite3_int64 iOff, void *p);
18679 static int recoverVfsClose(sqlite3_file *pFd){ in recoverVfsClose() argument
18680 assert( pFd->pMethods!=&recover_methods ); in recoverVfsClose()
18681 return pFd->pMethods->xClose(pFd); in recoverVfsClose()
18718 sqlite3_file *pFd, /* File-handle open on input database */ in recoverVfsDetectPagesize() argument
18743 rc = pFd->pMethods->xRead(pFd, aPg, nByte, iBlk*nMax); in recoverVfsDetectPagesize()
18774 static int recoverVfsRead(sqlite3_file *pFd, void *aBuf, int nByte, i64 iOff){ in recoverVfsRead() argument
18776 if( pFd->pMethods==&recover_methods ){ in recoverVfsRead()
18777 pFd->pMethods = recover_g.pMethods; in recoverVfsRead()
18778 rc = pFd->pMethods->xRead(pFd, aBuf, nByte, iOff); in recoverVfsRead()
18832 rc = pFd->pMethods->xFileSize(pFd, &dbFileSize); in recoverVfsRead()
18835 rc = recoverVfsDetectPagesize(p, pFd, nReserve, dbFileSize); in recoverVfsRead()
18878 pFd->pMethods = &recover_methods; in recoverVfsRead()
18880 rc = pFd->pMethods->xRead(pFd, aBuf, nByte, iOff); in recoverVfsRead()
18890 if( pFd->pMethods==&recover_methods ){ \
18891 pFd->pMethods = recover_g.pMethods; \
18893 pFd->pMethods = &recover_methods; \
18906 sqlite3_file *pFd, const void *aBuf, int nByte, i64 iOff in recoverVfsWrite() argument
18909 pFd->pMethods->xWrite(pFd, aBuf, nByte, iOff) in recoverVfsWrite()
18912 static int recoverVfsTruncate(sqlite3_file *pFd, sqlite3_int64 size){ in recoverVfsTruncate() argument
18914 pFd->pMethods->xTruncate(pFd, size) in recoverVfsTruncate()
18917 static int recoverVfsSync(sqlite3_file *pFd, int flags){ in recoverVfsSync() argument
18919 pFd->pMethods->xSync(pFd, flags) in recoverVfsSync()
18922 static int recoverVfsFileSize(sqlite3_file *pFd, sqlite3_int64 *pSize){ in recoverVfsFileSize() argument
18924 pFd->pMethods->xFileSize(pFd, pSize) in recoverVfsFileSize()
18927 static int recoverVfsLock(sqlite3_file *pFd, int eLock){ in recoverVfsLock() argument
18929 pFd->pMethods->xLock(pFd, eLock) in recoverVfsLock()
18932 static int recoverVfsUnlock(sqlite3_file *pFd, int eLock){ in recoverVfsUnlock() argument
18934 pFd->pMethods->xUnlock(pFd, eLock) in recoverVfsUnlock()
18937 static int recoverVfsCheckReservedLock(sqlite3_file *pFd, int *pResOut){ in recoverVfsCheckReservedLock() argument
18939 pFd->pMethods->xCheckReservedLock(pFd, pResOut) in recoverVfsCheckReservedLock()
18942 static int recoverVfsFileControl(sqlite3_file *pFd, int op, void *pArg){ in recoverVfsFileControl() argument
18944 (pFd->pMethods ? pFd->pMethods->xFileControl(pFd, op, pArg) : SQLITE_NOTFOUND) in recoverVfsFileControl()
18947 static int recoverVfsSectorSize(sqlite3_file *pFd){ in recoverVfsSectorSize() argument
18949 pFd->pMethods->xSectorSize(pFd) in recoverVfsSectorSize()
18952 static int recoverVfsDeviceCharacteristics(sqlite3_file *pFd){ in recoverVfsDeviceCharacteristics() argument
18954 pFd->pMethods->xDeviceCharacteristics(pFd) in recoverVfsDeviceCharacteristics()
18958 sqlite3_file *pFd, int iPg, int pgsz, int bExtend, void volatile **pp in recoverVfsShmMap() argument
18961 pFd->pMethods->xShmMap(pFd, iPg, pgsz, bExtend, pp) in recoverVfsShmMap()
18964 static int recoverVfsShmLock(sqlite3_file *pFd, int offset, int n, int flags){ in recoverVfsShmLock() argument
18966 pFd->pMethods->xShmLock(pFd, offset, n, flags) in recoverVfsShmLock()
18969 static void recoverVfsShmBarrier(sqlite3_file *pFd){ in recoverVfsShmBarrier() argument
18970 if( pFd->pMethods==&recover_methods ){ in recoverVfsShmBarrier()
18971 pFd->pMethods = recover_g.pMethods; in recoverVfsShmBarrier()
18972 pFd->pMethods->xShmBarrier(pFd); in recoverVfsShmBarrier()
18973 pFd->pMethods = &recover_methods; in recoverVfsShmBarrier()
18975 pFd->pMethods->xShmBarrier(pFd); in recoverVfsShmBarrier()
18978 static int recoverVfsShmUnmap(sqlite3_file *pFd, int deleteFlag){ in recoverVfsShmUnmap() argument
18980 pFd->pMethods->xShmUnmap(pFd, deleteFlag) in recoverVfsShmUnmap()
18985 sqlite3_file *pFd, in recoverVfsFetch() argument
18990 (void)pFd; in recoverVfsFetch()
18996 static int recoverVfsUnfetch(sqlite3_file *pFd, sqlite3_int64 iOff, void *p){ in recoverVfsUnfetch() argument
18997 (void)pFd; in recoverVfsUnfetch()
19009 sqlite3_file *pFd = 0; in recoverInstallWrapper() local
19012 sqlite3_file_control(p->dbIn, p->zDb, SQLITE_FCNTL_FILE_POINTER, (void*)&pFd); in recoverInstallWrapper()
19013 assert( pFd==0 || pFd->pMethods!=&recover_methods ); in recoverInstallWrapper()
19014 if( pFd && pFd->pMethods ){ in recoverInstallWrapper()
19015 int iVersion = 1 + (pFd->pMethods->iVersion>1 && pFd->pMethods->xShmMap!=0); in recoverInstallWrapper()
19016 recover_g.pMethods = pFd->pMethods; in recoverInstallWrapper()
19019 pFd->pMethods = &recover_methods; in recoverInstallWrapper()
19029 sqlite3_file *pFd = 0; in recoverUninstallWrapper() local
19031 sqlite3_file_control(p->dbIn, p->zDb,SQLITE_FCNTL_FILE_POINTER,(void*)&pFd); in recoverUninstallWrapper()
19032 if( pFd && pFd->pMethods ){ in recoverUninstallWrapper()
19033 pFd->pMethods = recover_g.pMethods; in recoverUninstallWrapper()