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