Home | History | Annotate | Download | only in dist

Lines Matching refs:pFd

22884 static int recoverVfsUnfetch(sqlite3_file *pFd, sqlite3_int64 iOff, void *p);
22908 static int recoverVfsClose(sqlite3_file *pFd){
22909 assert( pFd->pMethods!=&recover_methods );
22910 return pFd->pMethods->xClose(pFd);
22932 ** Detect the page-size of the database opened by file-handle pFd by
22947 sqlite3_file *pFd, /* File-handle open on input database */
22972 rc = pFd->pMethods->xRead(pFd, aPg, nByte, iBlk*nMax);
23003 static int recoverVfsRead(sqlite3_file *pFd, void *aBuf, int nByte, i64 iOff){
23005 if( pFd->pMethods==&recover_methods ){
23006 pFd->pMethods = recover_g.pMethods;
23007 rc = pFd->pMethods->xRead(pFd, aBuf, nByte, iOff);
23061 rc = pFd->pMethods->xFileSize(pFd, &dbFileSize);
23064 rc = recoverVfsDetectPagesize(p, pFd, nReserve, dbFileSize);
23107 pFd->pMethods = &recover_methods;
23109 rc = pFd->pMethods->xRead(pFd, aBuf, nByte, iOff);
23119 if( pFd->pMethods==&recover_methods ){ \
23120 pFd->pMethods = recover_g.pMethods; \
23122 pFd->pMethods = &recover_methods; \
23135 sqlite3_file *pFd, const void *aBuf, int nByte, i64 iOff
23138 pFd->pMethods->xWrite(pFd, aBuf, nByte, iOff)
23141 static int recoverVfsTruncate(sqlite3_file *pFd, sqlite3_int64 size){
23143 pFd->pMethods->xTruncate(pFd, size)
23146 static int recoverVfsSync(sqlite3_file *pFd, int flags){
23148 pFd->pMethods->xSync(pFd, flags)
23151 static int recoverVfsFileSize(sqlite3_file *pFd, sqlite3_int64 *pSize){
23153 pFd->pMethods->xFileSize(pFd, pSize)
23156 static int recoverVfsLock(sqlite3_file *pFd, int eLock){
23158 pFd->pMethods->xLock(pFd, eLock)
23161 static int recoverVfsUnlock(sqlite3_file *pFd, int eLock){
23163 pFd->pMethods->xUnlock(pFd, eLock)
23166 static int recoverVfsCheckReservedLock(sqlite3_file *pFd, int *pResOut){
23168 pFd->pMethods->xCheckReservedLock(pFd, pResOut)
23171 static int recoverVfsFileControl(sqlite3_file *pFd, int op, void *pArg){
23173 (pFd->pMethods ? pFd->pMethods->xFileControl(pFd, op, pArg) : SQLITE_NOTFOUND)
23176 static int recoverVfsSectorSize(sqlite3_file *pFd){
23178 pFd->pMethods->xSectorSize(pFd)
23181 static int recoverVfsDeviceCharacteristics(sqlite3_file *pFd){
23183 pFd->pMethods->xDeviceCharacteristics(pFd)
23187 sqlite3_file *pFd, int iPg, int pgsz, int bExtend, void volatile **pp
23190 pFd->pMethods->xShmMap(pFd, iPg, pgsz, bExtend, pp)
23193 static int recoverVfsShmLock(sqlite3_file *pFd, int offset, int n, int flags){
23195 pFd->pMethods->xShmLock(pFd, offset, n, flags)
23198 static void recoverVfsShmBarrier(sqlite3_file *pFd){
23199 if( pFd->pMethods==&recover_methods ){
23200 pFd->pMethods = recover_g.pMethods;
23201 pFd->pMethods->xShmBarrier(pFd);
23202 pFd->pMethods = &recover_methods;
23204 pFd->pMethods->xShmBarrier(pFd);
23207 static int recoverVfsShmUnmap(sqlite3_file *pFd, int deleteFlag){
23209 pFd->pMethods->xShmUnmap(pFd, deleteFlag)
23214 sqlite3_file *pFd,
23219 (void)pFd;
23225 static int recoverVfsUnfetch(sqlite3_file *pFd, sqlite3_int64 iOff, void *p){
23226 (void)pFd;
23238 sqlite3_file *pFd = 0;
23241 sqlite3_file_control(p->dbIn, p->zDb, SQLITE_FCNTL_FILE_POINTER, (void*)&pFd);
23242 assert( pFd==0 || pFd->pMethods!=&recover_methods );
23243 if( pFd && pFd->pMethods ){
23244 int iVersion = 1 + (pFd->pMethods->iVersion>1 && pFd->pMethods->xShmMap!=0);
23245 recover_g.pMethods = pFd->pMethods;
23248 pFd->pMethods = &recover_methods;
23258 sqlite3_file *pFd = 0;
23260 sqlite3_file_control(p->dbIn, p->zDb,SQLITE_FCNTL_FILE_POINTER,(void*)&pFd);
23261 if( pFd && pFd->pMethods ){
23262 pFd->pMethods = recover_g.pMethods;