Lines Matching refs:sqlite3_vfs
1079 ** in the 4th parameter to the [sqlite3_vfs.xOpen] method.
1189 ** [sqlite3_vfs | OS interface layer]. Individual OS interface
1204 ** Every file opened by the [sqlite3_vfs.xOpen] method populates an
1210 ** If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element
1212 ** may be invoked even if the [sqlite3_vfs.xOpen] reported that it failed. The
1213 ** only way to prevent a call to xClose following a failed [sqlite3_vfs.xOpen]
1214 ** is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element
1516 ** An instance of the sqlite3_vfs object defines the interface between
1524 ** of the sqlite3_vfs object changes in the transaction between
1532 ** Registered sqlite3_vfs objects are kept on a linked list formed by
1539 ** The pNext field is the only field in the sqlite3_vfs
1542 ** The application should never modify anything within the sqlite3_vfs
1548 ** [[sqlite3_vfs.xOpen]]
1626 ** [[sqlite3_vfs.xAccess]]
1670 typedef struct sqlite3_vfs sqlite3_vfs;
1672 struct sqlite3_vfs {
1676 sqlite3_vfs *pNext; /* Next registered VFS */
1679 int (*xOpen)(sqlite3_vfs*, const char *zName, sqlite3_file*,
1681 int (*xDelete)(sqlite3_vfs*, const char *zName, int syncDir);
1682 int (*xAccess)(sqlite3_vfs*, const char *zName, int flags, int *pResOut);
1683 int (*xFullPathname)(sqlite3_vfs*, const char *zName, int nOut, char *zOut);
1684 void *(*xDlOpen)(sqlite3_vfs*, const char *zFilename);
1685 void (*xDlError)(sqlite3_vfs*, int nByte, char *zErrMsg);
1686 void (*(*xDlSym)(sqlite3_vfs*,void*, const char *zSymbol))(void);
1687 void (*xDlClose)(sqlite3_vfs*, void*);
1688 int (*xRandomness)(sqlite3_vfs*, int nByte, char *zOut);
1689 int (*xSleep)(sqlite3_vfs*, int microseconds);
1690 int (*xCurrentTime)(sqlite3_vfs*, double*);
1691 int (*xGetLastError)(sqlite3_vfs*, int, char *);
1696 int (*xCurrentTimeInt64)(sqlite3_vfs*, sqlite3_int64*);
1701 int (*xSetSystemCall)(sqlite3_vfs*, const char *zName, sqlite3_syscall_ptr);
1702 sqlite3_syscall_ptr (*xGetSystemCall)(sqlite3_vfs*, const char *zName);
1703 const char *(*xNextSystemCall)(sqlite3_vfs*, const char *zName);
1715 ** the xAccess method of an [sqlite3_vfs] object. They determine
1830 ** setting up a default [sqlite3_vfs] module, or setting up
2927 ** from the xRandomness method of the default [sqlite3_vfs] object.
2929 ** internally and without recourse to the [sqlite3_vfs] xRandomness
3219 ** [sqlite3_vfs] object that defines the operating system interface that
3221 ** a NULL pointer then the default [sqlite3_vfs] object is used.
5137 ** method of the default [sqlite3_vfs] object. If the xSleep() method
5149 ** created by SQLite when using a built-in [sqlite3_vfs | VFS]
5196 ** SQLite when using a built-in windows [sqlite3_vfs | VFS] will be assumed
6200 ** A virtual filesystem (VFS) is an [sqlite3_vfs] object
6226 SQLITE_API sqlite3_vfs *sqlite3_vfs_find(const char *zVfsName);
6227 SQLITE_API int sqlite3_vfs_register(sqlite3_vfs*, int makeDflt);
6228 SQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs*);
8536 sqlite3_vfs *pVfs, /* VFS to use with this b-tree */
9273 sqlite3_vfs*,
9343 SQLITE_PRIVATE const sqlite3_vfs *sqlite3PagerVfs(Pager*);
9806 ** Functions for accessing sqlite3_vfs methods
9808 SQLITE_PRIVATE int sqlite3OsOpen(sqlite3_vfs *, const char *, sqlite3_file*, int, int *);
9809 SQLITE_PRIVATE int sqlite3OsDelete(sqlite3_vfs *, const char *, int);
9810 SQLITE_PRIVATE int sqlite3OsAccess(sqlite3_vfs *, const char *, int, int *pResOut);
9811 SQLITE_PRIVATE int sqlite3OsFullPathname(sqlite3_vfs *, const char *, int, char *);
9813 SQLITE_PRIVATE void *sqlite3OsDlOpen(sqlite3_vfs *, const char *);
9814 SQLITE_PRIVATE void sqlite3OsDlError(sqlite3_vfs *, int, char *);
9815 SQLITE_PRIVATE void (*sqlite3OsDlSym(sqlite3_vfs *, void *, const char *))(void);
9816 SQLITE_PRIVATE void sqlite3OsDlClose(sqlite3_vfs *, void *);
9818 SQLITE_PRIVATE int sqlite3OsRandomness(sqlite3_vfs *, int, char *);
9819 SQLITE_PRIVATE int sqlite3OsSleep(sqlite3_vfs *, int);
9820 SQLITE_PRIVATE int sqlite3OsCurrentTimeInt64(sqlite3_vfs *, sqlite3_int64*);
9826 SQLITE_PRIVATE int sqlite3OsOpenMalloc(sqlite3_vfs *, const char *, sqlite3_file **, int,int*);
10034 sqlite3_vfs *pVfs; /* OS Interface */
10043 unsigned int openFlags; /* Flags passed to sqlite3_vfs.xOpen() */
11994 sqlite3_vfs**,char**,char **);
12488 SQLITE_PRIVATE int sqlite3JournalOpen(sqlite3_vfs *, const char *, sqlite3_file *, int, int);
12489 SQLITE_PRIVATE int sqlite3JournalSize(sqlite3_vfs *);
15115 ** The default SQLite sqlite3_vfs implementations do not allocate
15263 sqlite3_vfs *pVfs,
15279 SQLITE_PRIVATE int sqlite3OsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
15285 sqlite3_vfs *pVfs,
15294 sqlite3_vfs *pVfs,
15304 SQLITE_PRIVATE void *sqlite3OsDlOpen(sqlite3_vfs *pVfs, const char *zPath){
15307 SQLITE_PRIVATE void sqlite3OsDlError(sqlite3_vfs *pVfs, int nByte, char *zBufOut){
15310 SQLITE_PRIVATE void (*sqlite3OsDlSym(sqlite3_vfs *pVfs, void *pHdle, const char *zSym))(void){
15313 SQLITE_PRIVATE void sqlite3OsDlClose(sqlite3_vfs *pVfs, void *pHandle){
15317 SQLITE_PRIVATE int sqlite3OsRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){
15320 SQLITE_PRIVATE int sqlite3OsSleep(sqlite3_vfs *pVfs, int nMicro){
15323 SQLITE_PRIVATE int sqlite3OsCurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *pTimeOut){
15342 sqlite3_vfs *pVfs,
15385 static sqlite3_vfs * SQLITE_WSD vfsList = 0;
15386 #define vfsList GLOBAL(sqlite3_vfs *, vfsList)
15392 SQLITE_API sqlite3_vfs *sqlite3_vfs_find(const char *zVfs){
15393 sqlite3_vfs *pVfs = 0;
15416 static void vfsUnlink(sqlite3_vfs *pVfs){
15423 sqlite3_vfs *p = vfsList;
15438 SQLITE_API int sqlite3_vfs_register(sqlite3_vfs *pVfs, int makeDflt){
15462 SQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs *pVfs){
22927 ** * sqlite3_vfs method implementations.
22929 ** * Definitions of sqlite3_vfs objects for all locking methods
23102 sqlite3_vfs *pVfs; /* The VFS that created this unixFile */
23568 ** This is the xSetSystemCall() method of sqlite3_vfs for all of the
23574 sqlite3_vfs *pNotUsed, /* The VFS pointer. Not used */
23617 sqlite3_vfs *pNotUsed,
23635 static const char *unixNextSystemCall(sqlite3_vfs *p, const char *zName){
27932 ** field of the sqlite3_vfs VFS objects are initialized to be pointers to
28208 **************************** sqlite3_vfs methods ****************************
28211 ** sqlite3_vfs object.
28218 sqlite3_vfs *pVfs, /* Pointer to vfs object */
28635 sqlite3_vfs *pVfs, /* The VFS for which this is the xOpen method */
28886 sqlite3_vfs *NotUsed, /* VFS containing this as the xDelete method */
28934 sqlite3_vfs *NotUsed, /* The VFS containing this xAccess method */
28972 ** zOut points to a buffer of at least sqlite3_vfs.mxPathname bytes
28977 sqlite3_vfs *pVfs, /* Pointer to vfs object */
29014 static void *unixDlOpen(sqlite3_vfs *NotUsed, const char *zFilename){
29026 static void unixDlError(sqlite3_vfs *NotUsed, int nBuf, char *zBufOut){
29036 static void (*unixDlSym(sqlite3_vfs *NotUsed, void *p, const char*zSym))(void){
29059 static void unixDlClose(sqlite3_vfs *NotUsed, void *pHandle){
29073 static int unixRandomness(sqlite3_vfs *NotUsed, int nBuf, char *zBuf){
29120 static int unixSleep(sqlite3_vfs *NotUsed, int microseconds){
29160 static int unixCurrentTimeInt64(sqlite3_vfs *NotUsed, sqlite3_int64 *piNow){
29194 static int unixCurrentTime(sqlite3_vfs *NotUsed, double *prNow){
29210 static int unixGetLastError(sqlite3_vfs *NotUsed, int NotUsed2, char *NotUsed3){
29219 ************************ End of sqlite3_vfs methods ***************************
29487 sqlite3_vfs dummyVfs;
30408 ** The following macro defines an initializer for an sqlite3_vfs object.
30455 ** Note that the sqlite3_vfs.pNext field of the VFS object is modified
30459 static sqlite3_vfs aVfs[] = {
30490 for(i=0; i<(sizeof(aVfs)/sizeof(sqlite3_vfs)); i++){
30852 sqlite3_vfs *pVfs; /* The VFS used to open this file */
31630 ** This is the xSetSystemCall() method of sqlite3_vfs for all of the
31636 sqlite3_vfs *pNotUsed, /* The VFS pointer. Not used */
31679 sqlite3_vfs *pNotUsed,
31697 static const char *winNextSystemCall(sqlite3_vfs *p, const char *zName){
33818 static int winOpen(sqlite3_vfs*,const char*,sqlite3_file*,int,int*);
33819 static int winDelete(sqlite3_vfs *,const char*,int);
33827 static void winShmPurge(sqlite3_vfs *pVfs, int deleteFlag){
34557 **************************** sqlite3_vfs methods ****************************
34560 ** sqlite3_vfs object.
34699 sqlite3_vfs *pVfs, /* Not used */
34986 sqlite3_vfs *pVfs, /* Not used on win32 */
35094 sqlite3_vfs *pVfs, /* Not used on win32 */
35211 sqlite3_vfs *pVfs, /* Pointer to vfs object */
35368 static void *winDlOpen(sqlite3_vfs *pVfs, const char *zFilename){
35390 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
35394 static void (*winDlSym(sqlite3_vfs *pVfs,void *pH,const char *zSym))(void){
35398 static void winDlClose(sqlite3_vfs *pVfs, void *pHandle){
35413 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
35458 static int winSleep(sqlite3_vfs *pVfs, int microsec){
35483 static int winCurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *piNow){
35526 static int winCurrentTime(sqlite3_vfs *pVfs, double *prNow){
35557 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
35566 static int winGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
35575 static sqlite3_vfs winVfs = {
38272 SQLITE_PRIVATE int sqlite3WalOpen(sqlite3_vfs*, sqlite3_file*, const char *, int, i64, Wal**);
38943 sqlite3_vfs *pVfs; /* OS functions to use for IO */
39001 u32 vfsFlags; /* Flags for sqlite3_vfs.xOpen() */
39542 ** the caller. This should be sqlite3_vfs.mxPathname+1 (to ensure there is
40731 sqlite3_vfs *pVfs = pPager->pVfs;
40984 sqlite3_vfs *pVfs = pPager->pVfs;
42826 sqlite3_vfs *pVfs, /* The virtual file system to use */
42831 int vfsFlags, /* flags passed through to sqlite3_vfs.xOpen() */
43144 sqlite3_vfs * const pVfs = pPager->pVfs;
43333 sqlite3_vfs * const pVfs = pPager->pVfs;
43759 sqlite3_vfs * const pVfs = pPager->pVfs; /* Local cache of vfs pointer */
44875 SQLITE_PRIVATE const sqlite3_vfs *sqlite3PagerVfs(Pager *pPager){
45908 sqlite3_vfs *pVfs; /* The VFS used to create pDbFd */
46750 sqlite3_vfs *pVfs, /* vfs module to open wal and wal-index */
51282 sqlite3_vfs *pVfs, /* VFS to use for this b-tree */
51287 int vfsFlags /* Flags passed through to sqlite3_vfs.xOpen() */
61766 sqlite3_vfs *pVfs = db->pVfs;
73253 sqlite3_vfs *pVfs; /* The "real" underlying VFS */
73416 sqlite3_vfs *pVfs, /* The VFS to use for actual file I/O */
73465 SQLITE_PRIVATE int sqlite3JournalSize(sqlite3_vfs *pVfs){
73540 ** of the sqlite3_vfs.xRead method.
81447 sqlite3_vfs *pVfs;
92374 sqlite3_vfs *(*vfs_find)(const char*);
92375 int (*vfs_register)(sqlite3_vfs*,int);
92376 int (*vfs_unregister)(sqlite3_vfs*);
93058 sqlite3_vfs *pVfs = db->pVfs;
116928 sqlite3_vfs **ppVfs, /* OUT: VFS to use */
117745 sqlite3_vfs *pVfs;