Home | History | Annotate | Download | only in dist

Lines Matching refs:pVfs

8219   sqlite3_vfs *pVfs,       /* VFS to use with this b-tree */
9714 sqlite3_vfs *pVfs; /* OS Interface */
12093 #define sqlite3JournalSize(pVfs) ((pVfs)->szOsFile)
13836 if( sqlite3OsCurrentTimeInt64(db->pVfs, &p->iJD)==SQLITE_OK ){
14620 if( sqlite3OsCurrentTimeInt64(db->pVfs, &iT) ) return;
14817 sqlite3_vfs *pVfs,
14829 rc = pVfs->xOpen(pVfs, zPath, pFile, flags & 0x87f7f, pFlagsOut);
14833 SQLITE_PRIVATE int sqlite3OsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
14836 return pVfs->xDelete(pVfs, zPath, dirSync);
14839 sqlite3_vfs *pVfs,
14845 return pVfs->xAccess(pVfs, zPath, flags, pResOut);
14848 sqlite3_vfs *pVfs,
14855 return pVfs->xFullPathname(pVfs, zPath, nPathOut, zPathOut);
14858 SQLITE_PRIVATE void *sqlite3OsDlOpen(sqlite3_vfs *pVfs, const char *zPath){
14859 return pVfs->xDlOpen(pVfs, zPath);
14861 SQLITE_PRIVATE void sqlite3OsDlError(sqlite3_vfs *pVfs, int nByte, char *zBufOut){
14862 pVfs->xDlError(pVfs, nByte, zBufOut);
14864 SQLITE_PRIVATE void (*sqlite3OsDlSym(sqlite3_vfs *pVfs, void *pHdle, const char *zSym))(void){
14865 return pVfs->xDlSym(pVfs, pHdle, zSym);
14867 SQLITE_PRIVATE void sqlite3OsDlClose(sqlite3_vfs *pVfs, void *pHandle){
14868 pVfs->xDlClose(pVfs, pHandle);
14871 SQLITE_PRIVATE int sqlite3OsRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){
14872 return pVfs->xRandomness(pVfs, nByte, zBufOut);
14874 SQLITE_PRIVATE int sqlite3OsSleep(sqlite3_vfs *pVfs, int nMicro){
14875 return pVfs->xSleep(pVfs, nMicro);
14877 SQLITE_PRIVATE int sqlite3OsCurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *pTimeOut){
14885 if( pVfs->iVersion>=2 && pVfs->xCurrentTimeInt64 ){
14886 rc = pVfs->xCurrentTimeInt64(pVfs, pTimeOut);
14889 rc = pVfs->xCurrentTime(pVfs, &r);
14896 sqlite3_vfs *pVfs,
14904 pFile = (sqlite3_file *)sqlite3MallocZero(pVfs->szOsFile);
14906 rc = sqlite3OsOpen(pVfs, zFile, pFile, flags, pOutFlags);
14947 sqlite3_vfs *pVfs = 0;
14959 for(pVfs = vfsList; pVfs; pVfs=pVfs->pNext){
14961 if( strcmp(zVfs, pVfs->zName)==0 ) break;
14964 return pVfs;
14970 static void vfsUnlink(sqlite3_vfs *pVfs){
14972 if( pVfs==0 ){
14974 }else if( vfsList==pVfs ){
14975 vfsList = pVfs->pNext;
14978 while( p->pNext && p->pNext!=pVfs ){
14981 if( p->pNext==pVfs ){
14982 p->pNext = pVfs->pNext;
14992 SQLITE_API int sqlite3_vfs_register(sqlite3_vfs *pVfs, int makeDflt){
15000 vfsUnlink(pVfs);
15002 pVfs->pNext = vfsList;
15003 vfsList = pVfs;
15005 pVfs->pNext = vfsList->pNext;
15006 vfsList->pNext = pVfs;
15016 SQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs *pVfs){
15021 vfsUnlink(pVfs);
24254 ** hold at pVfs->mxPathname characters.
24315 ** pathname into zFull[]. zFull[] will be at least pVfs->mxPathname
24319 sqlite3_vfs *pVfs, /* Pointer to vfs object */
24341 sqlite3_vfs *pVfs, /* Not used */
24371 UNUSED_PARAMETER(pVfs);
24461 return os2Open( pVfs, zName, id,
24473 os2FullPathname( pVfs, zUtf8Name, sizeof( zTmpname ), zTmpname );
24488 sqlite3_vfs *pVfs, /* Not used on os2 */
24508 sqlite3_vfs *pVfs, /* Not used on os2 */
24517 UNUSED_PARAMETER(pVfs);
24562 static void *os2DlOpen(sqlite3_vfs *pVfs, const char *zFilename){
24574 static void os2DlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
24577 static void (*os2DlSym(sqlite3_vfs *pVfs, void *pHandle, const char *zSymbol))(void){
24591 static void os2DlClose(sqlite3_vfs *pVfs, void *pHandle){
24605 static int os2Randomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf ){
24657 static int os2Sleep( sqlite3_vfs *pVfs, int microsec ){
24679 static int os2CurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *piNow){
24712 UNUSED_PARAMETER(pVfs);
24721 static int os2CurrentTime( sqlite3_vfs *pVfs, double *prNow ){
24724 rc = os2CurrentTimeInt64(pVfs, &i);
24752 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
24761 static int os2GetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
25024 sqlite3_vfs *pVfs; /* The VFS that created this unixFile */
28622 *(char**)pArg = sqlite3_mprintf("%s", pFile->pVfs->zName);
29641 sqlite3_vfs *pVfs, /* Pointer to vfs object */
29659 || pVfs->pAppData==(void*)&autolockIoFinder );
29669 pNew->pVfs = pVfs;
29676 if( memcmp(pVfs->zName,"unix-excl",10)==0 ){
29691 pLockingStyle = (**(finder_type*)pVfs->pAppData)(zFilename, pNew);
29852 ** pVfs->mxPathname bytes.
30057 sqlite3_vfs *pVfs, /* The VFS for which this is the xOpen method */
30258 if( isAutoProxy && (zPath!=NULL) && (!noLock) && pVfs->xOpen ){
30283 rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags);
30300 rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags);
30401 sqlite3_vfs *pVfs, /* Pointer to vfs object */
30414 assert( pVfs->mxPathname==MAX_PATHNAME );
30415 UNUSED_PARAMETER(pVfs);
32199 sqlite3_vfs *pVfs; /* The VFS used to open this file */
34545 static void winShmPurge(sqlite3_vfs *pVfs, int deleteFlag){
34573 winDelete(pVfs, p->zFilename, 0);
34644 rc = winOpen(pDbFd->pVfs,
34695 winShmPurge(pDbFd->pVfs, 0); /* This call frees pShmNode if required */
34737 winShmPurge(pDbFd->pVfs, deleteFlag);
35064 ** hold at pVfs->mxPathname characters.
35140 sqlite3_vfs *pVfs, /* Not used */
35213 UNUSED_PARAMETER(pVfs);
35319 return winOpen(pVfs, zName, id,
35338 pFile->pVfs = pVfs;
35378 sqlite3_vfs *pVfs, /* Not used on win32 */
35386 UNUSED_PARAMETER(pVfs);
35426 sqlite3_vfs *pVfs, /* Not used on win32 */
35435 UNUSED_PARAMETER(pVfs);
35499 ** pathname into zOut[]. zOut[] will be at least pVfs->mxPathname
35503 sqlite3_vfs *pVfs, /* Pointer to vfs object */
35520 sqlite3_snprintf(pVfs->mxPathname, zFull, "%s", zRelative);
35579 sqlite3_snprintf(pVfs->mxPathname, zFull, "%s", zOut);
35597 static void *winDlOpen(sqlite3_vfs *pVfs, const char *zFilename){
35600 UNUSED_PARAMETER(pVfs);
35618 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
35619 UNUSED_PARAMETER(pVfs);
35622 static void (*winDlSym(sqlite3_vfs *pVfs, void *pHandle, const char *zSymbol))(void){
35623 UNUSED_PARAMETER(pVfs);
35626 static void winDlClose(sqlite3_vfs *pVfs, void *pHandle){
35627 UNUSED_PARAMETER(pVfs);
35641 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
35643 UNUSED_PARAMETER(pVfs);
35678 static int winSleep(sqlite3_vfs *pVfs, int microsec){
35680 UNUSED_PARAMETER(pVfs);
35703 static int winCurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *piNow){
35736 UNUSED_PARAMETER(pVfs);
35745 static int winCurrentTime(sqlite3_vfs *pVfs, double *prNow){
35748 rc = winCurrentTimeInt64(pVfs, &i);
35776 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
35785 static int winGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
35786 UNUSED_PARAMETER(pVfs);
39065 sqlite3_vfs *pVfs; /* OS functions to use for IO */
40395 rc = sqlite3OsDelete(pPager->pVfs, pPager->zJournal, 0);
40816 sqlite3_vfs *pVfs = pPager->pVfs;
40829 pMaster = (sqlite3_file *)sqlite3MallocZero(pVfs->szOsFile * 2);
40830 pJournal = (sqlite3_file *)(((u8 *)pMaster) + pVfs->szOsFile);
40835 rc = sqlite3OsOpen(pVfs, zMaster, pMaster, flags, 0);
40846 nMasterPtr = pVfs->mxPathname+1;
40860 rc = sqlite3OsAccess(pVfs, zJournal, SQLITE_ACCESS_EXISTS, &exists);
40871 rc = sqlite3OsOpen(pVfs, zJournal, pJournal, flags, 0);
40892 rc = sqlite3OsDelete(pVfs, zMaster, 0);
41061 sqlite3_vfs *pVfs = pPager->pVfs;
41087 ** (pPager->pageSize >= pPager->pVfs->mxPathname+1). Using os_unix.c,
41092 rc = readMasterJournal(pPager->jfd, zMaster, pPager->pVfs->mxPathname+1);
41094 rc = sqlite3OsAccess(pVfs, zMaster, SQLITE_ACCESS_EXISTS, &res);
41221 rc = readMasterJournal(pPager->jfd, zMaster, pPager->pVfs->mxPathname+1);
41589 rc = sqlite3OsDelete(pPager->pVfs, pPager->zWal, 0);
41593 pPager->pVfs, pPager->zWal, SQLITE_ACCESS_EXISTS, &isWal
41877 rc = sqlite3OsOpen(pPager->pVfs, 0, pFile, vfsFlags, 0);
42756 sqlite3_vfs *pVfs, /* The virtual file system to use */
42787 if( sqlite3JournalSize(pVfs)>sqlite3MemJournalSize() ){
42788 journalFileSize = ROUND8(sqlite3JournalSize(pVfs));
42809 nPathname = pVfs->mxPathname+1;
42815 rc = sqlite3OsFullPathname(pVfs, zFilename, nPathname, zPathname);
42824 if( rc==SQLITE_OK && nPathname+8>pVfs->mxPathname ){
42826 ** the database being opened will be more than pVfs->mxPathname
42845 ** Database file handle (pVfs->szOsFile bytes)
42854 ROUND8(pVfs->szOsFile) + /* The main db file */
42870 pPager->sjfd = (sqlite3_file*)(pPtr += ROUND8(pVfs->szOsFile));
42892 pPager->pVfs = pVfs;
42899 rc = sqlite3OsOpen(pVfs, pPager->zFilename, pPager->fd, vfsFlags, &fout);
43068 sqlite3_vfs * const pVfs = pPager->pVfs;
43083 rc = sqlite3OsAccess(pVfs, pPager->zJournal, SQLITE_ACCESS_EXISTS, &exists);
43111 sqlite3OsDelete(pVfs, pPager->zJournal, 0);
43124 rc = sqlite3OsOpen(pVfs, pPager->zJournal, pPager->jfd, f, &f);
43252 sqlite3_vfs * const pVfs = pPager->pVfs;
43255 pVfs, pPager->zJournal, SQLITE_ACCESS_EXISTS, &bExists);
43260 rc = sqlite3OsOpen(pVfs, pPager->zJournal, pPager->jfd, f, &fout);
43611 sqlite3_vfs * const pVfs = pPager->pVfs; /* Local cache of vfs pointer */
43641 pVfs, pPager->zJournal, pPager->jfd, flags, jrnlBufferSize(pPager)
43644 rc = sqlite3OsOpen(pVfs, pPager->zJournal, pPager->jfd, flags, 0);
44744 return pPager->pVfs;
45071 sqlite3OsDelete(pPager->pVfs, pPager->zJournal, 0);
45084 sqlite3OsDelete(pPager->pVfs, pPager->zJournal, 0);
45228 rc = sqlite3WalOpen(pPager->pVfs,
45306 pPager->pVfs, pPager->zWal, SQLITE_ACCESS_EXISTS, &logexists
45772 sqlite3_vfs *pVfs; /* The VFS used to create pDbFd */
46612 sqlite3_vfs *pVfs, /* vfs module to open wal and wal-index */
46640 pRet = (Wal*)sqlite3MallocZero(sizeof(Wal) + pVfs->szOsFile);
46645 pRet->pVfs = pVfs;
46657 rc = sqlite3OsOpen(pVfs, zWalName, pRet->pWalFd, flags, &flags);
47231 sqlite3OsDelete(pWal->pVfs, pWal->zWalName, 0);
47466 sqlite3OsSleep(pWal->pVfs, nDelay);
51092 sqlite3_vfs *pVfs, /* VFS to use for this b-tree */
51120 assert( pVfs!=0 );
51154 int nFullPathname = pVfs->mxPathname+1;
51162 rc = sqlite3OsFullPathname(pVfs, zFilename, nFullPathname, zFullPathname);
51177 && sqlite3PagerVfs(pBt->pPager)==pVfs ){
51226 rc = sqlite3PagerOpen(pVfs, &pBt->pPager, zFilename,
61367 sqlite3_vfs *pVfs = db->pVfs;
61386 sqlite3OsDelete(pVfs, zMaster, 0);
61400 rc = sqlite3OsAccess(pVfs, zMaster, SQLITE_ACCESS_EXISTS, &res);
61404 rc = sqlite3OsOpenMalloc(pVfs, zMaster, &pMaster,
61435 sqlite3OsDelete(pVfs, zMaster, 0);
61450 sqlite3OsDelete(pVfs, zMaster, 0);
61482 rc = sqlite3OsDelete(pVfs, zMaster, 1);
63174 sqlite3OsCurrentTimeInt64(db->pVfs, &p->startTime);
63198 sqlite3OsCurrentTimeInt64(db->pVfs, &iNow);
68136 rc = sqlite3BtreeOpen(db->pVfs, 0, db, &u.ay.pCx->pBt,
72126 return sqlite3OsOpenMalloc(db->pVfs, 0, ppFile,
72596 sqlite3_vfs *pVfs; /* The "real" underlying VFS */
72610 rc = sqlite3OsOpen(p->pVfs, p->zJournal, pReal, p->flags, 0);
72759 sqlite3_vfs *pVfs, /* The VFS to use for actual file I/O */
72766 memset(p, 0, sqlite3JournalSize(pVfs));
72773 return sqlite3OsOpen(pVfs, zName, pJfd, flags, 0);
72779 p->pVfs = pVfs;
72796 ** pVfs to create the underlying on-disk files.
72798 SQLITE_PRIVATE int sqlite3JournalSize(sqlite3_vfs *pVfs){
72799 return (pVfs->szOsFile+sizeof(JournalFile));
80500 sqlite3_vfs *pVfs;
80554 rc = sqlite3ParseUri(db->pVfs->zName, zFile, &flags, &pVfs, &zPath, &zErr);
80561 assert( pVfs );
80563 rc = sqlite3BtreeOpen(pVfs, zPath, db, &aNew->pBt, 0, flags);
84735 rc = sqlite3BtreeOpen(db->pVfs, 0, db, &pBt, 0, flags);
91840 sqlite3_vfs *pVfs = db->pVfs;
91866 handle = sqlite3OsDlOpen(pVfs, zFile);
91873 sqlite3OsDlError(pVfs, nMsg-1, zErrmsg);
91879 sqlite3OsDlSym(pVfs, handle, zProc);
91887 sqlite3OsDlError(pVfs, nMsg-1, zErrmsg);
91889 sqlite3OsDlClose(pVfs, handle);
91897 sqlite3OsDlClose(pVfs, handle);
91937 sqlite3OsDlClose(db->pVfs, db->aExtension[i]);
92884 rc = sqlite3OsAccess(db->pVfs, zRight, SQLITE_ACCESS_READWRITE, &res);
113444 sqlite3OsSleep(db->pVfs, delay*1000);
113452 sqlite3OsSleep(db->pVfs, 1000000);
114687 rc = sqlite3ParseUri(zVfs, zFilename, &flags, &db->pVfs, &zOpen, &zErrMsg);
114696 rc = sqlite3BtreeOpen(db->pVfs, zOpen, db, &db->aDb[0].pBt, 0,
115152 sqlite3_vfs *pVfs;
115154 pVfs = sqlite3_vfs_find(0);
115155 if( pVfs==0 ) return 0;
115160 rc = (sqlite3OsSleep(pVfs, 1000*ms)/1000);