Lines Matching refs:sqlite3_vfs
1023 ** in the 4th parameter to the [sqlite3_vfs.xOpen] method.
1127 ** [sqlite3_vfs | OS interface layer]. Individual OS interface
1142 ** Every file opened by the [sqlite3_vfs.xOpen] method populates an
1148 ** If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element
1150 ** may be invoked even if the [sqlite3_vfs.xOpen] reported that it failed. The
1151 ** only way to prevent a call to xClose following a failed [sqlite3_vfs.xOpen]
1152 ** is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element
1355 ** An instance of the sqlite3_vfs object defines the interface between
1363 ** of the sqlite3_vfs object changes in the transaction between
1371 ** Registered sqlite3_vfs objects are kept on a linked list formed by
1378 ** The pNext field is the only field in the sqlite3_vfs
1381 ** The application should never modify anything within the sqlite3_vfs
1387 ** [[sqlite3_vfs.xOpen]]
1465 ** [[sqlite3_vfs.xAccess]]
1509 typedef struct sqlite3_vfs sqlite3_vfs;
1511 struct sqlite3_vfs {
1515 sqlite3_vfs *pNext; /* Next registered VFS */
1518 int (*xOpen)(sqlite3_vfs*, const char *zName, sqlite3_file*,
1520 int (*xDelete)(sqlite3_vfs*, const char *zName, int syncDir);
1521 int (*xAccess)(sqlite3_vfs*, const char *zName, int flags, int *pResOut);
1522 int (*xFullPathname)(sqlite3_vfs*, const char *zName, int nOut, char *zOut);
1523 void *(*xDlOpen)(sqlite3_vfs*, const char *zFilename);
1524 void (*xDlError)(sqlite3_vfs*, int nByte, char *zErrMsg);
1525 void (*(*xDlSym)(sqlite3_vfs*,void*, const char *zSymbol))(void);
1526 void (*xDlClose)(sqlite3_vfs*, void*);
1527 int (*xRandomness)(sqlite3_vfs*, int nByte, char *zOut);
1528 int (*xSleep)(sqlite3_vfs*, int microseconds);
1529 int (*xCurrentTime)(sqlite3_vfs*, double*);
1530 int (*xGetLastError)(sqlite3_vfs*, int, char *);
1535 int (*xCurrentTimeInt64)(sqlite3_vfs*, sqlite3_int64*);
1540 int (*xSetSystemCall)(sqlite3_vfs*, const char *zName, sqlite3_syscall_ptr);
1541 sqlite3_syscall_ptr (*xGetSystemCall)(sqlite3_vfs*, const char *zName);
1542 const char *(*xNextSystemCall)(sqlite3_vfs*, const char *zName);
1554 ** the xAccess method of an [sqlite3_vfs] object. They determine
1669 ** setting up a default [sqlite3_vfs] module, or setting up
2710 ** from the xRandomness method of the default [sqlite3_vfs] object.
2712 ** internally and without recourse to the [sqlite3_vfs] xRandomness
2999 ** [sqlite3_vfs] object that defines the operating system interface that
3001 ** a NULL pointer then the default [sqlite3_vfs] object is used.
4830 ** method of the default [sqlite3_vfs] object. If the xSleep() method
4842 ** created by SQLite when using a built-in [sqlite3_vfs | VFS]
5787 ** A virtual filesystem (VFS) is an [sqlite3_vfs] object
5813 SQLITE_API sqlite3_vfs *sqlite3_vfs_find(const char *zVfsName);
5814 SQLITE_API int sqlite3_vfs_register(sqlite3_vfs*, int makeDflt);
5815 SQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs*);
7964 sqlite3_vfs *pVfs, /* VFS to use with this b-tree */
8683 sqlite3_vfs*,
8745 SQLITE_PRIVATE const sqlite3_vfs *sqlite3PagerVfs(Pager*);
9196 ** Functions for accessing sqlite3_vfs methods
9198 SQLITE_PRIVATE int sqlite3OsOpen(sqlite3_vfs *, const char *, sqlite3_file*, int, int *);
9199 SQLITE_PRIVATE int sqlite3OsDelete(sqlite3_vfs *, const char *, int);
9200 SQLITE_PRIVATE int sqlite3OsAccess(sqlite3_vfs *, const char *, int, int *pResOut);
9201 SQLITE_PRIVATE int sqlite3OsFullPathname(sqlite3_vfs *, const char *, int, char *);
9203 SQLITE_PRIVATE void *sqlite3OsDlOpen(sqlite3_vfs *, const char *);
9204 SQLITE_PRIVATE void sqlite3OsDlError(sqlite3_vfs *, int, char *);
9205 SQLITE_PRIVATE void (*sqlite3OsDlSym(sqlite3_vfs *, void *, const char *))(void);
9206 SQLITE_PRIVATE void sqlite3OsDlClose(sqlite3_vfs *, void *);
9208 SQLITE_PRIVATE int sqlite3OsRandomness(sqlite3_vfs *, int, char *);
9209 SQLITE_PRIVATE int sqlite3OsSleep(sqlite3_vfs *, int);
9210 SQLITE_PRIVATE int sqlite3OsCurrentTimeInt64(sqlite3_vfs *, sqlite3_int64*);
9216 SQLITE_PRIVATE int sqlite3OsOpenMalloc(sqlite3_vfs *, const char *, sqlite3_file **, int,int*);
9448 sqlite3_vfs *pVfs; /* OS Interface */
9452 unsigned int openFlags; /* Flags passed to sqlite3_vfs.xOpen() */
11334 sqlite3_vfs**,char**,char **);
11803 SQLITE_PRIVATE int sqlite3JournalOpen(sqlite3_vfs *, const char *, sqlite3_file *, int, int);
11804 SQLITE_PRIVATE int sqlite3JournalSize(sqlite3_vfs *);
14355 ** The default SQLite sqlite3_vfs implementations do not allocate
14461 sqlite3_vfs *pVfs,
14477 SQLITE_PRIVATE int sqlite3OsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
14481 sqlite3_vfs *pVfs,
14490 sqlite3_vfs *pVfs,
14499 SQLITE_PRIVATE void *sqlite3OsDlOpen(sqlite3_vfs *pVfs, const char *zPath){
14502 SQLITE_PRIVATE void sqlite3OsDlError(sqlite3_vfs *pVfs, int nByte, char *zBufOut){
14505 SQLITE_PRIVATE void (*sqlite3OsDlSym(sqlite3_vfs *pVfs, void *pHdle, const char *zSym))(void){
14508 SQLITE_PRIVATE void sqlite3OsDlClose(sqlite3_vfs *pVfs, void *pHandle){
14512 SQLITE_PRIVATE int sqlite3OsRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){
14515 SQLITE_PRIVATE int sqlite3OsSleep(sqlite3_vfs *pVfs, int nMicro){
14518 SQLITE_PRIVATE int sqlite3OsCurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *pTimeOut){
14537 sqlite3_vfs *pVfs,
14580 static sqlite3_vfs * SQLITE_WSD vfsList = 0;
14581 #define vfsList GLOBAL(sqlite3_vfs *, vfsList)
14587 SQLITE_API sqlite3_vfs *sqlite3_vfs_find(const char *zVfs){
14588 sqlite3_vfs *pVfs = 0;
14611 static void vfsUnlink(sqlite3_vfs *pVfs){
14618 sqlite3_vfs *p = vfsList;
14633 SQLITE_API int sqlite3_vfs_register(sqlite3_vfs *pVfs, int makeDflt){
14657 SQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs *pVfs){
23884 sqlite3_vfs *pVfs, /* Pointer to vfs object */
23906 sqlite3_vfs *pVfs, /* Not used */
24053 sqlite3_vfs *pVfs, /* Not used on os2 */
24073 sqlite3_vfs *pVfs, /* Not used on os2 */
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){
24286 static int os2CurrentTime( sqlite3_vfs *pVfs, double *prNow ){
24317 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
24326 static int os2GetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
24335 static sqlite3_vfs os2Vfs = {
24414 ** * sqlite3_vfs method implementations.
24416 ** * Definitions of sqlite3_vfs objects for all locking methods
24993 ** This is the xSetSystemCall() method of sqlite3_vfs for all of the
24999 sqlite3_vfs *pNotUsed, /* The VFS pointer. Not used */
25042 sqlite3_vfs *pNotUsed,
25060 static const char *unixNextSystemCall(sqlite3_vfs *p, const char *zName){
28817 ** field of the sqlite3_vfs VFS objects are initialized to be pointers to
29091 **************************** sqlite3_vfs methods ****************************
29094 ** sqlite3_vfs object.
29101 sqlite3_vfs *pVfs, /* Pointer to vfs object */
29510 sqlite3_vfs *pVfs, /* The VFS for which this is the xOpen method */
29738 sqlite3_vfs *NotUsed, /* VFS containing this as the xDelete method */
29781 sqlite3_vfs *NotUsed, /* The VFS containing this xAccess method */
29819 ** zOut points to a buffer of at least sqlite3_vfs.mxPathname bytes
29824 sqlite3_vfs *pVfs, /* Pointer to vfs object */
29861 static void *unixDlOpen(sqlite3_vfs *NotUsed, const char *zFilename){
29873 static void unixDlError(sqlite3_vfs *NotUsed, int nBuf, char *zBufOut){
29883 static void (*unixDlSym(sqlite3_vfs *NotUsed, void *p, const char*zSym))(void){
29906 static void unixDlClose(sqlite3_vfs *NotUsed, void *pHandle){
29920 static int unixRandomness(sqlite3_vfs *NotUsed, int nBuf, char *zBuf){
29967 static int unixSleep(sqlite3_vfs *NotUsed, int microseconds){
30006 static int unixCurrentTimeInt64(sqlite3_vfs *NotUsed, sqlite3_int64 *piNow){
30036 static int unixCurrentTime(sqlite3_vfs *NotUsed, double *prNow){
30051 static int unixGetLastError(sqlite3_vfs *NotUsed, int NotUsed2, char *NotUsed3){
30060 ************************ End of sqlite3_vfs methods ***************************
30328 sqlite3_vfs dummyVfs;
31251 ** The following macro defines an initializer for an sqlite3_vfs object.
31298 ** Note that the sqlite3_vfs.pNext field of the VFS object is modified
31302 static sqlite3_vfs aVfs[] = {
31333 for(i=0; i<(sizeof(aVfs)/sizeof(sqlite3_vfs)); i++){
31663 sqlite3_vfs *pVfs; /* The VFS used to open this file */
31757 sqlite3_vfs *pVfs,
33410 static int winOpen(sqlite3_vfs*,const char*,sqlite3_file*,int,int*);
33411 static int winDelete(sqlite3_vfs *,const char*,int);
33419 static void winShmPurge(sqlite3_vfs *pVfs, int deleteFlag){
33904 **************************** sqlite3_vfs methods ****************************
33907 ** sqlite3_vfs object.
34008 sqlite3_vfs *pVfs, /* Not used */
34236 sqlite3_vfs *pVfs, /* Not used on win32 */
34282 sqlite3_vfs *pVfs, /* Not used on win32 */
34358 sqlite3_vfs *pVfs, /* Pointer to vfs object */
34445 sqlite3_vfs *pVfs,
34519 static void *winDlOpen(sqlite3_vfs *pVfs, const char *zFilename){
34540 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
34544 void (*winDlSym(sqlite3_vfs *pVfs, void *pHandle, const char *zSymbol))(void){
34555 void winDlClose(sqlite3_vfs *pVfs, void *pHandle){
34570 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
34607 static int winSleep(sqlite3_vfs *pVfs, int microsec){
34631 static int winCurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *piNow){
34673 int winCurrentTime(sqlite3_vfs *pVfs, double *prNow){
34704 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
34713 static int winGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
34724 static sqlite3_vfs winVfs = {
37484 SQLITE_PRIVATE int sqlite3WalOpen(sqlite3_vfs*, sqlite3_file*, const char *, int, i64, Wal**);
38147 sqlite3_vfs *pVfs; /* OS functions to use for IO */
38200 u32 vfsFlags; /* Flags for sqlite3_vfs.xOpen() */
38722 ** the caller. This should be sqlite3_vfs.mxPathname+1 (to ensure there is
39898 sqlite3_vfs *pVfs = pPager->pVfs;
40131 sqlite3_vfs *pVfs = pPager->pVfs;
41818 sqlite3_vfs *pVfs, /* The virtual file system to use */
41823 int vfsFlags, /* flags passed through to sqlite3_vfs.xOpen() */
42123 sqlite3_vfs * const pVfs = pPager->pVfs;
42310 sqlite3_vfs * const pVfs = pPager->pVfs;
42669 sqlite3_vfs * const pVfs = pPager->pVfs; /* Local cache of vfs pointer */
43774 SQLITE_PRIVATE const sqlite3_vfs *sqlite3PagerVfs(Pager *pPager){
44780 sqlite3_vfs *pVfs; /* The VFS used to create pDbFd */
45614 sqlite3_vfs *pVfs, /* vfs module to open wal and wal-index */
49961 sqlite3_vfs *pVfs, /* VFS to use for this b-tree */
49966 int vfsFlags /* Flags passed through to sqlite3_vfs.xOpen() */
60124 sqlite3_vfs *pVfs = db->pVfs;
71202 sqlite3_vfs *pVfs; /* The "real" underlying VFS */
71357 sqlite3_vfs *pVfs, /* The VFS to use for actual file I/O */
71396 SQLITE_PRIVATE int sqlite3JournalSize(sqlite3_vfs *pVfs){
71471 ** of the sqlite3_vfs.xRead method.
78404 sqlite3_vfs *pVfs;
89072 sqlite3_vfs *(*vfs_find)(const char*);
89073 int (*vfs_register)(sqlite3_vfs*,int);
89074 int (*vfs_unregister)(sqlite3_vfs*);
89702 sqlite3_vfs *pVfs = db->pVfs;
111975 sqlite3_vfs **ppVfs, /* OUT: VFS to use */
112782 sqlite3_vfs *pVfs;