Home
last modified time | relevance | path

Searched refs:pVfs (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
Dos.c127 sqlite3_vfs *pVfs, in sqlite3OsOpen() argument
139 rc = pVfs->xOpen(pVfs, zPath, pFile, flags & 0x87f3f, pFlagsOut); in sqlite3OsOpen()
143 int sqlite3OsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in sqlite3OsDelete() argument
144 return pVfs->xDelete(pVfs, zPath, dirSync); in sqlite3OsDelete()
147 sqlite3_vfs *pVfs, in sqlite3OsAccess() argument
153 return pVfs->xAccess(pVfs, zPath, flags, pResOut); in sqlite3OsAccess()
156 sqlite3_vfs *pVfs, in sqlite3OsFullPathname() argument
162 return pVfs->xFullPathname(pVfs, zPath, nPathOut, zPathOut); in sqlite3OsFullPathname()
165 void *sqlite3OsDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in sqlite3OsDlOpen() argument
166 return pVfs->xDlOpen(pVfs, zPath); in sqlite3OsDlOpen()
[all …]
Dtest_devsym.c125 sqlite3_vfs *pVfs; member
267 sqlite3_vfs *pVfs, in devsymOpen() argument
276 rc = sqlite3OsOpen(g.pVfs, zName, p->pReal, flags, pOutFlags); in devsymOpen()
288 static int devsymDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in devsymDelete() argument
289 return sqlite3OsDelete(g.pVfs, zPath, dirSync); in devsymDelete()
297 sqlite3_vfs *pVfs, in devsymAccess() argument
302 return sqlite3OsAccess(g.pVfs, zPath, flags, pResOut); in devsymAccess()
311 sqlite3_vfs *pVfs, in devsymFullPathname() argument
316 return sqlite3OsFullPathname(g.pVfs, zPath, nOut, zOut); in devsymFullPathname()
323 static void *devsymDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in devsymDlOpen() argument
[all …]
Dtest_osinst.c116 sqlite3_vfs *pVfs; /* Parent VFS */ member
131 #define REALVFS(p) (((VfslogVfs *)(p))->pVfs)
165 static void (*vfslogDlSym(sqlite3_vfs *pVfs, void *p, const char*zSym))(void);
473 sqlite3_vfs *pVfs, in vfslogOpen() argument
482 VfslogVfs *pLog = (VfslogVfs *)pVfs; in vfslogOpen()
486 p->pVfslog = pVfs; in vfslogOpen()
490 rc = REALVFS(pVfs)->xOpen(REALVFS(pVfs), zName, p->pReal, flags, pOutFlags); in vfslogOpen()
493 vfslog_call(pVfs, OS_OPEN, p->iFileId, t, rc, 0, 0); in vfslogOpen()
494 vfslog_string(pVfs, zName); in vfslogOpen()
503 static int vfslogDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in vfslogDelete() argument
[all …]
Dtest_syscall.c385 sqlite3_vfs *pVfs; in test_syscall_install() local
397 pVfs = sqlite3_vfs_find(0); in test_syscall_install()
406 aSyscall[iCall].xOrig = pVfs->xGetSystemCall(pVfs, aSyscall[iCall].zName); in test_syscall_install()
407 pVfs->xSetSystemCall(pVfs, aSyscall[iCall].zName, aSyscall[iCall].xTest); in test_syscall_install()
421 sqlite3_vfs *pVfs; in test_syscall_uninstall() local
429 pVfs = sqlite3_vfs_find(0); in test_syscall_uninstall()
432 pVfs->xSetSystemCall(pVfs, aSyscall[i].zName, 0); in test_syscall_uninstall()
445 sqlite3_vfs *pVfs; in test_syscall_reset() local
454 pVfs = sqlite3_vfs_find(0); in test_syscall_reset()
456 rc = pVfs->xSetSystemCall(pVfs, 0, 0); in test_syscall_reset()
[all …]
Dtest_journal.c205 sqlite3_vfs *pVfs; /* Parent VFS */ member
690 sqlite3_vfs *pVfs, in jtOpen() argument
701 rc = sqlite3OsOpen(g.pVfs, zName, p->pReal, flags, pOutFlags); in jtOpen()
726 static int jtDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in jtDelete() argument
736 return sqlite3OsDelete(g.pVfs, zPath, dirSync); in jtDelete()
744 sqlite3_vfs *pVfs, in jtAccess() argument
749 return sqlite3OsAccess(g.pVfs, zPath, flags, pResOut); in jtAccess()
758 sqlite3_vfs *pVfs, in jtFullPathname() argument
763 return sqlite3OsFullPathname(g.pVfs, zPath, nOut, zOut); in jtFullPathname()
769 static void *jtDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in jtDlOpen() argument
[all …]
Dtest_vfs.c51 sqlite3_vfs *pVfs; /* The VFS */ member
82 sqlite3_vfs *pVfs; /* The testvfs registered with SQLite */ member
324 Testvfs *p = (Testvfs *)pFd->pVfs->pAppData; in tvfsClose()
369 Testvfs *p = (Testvfs *)pFd->pVfs->pAppData; in tvfsWrite()
397 Testvfs *p = (Testvfs *)pFd->pVfs->pAppData; in tvfsTruncate()
418 Testvfs *p = (Testvfs *)pFd->pVfs->pAppData; in tvfsSync()
501 Testvfs *p = (Testvfs *)pFd->pVfs->pAppData; in tvfsSectorSize()
513 Testvfs *p = (Testvfs *)pFd->pVfs->pAppData; in tvfsDeviceCharacteristics()
524 sqlite3_vfs *pVfs, in tvfsOpen() argument
534 Testvfs *p = (Testvfs *)pVfs->pAppData; in tvfsOpen()
[all …]
Dtest6.c588 sqlite3_vfs *pVfs = (sqlite3_vfs *)pCfVfs->pAppData; in cfOpen() local
594 rc = sqlite3OsOpen(pVfs, zName, pReal, flags, pOutFlags); in cfOpen()
637 sqlite3_vfs *pVfs = (sqlite3_vfs *)pCfVfs->pAppData; in cfDelete() local
638 return pVfs->xDelete(pVfs, zPath, dirSync); in cfDelete()
646 sqlite3_vfs *pVfs = (sqlite3_vfs *)pCfVfs->pAppData; in cfAccess() local
647 return pVfs->xAccess(pVfs, zPath, flags, pResOut); in cfAccess()
655 sqlite3_vfs *pVfs = (sqlite3_vfs *)pCfVfs->pAppData; in cfFullPathname() local
656 return pVfs->xFullPathname(pVfs, zPath, nPathOut, zPathOut); in cfFullPathname()
659 sqlite3_vfs *pVfs = (sqlite3_vfs *)pCfVfs->pAppData; in cfDlOpen() local
660 return pVfs->xDlOpen(pVfs, zPath); in cfDlOpen()
[all …]
Dtest_vfstrace.c483 sqlite3_vfs *pVfs, in vfstraceOpen() argument
491 vfstrace_info *pInfo = (vfstrace_info*)pVfs->pAppData; in vfstraceOpen()
538 static int vfstraceDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in vfstraceDelete() argument
539 vfstrace_info *pInfo = (vfstrace_info*)pVfs->pAppData; in vfstraceDelete()
554 sqlite3_vfs *pVfs, in vfstraceAccess() argument
559 vfstrace_info *pInfo = (vfstrace_info*)pVfs->pAppData; in vfstraceAccess()
576 sqlite3_vfs *pVfs, in vfstraceFullPathname() argument
581 vfstrace_info *pInfo = (vfstrace_info*)pVfs->pAppData; in vfstraceFullPathname()
595 static void *vfstraceDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in vfstraceDlOpen() argument
596 vfstrace_info *pInfo = (vfstrace_info*)pVfs->pAppData; in vfstraceDlOpen()
[all …]
Djournal.c41 sqlite3_vfs *pVfs; /* The "real" underlying VFS */ member
55 rc = sqlite3OsOpen(p->pVfs, p->zJournal, pReal, p->flags, 0); in createFile()
196 sqlite3_vfs *pVfs, /* The VFS to use for actual file I/O */ in sqlite3JournalOpen() argument
203 memset(p, 0, sqlite3JournalSize(pVfs)); in sqlite3JournalOpen()
210 return sqlite3OsOpen(pVfs, zName, pJfd, flags, 0); in sqlite3JournalOpen()
216 p->pVfs = pVfs; in sqlite3JournalOpen()
235 int sqlite3JournalSize(sqlite3_vfs *pVfs){ in sqlite3JournalSize() argument
236 return (pVfs->szOsFile+sizeof(JournalFile)); in sqlite3JournalSize()
Dtest_onefile.c584 sqlite3_vfs *pVfs, in fsOpen() argument
590 fs_vfs_t *pFsVfs = (fs_vfs_t *)pVfs; in fsOpen()
685 static int fsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in fsDelete() argument
687 fs_vfs_t *pFsVfs = (fs_vfs_t *)pVfs; in fsDelete()
712 sqlite3_vfs *pVfs, in fsAccess() argument
717 fs_vfs_t *pFsVfs = (fs_vfs_t *)pVfs; in fsAccess()
723 sqlite3_vfs *pParent = ((fs_vfs_t *)pVfs)->pParent; in fsAccess()
746 sqlite3_vfs *pVfs, /* Pointer to vfs object */ in fsFullPathname() argument
751 sqlite3_vfs *pParent = ((fs_vfs_t *)pVfs)->pParent; in fsFullPathname()
758 static void *fsDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in fsDlOpen() argument
[all …]
Dtest_demovfs.c392 sqlite3_vfs *pVfs, /* VFS */ in demoOpen() argument
454 static int demoDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in demoDelete() argument
498 sqlite3_vfs *pVfs, in demoAccess() argument
531 sqlite3_vfs *pVfs, /* VFS */ in demoFullPathname() argument
562 static void *demoDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in demoDlOpen() argument
565 static void demoDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in demoDlError() argument
569 static void (*demoDlSym(sqlite3_vfs *pVfs, void *pH, const char *z))(void){ in demoDlSym() argument
572 static void demoDlClose(sqlite3_vfs *pVfs, void *pHandle){ in demoDlClose() argument
580 static int demoRandomness(sqlite3_vfs *pVfs, int nByte, char *zByte){ in demoRandomness() argument
588 static int demoSleep(sqlite3_vfs *pVfs, int nMicro){ in demoSleep() argument
[all …]
Dos_win.c103 sqlite3_vfs *pVfs; /* The VFS used to open this file */ member
125 sqlite3_vfs *pVfs,
1391 static void winShmPurge(sqlite3_vfs *pVfs, int deleteFlag){ in winShmPurge() argument
1418 winDelete(pVfs, p->zFilename, 0); in winShmPurge()
1487 rc = winOpen(pDbFd->pVfs, in winOpenSharedMemory()
1538 winShmPurge(pDbFd->pVfs, 0); /* This call frees pShmNode if required */ in winOpenSharedMemory()
1580 winShmPurge(pDbFd->pVfs, deleteFlag); in winShmUnmap()
2041 sqlite3_vfs *pVfs, /* Not used */ in winOpen() argument
2112 UNUSED_PARAMETER(pVfs); in winOpen()
2210 return winOpen(pVfs, zName, id, in winOpen()
[all …]
Dloadext.c395 sqlite3_vfs *pVfs = db->pVfs; in sqlite3LoadExtension() local
421 handle = sqlite3OsDlOpen(pVfs, zFile); in sqlite3LoadExtension()
428 sqlite3OsDlError(pVfs, nMsg-1, zErrmsg); in sqlite3LoadExtension()
434 sqlite3OsDlSym(pVfs, handle, zProc); in sqlite3LoadExtension()
441 sqlite3OsDlError(pVfs, nMsg-1, zErrmsg); in sqlite3LoadExtension()
443 sqlite3OsDlClose(pVfs, handle); in sqlite3LoadExtension()
451 sqlite3OsDlClose(pVfs, handle); in sqlite3LoadExtension()
491 sqlite3OsDlClose(db->pVfs, db->aExtension[i]); in sqlite3CloseExtensions()
Dos_os2.c1438 sqlite3_vfs *pVfs, /* Pointer to vfs object */ argument
1460 sqlite3_vfs *pVfs, /* Not used */ argument
1490 UNUSED_PARAMETER(pVfs);
1580 return os2Open( pVfs, zName, id,
1592 os2FullPathname( pVfs, zUtf8Name, sizeof( zTmpname ), zTmpname );
1607 sqlite3_vfs *pVfs, /* Not used on os2 */ argument
1627 sqlite3_vfs *pVfs, /* Not used on os2 */ argument
1636 UNUSED_PARAMETER(pVfs);
1681 static void *os2DlOpen(sqlite3_vfs *pVfs, const char *zFilename){ argument
1693 static void os2DlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){ argument
[all …]
Dpager.c611 sqlite3_vfs *pVfs; /* OS functions to use for IO */ member
1951 rc = sqlite3OsDelete(pPager->pVfs, pPager->zJournal, 0); in pager_end_transaction()
2372 sqlite3_vfs *pVfs = pPager->pVfs; in pager_delmaster() local
2385 pMaster = (sqlite3_file *)sqlite3MallocZero(pVfs->szOsFile * 2); in pager_delmaster()
2386 pJournal = (sqlite3_file *)(((u8 *)pMaster) + pVfs->szOsFile); in pager_delmaster()
2391 rc = sqlite3OsOpen(pVfs, zMaster, pMaster, flags, 0); in pager_delmaster()
2402 nMasterPtr = pVfs->mxPathname+1; in pager_delmaster()
2416 rc = sqlite3OsAccess(pVfs, zJournal, SQLITE_ACCESS_EXISTS, &exists); in pager_delmaster()
2427 rc = sqlite3OsOpen(pVfs, zJournal, pJournal, flags, 0); in pager_delmaster()
2448 rc = sqlite3OsDelete(pVfs, zMaster, 0); in pager_delmaster()
[all …]
Dtest2.c535 sqlite3_vfs *pVfs; in fake_big_file() local
547 pVfs = sqlite3_vfs_find(0); in fake_big_file()
548 rc = sqlite3OsOpenMalloc(pVfs, argv[2], &fd, in fake_big_file()
Dwal.c411 sqlite3_vfs *pVfs; /* The VFS used to create pDbFd */ member
1233 sqlite3_vfs *pVfs, /* vfs module to open wal and wal-index */ in sqlite3WalOpen() argument
1260 pRet = (Wal*)sqlite3MallocZero(sizeof(Wal) + pVfs->szOsFile); in sqlite3WalOpen()
1265 pRet->pVfs = pVfs; in sqlite3WalOpen()
1274 rc = sqlite3OsOpen(pVfs, zWalName, pRet->pWalFd, flags, &flags); in sqlite3WalOpen()
1800 sqlite3OsDelete(pWal->pVfs, pWal->zWalName, 0); in sqlite3WalClose()
2027 sqlite3OsSleep(pWal->pVfs, nDelay); in walTryBeginRead()
Dmain.c911 sqlite3OsSleep(db->pVfs, delay*1000); in sqliteDefaultBusyCallback()
919 sqlite3OsSleep(db->pVfs, 1000000); in sqliteDefaultBusyCallback()
1906 db->pVfs = sqlite3_vfs_find(zVfs); in openDatabase()
1907 if( !db->pVfs ){ in openDatabase()
2388 sqlite3_vfs *pVfs; in sqlite3_sleep() local
2390 pVfs = sqlite3_vfs_find(0); in sqlite3_sleep()
2391 if( pVfs==0 ) return 0; in sqlite3_sleep()
2396 rc = (sqlite3OsSleep(pVfs, 1000*ms)/1000); in sqlite3_sleep()
/external/chromium_org/third_party/sqlite/src/ext/async/
Dsqlite3async.c1037 sqlite3_vfs *pVfs = (sqlite3_vfs *)pAsyncVfs->pAppData; in asyncOpen() local
1054 2 * pVfs->szOsFile + /* AsyncFileData.pBaseRead and pBaseWrite */ in asyncOpen()
1065 z += pVfs->szOsFile; in asyncOpen()
1071 z += pVfs->szOsFile; in asyncOpen()
1079 rc = pVfs->xOpen(pVfs, pData->zName, pData->pBaseRead, flags, &flagsout); in asyncOpen()
1084 rc = pVfs->xOpen(pVfs, pData->zName, pData->pBaseWrite, flags, 0); in asyncOpen()
1096 int nByte = pVfs->szOsFile + sizeof(AsyncLock) + pData->nName + 1; in asyncOpen()
1102 rc = pVfs->xOpen(pVfs, pData->zName, pLock->pFile, flags, 0); in asyncOpen()
1110 pLock->zFile = &((char *)(&pLock[1]))[pVfs->szOsFile]; in asyncOpen()
1191 sqlite3_vfs *pVfs = (sqlite3_vfs *)pAsyncVfs->pAppData; in asyncAccess() local
[all …]
/external/chromium_org/third_party/sqlite/src/tool/
Dspeedtest8.c114 sqlite3_vfs *pVfs = 0; in main() local
121 pVfs = sqlite3_instvfs_binarylog("oslog", 0, argv[2]); in main()
122 sqlite3_vfs_register(pVfs, 1); in main()
253 if( pVfs ){ in main()
254 sqlite3_instvfs_destroy(pVfs); in main()
Dspeedtest8inst1.c82 sqlite3_vfs *pVfs = sqlite3_vfs_find(0); in readScriptFile() local
89 p = (sqlite3_file *)malloc(pVfs->szOsFile); in readScriptFile()
90 rc = pVfs->xOpen(pVfs, zFile, p, flags, &flags); in readScriptFile()
/external/chromium_org/third_party/sqlite/
Dmac_time_machine.patch50 rc = sqlite3OsOpen(pVfs, pPager->zJournal, pPager->jfd, flags, 0);
58 + && strncmp(pVfs->zName, "unix", 4)==0
59 + && ( pVfs->zName[4]=='-' || pVfs->zName[4]=='\0' ) ){
Dmemcmp.patch70 - if( memcmp(pVfs->zName,"unix-excl",10)==0 ){
71 + if( strcmp(pVfs->zName,"unix-excl")==0 ){
Dsystem-sqlite.patch188 sqlite3_vfs *pVfs, /* Pointer to vfs object */
201 if( memcmp(pVfs->zName,"unix-excl",10)==0 ){
343 - rc = fillInUnixFile(pVfs, fd, dirfd, pFile, zPath, noLock,
344 + rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock,
352 - rc = fillInUnixFile(pVfs, fd, dirfd, pFile, zPath, noLock,
353 + rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock,
586 sqlite3_vfs *pVfs, /* Pointer to vfs object */
599 if( memcmp(pVfs->zName,"unix-excl",10)==0 ){
741 - rc = fillInUnixFile(pVfs, fd, dirfd, pFile, zPath, noLock,
742 + rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock,
[all …]
Dwebdb.patch25 sqlite3_vfs *pVfs, /* Pointer to vfs object */
140 rc = fillInUnixFile(pVfs, fd, dirfd, pFile, zPath, noLock, isDelete);

12