Lines Matching refs:pVfs
13335 sqlite3_vfs *pVfs, /* VFS to use with this b-tree */
15212 sqlite3_vfs *pVfs; /* OS Interface */ member
21013 sqlite3_vfs *pVfs, in sqlite3OsOpen() argument
21025 rc = pVfs->xOpen(pVfs, zPath, pFile, flags & 0x87f7f, pFlagsOut); in sqlite3OsOpen()
21029 SQLITE_PRIVATE int sqlite3OsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in sqlite3OsDelete() argument
21032 return pVfs->xDelete(pVfs, zPath, dirSync); in sqlite3OsDelete()
21035 sqlite3_vfs *pVfs, in sqlite3OsAccess() argument
21041 return pVfs->xAccess(pVfs, zPath, flags, pResOut); in sqlite3OsAccess()
21044 sqlite3_vfs *pVfs, in sqlite3OsFullPathname() argument
21051 return pVfs->xFullPathname(pVfs, zPath, nPathOut, zPathOut); in sqlite3OsFullPathname()
21054 SQLITE_PRIVATE void *sqlite3OsDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in sqlite3OsDlOpen() argument
21055 return pVfs->xDlOpen(pVfs, zPath); in sqlite3OsDlOpen()
21057 SQLITE_PRIVATE void sqlite3OsDlError(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ in sqlite3OsDlError() argument
21058 pVfs->xDlError(pVfs, nByte, zBufOut); in sqlite3OsDlError()
21060 SQLITE_PRIVATE void (*sqlite3OsDlSym(sqlite3_vfs *pVfs, void *pHdle, const char *zSym))(void){ in sqlite3OsDlSym() argument
21061 return pVfs->xDlSym(pVfs, pHdle, zSym); in sqlite3OsDlSym()
21063 SQLITE_PRIVATE void sqlite3OsDlClose(sqlite3_vfs *pVfs, void *pHandle){ in sqlite3OsDlClose() argument
21064 pVfs->xDlClose(pVfs, pHandle); in sqlite3OsDlClose()
21067 SQLITE_PRIVATE int sqlite3OsRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ in sqlite3OsRandomness() argument
21068 return pVfs->xRandomness(pVfs, nByte, zBufOut); in sqlite3OsRandomness()
21070 SQLITE_PRIVATE int sqlite3OsSleep(sqlite3_vfs *pVfs, int nMicro){ in sqlite3OsSleep() argument
21071 return pVfs->xSleep(pVfs, nMicro); in sqlite3OsSleep()
21073 SQLITE_PRIVATE int sqlite3OsGetLastError(sqlite3_vfs *pVfs){ in sqlite3OsGetLastError() argument
21074 return pVfs->xGetLastError ? pVfs->xGetLastError(pVfs, 0, 0) : 0; in sqlite3OsGetLastError()
21076 SQLITE_PRIVATE int sqlite3OsCurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *pTimeOut){ in sqlite3OsCurrentTimeInt64() argument
21084 if( pVfs->iVersion>=2 && pVfs->xCurrentTimeInt64 ){ in sqlite3OsCurrentTimeInt64()
21085 rc = pVfs->xCurrentTimeInt64(pVfs, pTimeOut); in sqlite3OsCurrentTimeInt64()
21088 rc = pVfs->xCurrentTime(pVfs, &r); in sqlite3OsCurrentTimeInt64()
21095 sqlite3_vfs *pVfs, in sqlite3OsOpenMalloc() argument
21103 pFile = (sqlite3_file *)sqlite3MallocZero(pVfs->szOsFile); in sqlite3OsOpenMalloc()
21105 rc = sqlite3OsOpen(pVfs, zFile, pFile, flags, pOutFlags); in sqlite3OsOpenMalloc()
21146 sqlite3_vfs *pVfs = 0; in sqlite3_vfs_find() local
21158 for(pVfs = vfsList; pVfs; pVfs=pVfs->pNext){ in sqlite3_vfs_find()
21160 if( strcmp(zVfs, pVfs->zName)==0 ) break; in sqlite3_vfs_find()
21163 return pVfs; in sqlite3_vfs_find()
21169 static void vfsUnlink(sqlite3_vfs *pVfs){ in vfsUnlink() argument
21171 if( pVfs==0 ){ in vfsUnlink()
21173 }else if( vfsList==pVfs ){ in vfsUnlink()
21174 vfsList = pVfs->pNext; in vfsUnlink()
21177 while( p->pNext && p->pNext!=pVfs ){ in vfsUnlink()
21180 if( p->pNext==pVfs ){ in vfsUnlink()
21181 p->pNext = pVfs->pNext; in vfsUnlink()
21191 SQLITE_API int sqlite3_vfs_register(sqlite3_vfs *pVfs, int makeDflt){ in sqlite3_vfs_register() argument
21198 if( pVfs==0 ) return SQLITE_MISUSE_BKPT; in sqlite3_vfs_register()
21203 vfsUnlink(pVfs); in sqlite3_vfs_register()
21205 pVfs->pNext = vfsList; in sqlite3_vfs_register()
21206 vfsList = pVfs; in sqlite3_vfs_register()
21208 pVfs->pNext = vfsList->pNext; in sqlite3_vfs_register()
21209 vfsList->pNext = pVfs; in sqlite3_vfs_register()
21219 SQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs *pVfs){ in sqlite3_vfs_unregister() argument
21224 vfsUnlink(pVfs); in sqlite3_vfs_unregister()
28621 db->iSysErrno = sqlite3OsGetLastError(db->pVfs);
30752 sqlite3_vfs *pVfs; /* The VFS that created this unixFile */
34592 *(char**)pArg = sqlite3_mprintf("%s", pFile->pVfs->zName);
34596 char *zTFile = sqlite3_malloc64( pFile->pVfs->mxPathname );
34598 unixGetTempname(pFile->pVfs->mxPathname, zTFile);
36093 sqlite3_vfs *pVfs, /* Pointer to vfs object */
36110 pNew->pVfs = pVfs;
36120 if( strcmp(pVfs->zName,"unix-excl")==0 ){
36135 pLockingStyle = (**(finder_type*)pVfs->pAppData)(zFilename, pNew);
36516 sqlite3_vfs *pVfs, /* The VFS for which this is the xOpen method */
36617 rc = unixGetTempname(pVfs->mxPathname, zTmpname);
36735 if( isAutoProxy && (zPath!=NULL) && (!noLock) && pVfs->xOpen ){
36747 rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags);
36767 rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags);
36889 sqlite3_vfs *pVfs, /* Pointer to vfs object */
36903 assert( pVfs->mxPathname==MAX_PATHNAME );
36904 UNUSED_PARAMETER(pVfs);
38948 sqlite3_vfs *pVfs; /* The VFS used to open this file */
41347 winVfsAppData *pAppData = (winVfsAppData*)pFile->pVfs->pAppData;
42193 *(char**)pArg = sqlite3_mprintf("%s", pFile->pVfs->zName);
42231 int rc = winGetTempname(pFile->pVfs, &zTFile);
42467 static void winShmPurge(sqlite3_vfs *pVfs, int deleteFlag){
42496 winDelete(pVfs, p->zFilename, 0);
42606 rc = winOpen(pDbFd->pVfs, pShmNode->zFilename,
42645 winShmPurge(pDbFd->pVfs, 0); /* This call frees pShmNode if required */
42687 winShmPurge(pDbFd->pVfs, deleteFlag);
43353 static int winGetTempname(sqlite3_vfs *pVfs, char **pzBuf){
43372 nMax = pVfs->mxPathname; nBuf = nMax + 2;
43610 sqlite3_vfs *pVfs, /* Not used on win32 */
43620 sqlite3_vfs *pVfs, /* Used to get maximum path length and AppData */
43710 rc = winGetTempname(pVfs, &zTmpname);
43802 rc2 = winAccess(pVfs, zName, SQLITE_ACCESS_READ, &isRO);
43819 rc2 = winAccess(pVfs, zName, SQLITE_ACCESS_READ, &isRO);
43839 rc2 = winAccess(pVfs, zName, SQLITE_ACCESS_READ, &isRO);
43855 return winOpen(pVfs, zName, id,
43878 pAppData = (winVfsAppData*)pVfs->pAppData;
43903 pFile->pVfs = pVfs;
43938 sqlite3_vfs *pVfs, /* Not used on win32 */
43947 UNUSED_PARAMETER(pVfs);
44046 sqlite3_vfs *pVfs, /* Not used on win32 */
44055 UNUSED_PARAMETER(pVfs);
44172 sqlite3_vfs *pVfs, /* Pointer to vfs object */
44193 assert( nFull>=pVfs->mxPathname );
44201 char *zOut = sqlite3MallocZero( pVfs->mxPathname+1 );
44207 CCP_RELATIVE, zRelative, zOut, pVfs->mxPathname+1)<0 ){
44217 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s%c%s",
44223 char *zOut = sqlite3MallocZero( pVfs->mxPathname+1 );
44229 zRelative, zOut, pVfs->mxPathname+1)<0 ){
44239 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s", zUtf8);
44258 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s%c%s",
44261 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s", zRelative);
44280 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s%c%s",
44341 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s", zOut);
44355 static void *winDlOpen(sqlite3_vfs *pVfs, const char *zFilename){
44358 int nFull = pVfs->mxPathname+1;
44365 if( winFullPathname(pVfs, zFilename, nFull, zFull)!=SQLITE_OK ){
44374 UNUSED_PARAMETER(pVfs);
44396 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
44397 UNUSED_PARAMETER(pVfs);
44400 static void (*winDlSym(sqlite3_vfs *pVfs,void *pH,const char *zSym))(void){
44402 UNUSED_PARAMETER(pVfs);
44408 static void winDlClose(sqlite3_vfs *pVfs, void *pHandle){
44409 UNUSED_PARAMETER(pVfs);
44445 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
44447 UNUSED_PARAMETER(pVfs);
44452 UNUSED_PARAMETER(pVfs);
44502 static int winSleep(sqlite3_vfs *pVfs, int microsec){
44504 UNUSED_PARAMETER(pVfs);
44527 static int winCurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *piNow){
44561 UNUSED_PARAMETER(pVfs);
44570 static int winCurrentTime(sqlite3_vfs *pVfs, double *prNow){
44573 rc = winCurrentTimeInt64(pVfs, &i);
44610 static int winGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
44612 UNUSED_PARAMETER(pVfs);
48599 sqlite3_vfs *pVfs; /* OS functions to use for IO */
50052 rc = sqlite3OsDelete(pPager->pVfs, pPager->zJournal, pPager->extraSync);
50515 sqlite3_vfs *pVfs = pPager->pVfs;
50528 pMaster = (sqlite3_file *)sqlite3MallocZero(pVfs->szOsFile * 2);
50529 pJournal = (sqlite3_file *)(((u8 *)pMaster) + pVfs->szOsFile);
50534 rc = sqlite3OsOpen(pVfs, zMaster, pMaster, flags, 0);
50545 nMasterPtr = pVfs->mxPathname+1;
50559 rc = sqlite3OsAccess(pVfs, zJournal, SQLITE_ACCESS_EXISTS, &exists);
50570 rc = sqlite3OsOpen(pVfs, zJournal, pJournal, flags, 0);
50591 rc = sqlite3OsDelete(pVfs, zMaster, 0);
50768 sqlite3_vfs *pVfs = pPager->pVfs;
50801 rc = readMasterJournal(pPager->jfd, zMaster, pPager->pVfs->mxPathname+1);
50803 rc = sqlite3OsAccess(pVfs, zMaster, SQLITE_ACCESS_EXISTS, &res);
50935 rc = readMasterJournal(pPager->jfd, zMaster, pPager->pVfs->mxPathname+1);
51307 pPager->pVfs, pPager->zWal, SQLITE_ACCESS_EXISTS, &isWal
51316 rc = sqlite3OsDelete(pPager->pVfs, pPager->zWal, 0);
51646 rc = sqlite3OsOpen(pPager->pVfs, 0, pFile, vfsFlags, 0);
52439 rc = sqlite3JournalOpen(pPager->pVfs, 0, pPager->sjfd, flags, nStmtSpill);
52650 sqlite3_vfs *pVfs, /* The virtual file system to use */
52675 journalFileSize = ROUND8(sqlite3JournalSize(pVfs));
52698 nPathname = pVfs->mxPathname+1;
52704 rc = sqlite3OsFullPathname(pVfs, zFilename, nPathname, zPathname);
52713 if( rc==SQLITE_OK && nPathname+8>pVfs->mxPathname ){
52743 ROUND8(pVfs->szOsFile) + /* The main db file */
52759 pPager->sjfd = (sqlite3_file*)(pPtr += ROUND8(pVfs->szOsFile));
52781 pPager->pVfs = pVfs;
52788 rc = sqlite3OsOpen(pVfs, pPager->zFilename, pPager->fd, vfsFlags, &fout);
52993 sqlite3_vfs * const pVfs = pPager->pVfs;
53008 rc = sqlite3OsAccess(pVfs, pPager->zJournal, SQLITE_ACCESS_EXISTS, &exists);
53039 sqlite3OsDelete(pVfs, pPager->zJournal, 0);
53052 rc = sqlite3OsOpen(pVfs, pPager->zJournal, pPager->jfd, f, &f);
53185 sqlite3_vfs * const pVfs = pPager->pVfs;
53188 pVfs, pPager->zJournal, SQLITE_ACCESS_EXISTS, &bExists);
53193 rc = sqlite3OsOpen(pVfs, pPager->zJournal, pPager->jfd, f, &fout);
53675 sqlite3_vfs * const pVfs = pPager->pVfs; /* Local cache of vfs pointer */
53713 pVfs, pPager->zJournal, pPager->jfd, flags, nSpill
54904 return pPager->pVfs;
55268 sqlite3OsDelete(pPager->pVfs, pPager->zJournal, 0);
55281 sqlite3OsDelete(pPager->pVfs, pPager->zJournal, 0);
55437 rc = sqlite3WalOpen(pPager->pVfs,
55516 pPager->pVfs, pPager->zWal, SQLITE_ACCESS_EXISTS, &logexists
56041 sqlite3_vfs *pVfs; /* The VFS used to create pDbFd */
56910 sqlite3_vfs *pVfs, /* vfs module to open wal and wal-index */
56942 pRet = (Wal*)sqlite3MallocZero(sizeof(Wal) + pVfs->szOsFile);
56947 pRet->pVfs = pVfs;
56959 rc = sqlite3OsOpen(pVfs, zWalName, pRet->pWalFd, flags, &flags);
57609 sqlite3OsDelete(pWal->pVfs, pWal->zWalName, 0);
58052 sqlite3OsSleep(pWal->pVfs, nDelay);
62662 sqlite3_vfs *pVfs, /* VFS to use for this b-tree */
62691 assert( pVfs!=0 );
62726 int nFullPathname = pVfs->mxPathname+1;
62738 rc = sqlite3OsFullPathname(pVfs, zFilename,
62755 && sqlite3PagerVfs(pBt->pPager)==pVfs ){
62804 rc = sqlite3PagerOpen(pVfs, &pBt->pPager, zFilename,
75307 sqlite3_vfs *pVfs = db->pVfs;
75325 sqlite3OsDelete(pVfs, zMaster, 0);
75339 rc = sqlite3OsAccess(pVfs, zMaster, SQLITE_ACCESS_EXISTS, &res);
75343 rc = sqlite3OsOpenMalloc(pVfs, zMaster, &pMaster,
75371 sqlite3OsDelete(pVfs, zMaster, 0);
75385 sqlite3OsDelete(pVfs, zMaster, 0);
75417 rc = sqlite3OsDelete(pVfs, zMaster, 1);
77773 sqlite3OsCurrentTimeInt64(db->pVfs, &iNow);
78317 sqlite3OsCurrentTimeInt64(db->pVfs, &p->startTime);
78494 rc = sqlite3OsCurrentTimeInt64(p->pOut->db->pVfs, piTime);
83559 rc = sqlite3BtreeOpen(db->pVfs, 0, db, &pCx->pBtx,
88867 sqlite3OsCurrentTimeInt64(pTask->pSorter->db->pVfs, &t);
88881 sqlite3OsCurrentTimeInt64(pTask->pSorter->db->pVfs, &t);
88891 sqlite3OsCurrentTimeInt64(pTask->pSorter->db->pVfs, &t);
89105 rc = sqlite3OsOpenMalloc(db->pVfs, 0, ppFd,
90633 sqlite3_vfs *pVfs; /* The "real" underlying VFS */
90712 rc = sqlite3OsOpen(copy.pVfs, copy.zJournal, pReal, copy.flags, 0);
90904 sqlite3_vfs *pVfs, /* The VFS to use for actual file I/O */
90918 return sqlite3OsOpen(pVfs, zName, pJfd, flags, 0);
90932 p->pVfs = pVfs;
90986 SQLITE_PRIVATE int sqlite3JournalSize(sqlite3_vfs *pVfs){
90987 return MAX(pVfs->szOsFile, (int)sizeof(MemJournal));
100844 sqlite3_vfs *pVfs;
100894 rc = sqlite3ParseUri(db->pVfs->zName, zFile, &flags, &pVfs, &zPath, &zErr);
100901 assert( pVfs );
100903 rc = sqlite3BtreeOpen(pVfs, zPath, db, &pNew->pBt, 0, flags);
105649 rc = sqlite3BtreeOpen(db->pVfs, 0, db, &pBt, 0, flags);
114292 sqlite3_vfs *pVfs = db->pVfs;
114333 handle = sqlite3OsDlOpen(pVfs, zFile);
114339 sqlite3OsAccess(pVfs, zAltFile, SQLITE_ACCESS_EXISTS, &bExists);
114340 if( bExists ) handle = sqlite3OsDlOpen(pVfs, zAltFile);
114350 sqlite3OsDlError(pVfs, nMsg-1, zErrmsg);
114355 xInit = (sqlite3_loadext_entry)sqlite3OsDlSym(pVfs, handle, zEntry);
114373 sqlite3OsDlClose(pVfs, handle);
114387 xInit = (sqlite3_loadext_entry)sqlite3OsDlSym(pVfs, handle, zEntry);
114396 sqlite3OsDlError(pVfs, nMsg-1, zErrmsg);
114399 sqlite3OsDlClose(pVfs, handle);
114411 sqlite3OsDlClose(pVfs, handle);
114451 sqlite3OsDlClose(db->pVfs, db->aExtension[i]);
116200 rc = sqlite3OsAccess(db->pVfs, zRight, SQLITE_ACCESS_READWRITE, &res);
116244 rc = sqlite3OsAccess(db->pVfs, zRight, SQLITE_ACCESS_READWRITE, &res);
144856 sqlite3OsSleep(db->pVfs, delay*1000);
144864 sqlite3OsSleep(db->pVfs, 1000000);
146334 rc = sqlite3ParseUri(zVfs, zFilename, &flags, &db->pVfs, &zOpen, &zErrMsg);
146344 rc = sqlite3BtreeOpen(db->pVfs, zOpen, db, &db->aDb[0].pBt, 0,
146891 sqlite3_vfs *pVfs;
146893 pVfs = sqlite3_vfs_find(0);
146894 if( pVfs==0 ) return 0;
146899 rc = (sqlite3OsSleep(pVfs, 1000*ms)/1000);
176130 sqlite3_vfs *pVfs = sqlite3_vfs_find(0);
176131 assert( pVfs && p->rc==SQLITE_OK && p->zErrmsg==0 );
176132 pVfs->xDelete(pVfs, zOal, 0);
176152 sqlite3_vfs *pVfs = sqlite3_vfs_find(zRnd);
176153 assert( pVfs );
176154 p->zVfsName = pVfs->zName;
176155 ((rbu_vfs*)pVfs)->pRbu = p;
177282 sqlite3_vfs *pVfs,
177308 rbu_vfs *pRbuVfs = (rbu_vfs*)pVfs;
177393 static int rbuVfsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
177394 sqlite3_vfs *pRealVfs = ((rbu_vfs*)pVfs)->pRealVfs;
177403 sqlite3_vfs *pVfs,
177408 rbu_vfs *pRbuVfs = (rbu_vfs*)pVfs;
177450 sqlite3_vfs *pVfs,
177455 sqlite3_vfs *pRealVfs = ((rbu_vfs*)pVfs)->pRealVfs;
177463 static void *rbuVfsDlOpen(sqlite3_vfs *pVfs, const char *zPath){
177464 sqlite3_vfs *pRealVfs = ((rbu_vfs*)pVfs)->pRealVfs;
177473 static void rbuVfsDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){
177474 sqlite3_vfs *pRealVfs = ((rbu_vfs*)pVfs)->pRealVfs;
177482 sqlite3_vfs *pVfs,
177486 sqlite3_vfs *pRealVfs = ((rbu_vfs*)pVfs)->pRealVfs;
177493 static void rbuVfsDlClose(sqlite3_vfs *pVfs, void *pHandle){
177494 sqlite3_vfs *pRealVfs = ((rbu_vfs*)pVfs)->pRealVfs;
177503 static int rbuVfsRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){
177504 sqlite3_vfs *pRealVfs = ((rbu_vfs*)pVfs)->pRealVfs;
177512 static int rbuVfsSleep(sqlite3_vfs *pVfs, int nMicro){
177513 sqlite3_vfs *pRealVfs = ((rbu_vfs*)pVfs)->pRealVfs;
177520 static int rbuVfsCurrentTime(sqlite3_vfs *pVfs, double *pTimeOut){
177521 sqlite3_vfs *pRealVfs = ((rbu_vfs*)pVfs)->pRealVfs;
177528 static int rbuVfsGetLastError(sqlite3_vfs *pVfs, int a, char *b){
177537 sqlite3_vfs *pVfs = sqlite3_vfs_find(zName);
177538 if( pVfs && pVfs->xOpen==rbuVfsOpen ){
177539 sqlite3_mutex_free(((rbu_vfs*)pVfs)->mutex);
177540 sqlite3_vfs_unregister(pVfs);
177541 sqlite3_free(pVfs);