Lines Matching defs:pVfs

7964   sqlite3_vfs *pVfs,       /* VFS to use with this b-tree */
9448 sqlite3_vfs *pVfs; /* OS Interface */
11807 #define sqlite3JournalSize(pVfs) ((pVfs)->szOsFile)
13503 sqlite3OsCurrentTimeInt64(db->pVfs, &p->iJD);
14281 sqlite3OsCurrentTimeInt64(db->pVfs, &iT);
14461 sqlite3_vfs *pVfs,
14473 rc = pVfs->xOpen(pVfs, zPath, pFile, flags & 0x87f7f, pFlagsOut);
14477 SQLITE_PRIVATE int sqlite3OsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
14478 return pVfs->xDelete(pVfs, zPath, dirSync);
14481 sqlite3_vfs *pVfs,
14487 return pVfs->xAccess(pVfs, zPath, flags, pResOut);
14490 sqlite3_vfs *pVfs,
14496 return pVfs->xFullPathname(pVfs, zPath, nPathOut, zPathOut);
14499 SQLITE_PRIVATE void *sqlite3OsDlOpen(sqlite3_vfs *pVfs, const char *zPath){
14500 return pVfs->xDlOpen(pVfs, zPath);
14502 SQLITE_PRIVATE void sqlite3OsDlError(sqlite3_vfs *pVfs, int nByte, char *zBufOut){
14503 pVfs->xDlError(pVfs, nByte, zBufOut);
14505 SQLITE_PRIVATE void (*sqlite3OsDlSym(sqlite3_vfs *pVfs, void *pHdle, const char *zSym))(void){
14506 return pVfs->xDlSym(pVfs, pHdle, zSym);
14508 SQLITE_PRIVATE void sqlite3OsDlClose(sqlite3_vfs *pVfs, void *pHandle){
14509 pVfs->xDlClose(pVfs, pHandle);
14512 SQLITE_PRIVATE int sqlite3OsRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){
14513 return pVfs->xRandomness(pVfs, nByte, zBufOut);
14515 SQLITE_PRIVATE int sqlite3OsSleep(sqlite3_vfs *pVfs, int nMicro){
14516 return pVfs->xSleep(pVfs, nMicro);
14518 SQLITE_PRIVATE int sqlite3OsCurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *pTimeOut){
14526 if( pVfs->iVersion>=2 && pVfs->xCurrentTimeInt64 ){
14527 rc = pVfs->xCurrentTimeInt64(pVfs, pTimeOut);
14530 rc = pVfs->xCurrentTime(pVfs, &r);
14537 sqlite3_vfs *pVfs,
14545 pFile = (sqlite3_file *)sqlite3MallocZero(pVfs->szOsFile);
14547 rc = sqlite3OsOpen(pVfs, zFile, pFile, flags, pOutFlags);
14588 sqlite3_vfs *pVfs = 0;
14600 for(pVfs = vfsList; pVfs; pVfs=pVfs->pNext){
14602 if( strcmp(zVfs, pVfs->zName)==0 ) break;
14605 return pVfs;
14611 static void vfsUnlink(sqlite3_vfs *pVfs){
14613 if( pVfs==0 ){
14615 }else if( vfsList==pVfs ){
14616 vfsList = pVfs->pNext;
14619 while( p->pNext && p->pNext!=pVfs ){
14622 if( p->pNext==pVfs ){
14623 p->pNext = pVfs->pNext;
14633 SQLITE_API int sqlite3_vfs_register(sqlite3_vfs *pVfs, int makeDflt){
14641 vfsUnlink(pVfs);
14643 pVfs->pNext = vfsList;
14644 vfsList = pVfs;
14646 pVfs->pNext = vfsList->pNext;
14647 vfsList->pNext = pVfs;
14657 SQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs *pVfs){
14662 vfsUnlink(pVfs);
23819 ** hold at pVfs->mxPathname characters.
23880 ** pathname into zFull[]. zFull[] will be at least pVfs->mxPathname
23884 sqlite3_vfs *pVfs, /* Pointer to vfs object */
23906 sqlite3_vfs *pVfs, /* Not used */
23936 UNUSED_PARAMETER(pVfs);
24026 return os2Open( pVfs, zName, id,
24038 os2FullPathname( pVfs, zUtf8Name, sizeof( zTmpname ), zTmpname );
24053 sqlite3_vfs *pVfs, /* Not used on os2 */
24073 sqlite3_vfs *pVfs, /* Not used on os2 */
24082 UNUSED_PARAMETER(pVfs);
24127 static void *os2DlOpen(sqlite3_vfs *pVfs, const char *zFilename){
24139 static void os2DlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
24142 static void (*os2DlSym(sqlite3_vfs *pVfs, void *pHandle, const char *zSymbol))(void){
24156 static void os2DlClose(sqlite3_vfs *pVfs, void *pHandle){
24170 static int os2Randomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf ){
24222 static int os2Sleep( sqlite3_vfs *pVfs, int microsec ){
24244 static int os2CurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *piNow){
24277 UNUSED_PARAMETER(pVfs);
24286 static int os2CurrentTime( sqlite3_vfs *pVfs, double *prNow ){
24289 rc = os2CurrentTimeInt64(pVfs, &i);
24317 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
24326 static int os2GetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
29101 sqlite3_vfs *pVfs, /* Pointer to vfs object */
29127 || pVfs->pAppData==(void*)&autolockIoFinder );
29135 if( memcmp(pVfs->zName,"unix-excl",10)==0 ){
29158 pLockingStyle = (**(finder_type*)pVfs->pAppData)(zFilename, pNew);
29318 ** pVfs->mxPathname bytes.
29510 sqlite3_vfs *pVfs, /* The VFS for which this is the xOpen method */
29680 if( isAutoProxy && (zPath!=NULL) && (!noLock) && pVfs->xOpen ){
29705 rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock,
29723 rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock,
29824 sqlite3_vfs *pVfs, /* Pointer to vfs object */
29837 assert( pVfs->mxPathname==MAX_PATHNAME );
29838 UNUSED_PARAMETER(pVfs);
31663 sqlite3_vfs *pVfs; /* The VFS used to open this file */
31757 sqlite3_vfs *pVfs,
33419 static void winShmPurge(sqlite3_vfs *pVfs, int deleteFlag){
33446 winDelete(pVfs, p->zFilename, 0);
33516 rc = winOpen(pDbFd->pVfs,
33567 winShmPurge(pDbFd->pVfs, 0); /* This call frees pShmNode if required */
33609 winShmPurge(pDbFd->pVfs, deleteFlag);
33933 ** hold at pVfs->mxPathname characters.
34008 sqlite3_vfs *pVfs, /* Not used */
34080 UNUSED_PARAMETER(pVfs);
34179 return winOpen(pVfs, zName, id,
34198 pFile->pVfs = pVfs;
34201 pFile->sectorSize = getSectorSize(pVfs, zUtf8Name);
34236 sqlite3_vfs *pVfs, /* Not used on win32 */
34243 UNUSED_PARAMETER(pVfs);
34282 sqlite3_vfs *pVfs, /* Not used on win32 */
34290 UNUSED_PARAMETER(pVfs);
34354 ** pathname into zOut[]. zOut[] will be at least pVfs->mxPathname
34358 sqlite3_vfs *pVfs, /* Pointer to vfs object */
34375 sqlite3_snprintf(pVfs->mxPathname, zFull, "%s", zRelative);
34431 sqlite3_snprintf(pVfs->mxPathname, zFull, "%s", zOut);
34445 sqlite3_vfs *pVfs,
34451 UNUSED_PARAMETER(pVfs);
34465 rc = winFullPathname(pVfs, zRelative, MAX_PATH, zFullpath);
34519 static void *winDlOpen(sqlite3_vfs *pVfs, const char *zFilename){
34522 UNUSED_PARAMETER(pVfs);
34540 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
34541 UNUSED_PARAMETER(pVfs);
34544 void (*winDlSym(sqlite3_vfs *pVfs, void *pHandle, const char *zSymbol))(void){
34545 UNUSED_PARAMETER(pVfs);
34555 void winDlClose(sqlite3_vfs *pVfs, void *pHandle){
34556 UNUSED_PARAMETER(pVfs);
34570 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
34572 UNUSED_PARAMETER(pVfs);
34607 static int winSleep(sqlite3_vfs *pVfs, int microsec){
34609 UNUSED_PARAMETER(pVfs);
34631 static int winCurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *piNow){
34664 UNUSED_PARAMETER(pVfs);
34673 int winCurrentTime(sqlite3_vfs *pVfs, double *prNow){
34676 rc = winCurrentTimeInt64(pVfs, &i);
34704 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
34713 static int winGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
34714 UNUSED_PARAMETER(pVfs);
38147 sqlite3_vfs *pVfs; /* OS functions to use for IO */
39477 rc = sqlite3OsDelete(pPager->pVfs, pPager->zJournal, 0);
39898 sqlite3_vfs *pVfs = pPager->pVfs;
39911 pMaster = (sqlite3_file *)sqlite3MallocZero(pVfs->szOsFile * 2);
39912 pJournal = (sqlite3_file *)(((u8 *)pMaster) + pVfs->szOsFile);
39917 rc = sqlite3OsOpen(pVfs, zMaster, pMaster, flags, 0);
39928 nMasterPtr = pVfs->mxPathname+1;
39942 rc = sqlite3OsAccess(pVfs, zJournal, SQLITE_ACCESS_EXISTS, &exists);
39953 rc = sqlite3OsOpen(pVfs, zJournal, pJournal, flags, 0);
39974 rc = sqlite3OsDelete(pVfs, zMaster, 0);
40131 sqlite3_vfs *pVfs = pPager->pVfs;
40157 ** (pPager->pageSize >= pPager->pVfs->mxPathname+1). Using os_unix.c,
40162 rc = readMasterJournal(pPager->jfd, zMaster, pPager->pVfs->mxPathname+1);
40164 rc = sqlite3OsAccess(pVfs, zMaster, SQLITE_ACCESS_EXISTS, &res);
40291 rc = readMasterJournal(pPager->jfd, zMaster, pPager->pVfs->mxPathname+1);
40662 rc = sqlite3OsDelete(pPager->pVfs, pPager->zWal, 0);
40666 pPager->pVfs, pPager->zWal, SQLITE_ACCESS_EXISTS, &isWal
40939 rc = sqlite3OsOpen(pPager->pVfs, 0, pFile, vfsFlags, 0);
41818 sqlite3_vfs *pVfs, /* The virtual file system to use */
41850 if( sqlite3JournalSize(pVfs)>sqlite3MemJournalSize() ){
41851 journalFileSize = ROUND8(sqlite3JournalSize(pVfs));
41872 nPathname = pVfs->mxPathname+1;
41878 rc = sqlite3OsFullPathname(pVfs, zFilename, nPathname, zPathname);
41886 if( rc==SQLITE_OK && nPathname+8>pVfs->mxPathname ){
41888 ** the database being opened will be more than pVfs->mxPathname
41907 ** Database file handle (pVfs->szOsFile bytes)
41916 ROUND8(pVfs->szOsFile) + /* The main db file */
41932 pPager->sjfd = (sqlite3_file*)(pPtr += ROUND8(pVfs->szOsFile));
41954 pPager->pVfs = pVfs;
41961 rc = sqlite3OsOpen(pVfs, pPager->zFilename, pPager->fd, vfsFlags, &fout);
42123 sqlite3_vfs * const pVfs = pPager->pVfs;
42138 rc = sqlite3OsAccess(pVfs, pPager->zJournal, SQLITE_ACCESS_EXISTS, &exists);
42166 sqlite3OsDelete(pVfs, pPager->zJournal, 0);
42179 rc = sqlite3OsOpen(pVfs, pPager->zJournal, pPager->jfd, f, &f);
42310 sqlite3_vfs * const pVfs = pPager->pVfs;
42313 pVfs, pPager->zJournal, SQLITE_ACCESS_EXISTS, &bExists);
42318 rc = sqlite3OsOpen(pVfs, pPager->zJournal, pPager->jfd, f, &fout);
42669 sqlite3_vfs * const pVfs = pPager->pVfs; /* Local cache of vfs pointer */
42699 pVfs, pPager->zJournal, pPager->jfd, flags, jrnlBufferSize(pPager)
42702 rc = sqlite3OsOpen(pVfs, pPager->zJournal, pPager->jfd, flags, 0);
43775 return pPager->pVfs;
44102 sqlite3OsDelete(pPager->pVfs, pPager->zJournal, 0);
44115 sqlite3OsDelete(pPager->pVfs, pPager->zJournal, 0);
44250 rc = sqlite3WalOpen(pPager->pVfs,
44328 pPager->pVfs, pPager->zWal, SQLITE_ACCESS_EXISTS, &logexists
44780 sqlite3_vfs *pVfs; /* The VFS used to create pDbFd */
45614 sqlite3_vfs *pVfs, /* vfs module to open wal and wal-index */
45642 pRet = (Wal*)sqlite3MallocZero(sizeof(Wal) + pVfs->szOsFile);
45647 pRet->pVfs = pVfs;
45657 rc = sqlite3OsOpen(pVfs, zWalName, pRet->pWalFd, flags, &flags);
46192 sqlite3OsDelete(pWal->pVfs, pWal->zWalName, 0);
46426 sqlite3OsSleep(pWal->pVfs, nDelay);
49961 sqlite3_vfs *pVfs, /* VFS to use for this b-tree */
49989 assert( pVfs!=0 );
50026 int nFullPathname = pVfs->mxPathname+1;
50034 sqlite3OsFullPathname(pVfs, zFilename, nFullPathname, zFullPathname);
50042 && sqlite3PagerVfs(pBt->pPager)==pVfs ){
50091 rc = sqlite3PagerOpen(pVfs, &pBt->pPager, zFilename,
60124 sqlite3_vfs *pVfs = db->pVfs;
60142 rc = sqlite3OsAccess(pVfs, zMaster, SQLITE_ACCESS_EXISTS, &res);
60146 rc = sqlite3OsOpenMalloc(pVfs, zMaster, &pMaster,
60177 sqlite3OsDelete(pVfs, zMaster, 0);
60192 sqlite3OsDelete(pVfs, zMaster, 0);
60224 rc = sqlite3OsDelete(pVfs, zMaster, 1);
61943 sqlite3OsCurrentTimeInt64(db->pVfs, &p->startTime);
61967 sqlite3OsCurrentTimeInt64(db->pVfs, &iNow);
66758 rc = sqlite3BtreeOpen(db->pVfs, 0, db, &u.ax.pCx->pBt,
70732 return sqlite3OsOpenMalloc(db->pVfs, 0, ppFile,
71202 sqlite3_vfs *pVfs; /* The "real" underlying VFS */
71216 rc = sqlite3OsOpen(p->pVfs, p->zJournal, pReal, p->flags, 0);
71357 sqlite3_vfs *pVfs, /* The VFS to use for actual file I/O */
71364 memset(p, 0, sqlite3JournalSize(pVfs));
71371 return sqlite3OsOpen(pVfs, zName, pJfd, flags, 0);
71377 p->pVfs = pVfs;
71394 ** pVfs to create the underlying on-disk files.
71396 SQLITE_PRIVATE int sqlite3JournalSize(sqlite3_vfs *pVfs){
71397 return (pVfs->szOsFile+sizeof(JournalFile));
78404 sqlite3_vfs *pVfs;
78458 rc = sqlite3ParseUri(db->pVfs->zName, zFile, &flags, &pVfs, &zPath, &zErr);
78465 assert( pVfs );
78467 rc = sqlite3BtreeOpen(pVfs, zPath, db, &aNew->pBt, 0, flags);
82626 rc = sqlite3BtreeOpen(db->pVfs, 0, db, &pBt, 0, flags);
89702 sqlite3_vfs *pVfs = db->pVfs;
89728 handle = sqlite3OsDlOpen(pVfs, zFile);
89735 sqlite3OsDlError(pVfs, nMsg-1, zErrmsg);
89741 sqlite3OsDlSym(pVfs, handle, zProc);
89748 sqlite3OsDlError(pVfs, nMsg-1, zErrmsg);
89750 sqlite3OsDlClose(pVfs, handle);
89758 sqlite3OsDlClose(pVfs, handle);
89798 sqlite3OsDlClose(db->pVfs, db->aExtension[i]);
90708 rc = sqlite3OsAccess(db->pVfs, zRight, SQLITE_ACCESS_READWRITE, &res);
111070 sqlite3OsSleep(db->pVfs, delay*1000);
111078 sqlite3OsSleep(db->pVfs, 1000000);
112321 rc = sqlite3ParseUri(zVfs, zFilename, &flags, &db->pVfs, &zOpen, &zErrMsg);
112330 rc = sqlite3BtreeOpen(db->pVfs, zOpen, db, &db->aDb[0].pBt, 0,
112782 sqlite3_vfs *pVfs;
112784 pVfs = sqlite3_vfs_find(0);
112785 if( pVfs==0 ) return 0;
112790 rc = (sqlite3OsSleep(pVfs, 1000*ms)/1000);