Home
last modified time | relevance | path

Searched refs:zFilename (Results 1 – 12 of 12) sorted by relevance

/illumos-gate/usr/src/lib/libsqlite/test/
H A Dthreadtest1.c197 const char *zFilename = (char*)pArg; in worker_bee() local
200 int t = atoi(zFilename); in worker_bee()
207 printf("%s: START\n", zFilename); in worker_bee()
210 db = sqlite_open(&zFilename[2], 0, &azErr); in worker_bee()
212 fprintf(stdout,"%s: can't open\n", zFilename); in worker_bee()
215 sqlite_busy_handler(db, db_is_locked, zFilename); in worker_bee()
222 db_check(zFilename, "tX size", az, "100", 0); in worker_bee()
224 db_check(zFilename, "tX avg", az, "101", 0); in worker_bee()
227 db_check(zFilename, "tX avg2", az, "51", 0); in worker_bee()
235 db_execute(db, zFilename, "DROP TABLE t%d;", t); in worker_bee()
[all …]
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dos.c392 unlink(zFilename); in sqliteOsDelete()
395 DeleteFile(zFilename); in sqliteOsDelete()
398 unlink(zFilename); in sqliteOsDelete()
408 return access(zFilename, 0)==0; in sqliteOsFileExists()
458 const char *zFilename, in sqliteOsOpenReadWrite() argument
502 h = CreateFile(zFilename, in sqliteOsOpenReadWrite()
592 if( access(zFilename, 0)==0 ){ in sqliteOsOpenExclusive()
596 id->fd = open(zFilename, in sqliteOsOpenExclusive()
606 unlink(zFilename); in sqliteOsOpenExclusive()
611 unlink(zFilename); in sqliteOsOpenExclusive()
[all …]
H A Dmain.c475 sqlite *sqlite_open(const char *zFilename, int mode, char **pzErrMsg){ in sqlite_open() argument
498 if( zFilename[0]==':' && strcmp(zFilename,":memory:")==0 ){ in sqlite_open()
501 rc = sqliteBtreeFactory(db, zFilename, 0, MAX_PAGES, &db->aDb[0].pBt); in sqlite_open()
506 zFilename, (char*)0); in sqlite_open()
1111 const char *zFilename, /* Name of the file containing the BTree database */ in sqliteBtreeFactory() argument
1119 if( zFilename==0 ){ in sqliteBtreeFactory()
1128 return sqliteBtreeOpen(zFilename, omitJournal, nCache, ppBtree); in sqliteBtreeFactory()
1136 }else if( zFilename[0]==':' && strcmp(zFilename,":memory:")==0 ){ in sqliteBtreeFactory()
1141 return sqliteBtreeOpen(zFilename, omitJournal, nCache, ppBtree); in sqliteBtreeFactory()
H A Dvacuum.c220 const char *zFilename; /* full pathname of the database file */ in sqliteRunVacuum() local
250 zFilename = sqliteBtreeGetFilename(db->aDb[0].pBt); in sqliteRunVacuum()
251 if( zFilename==0 ){ in sqliteRunVacuum()
256 nFilename = strlen(zFilename); in sqliteRunVacuum()
259 strcpy(zTemp, zFilename); in sqliteRunVacuum()
H A Dtest4.c33 char *zFilename; /* Name of database file */ member
68 p->db = sqlite_open(p->zFilename, 0, &p->zErr); in thread_main()
138 sqliteFree(threadset[i].zFilename); in tcl_thread_create()
139 threadset[i].zFilename = sqliteStrDup(argv[2]); in tcl_thread_create()
145 sqliteFree(threadset[i].zFilename); in tcl_thread_create()
198 sqliteFree(p->zFilename); in stop_thread()
199 p->zFilename = 0; in stop_thread()
H A Dpager.c158 char *zFilename; /* Name of the database file */ member
943 if( zFilename && zFilename[0] ){ in sqlitepager_open()
944 zFullPathname = sqliteOsFullPathname(zFilename); in sqlitepager_open()
949 zFilename = zTemp; in sqlitepager_open()
950 zFullPathname = sqliteOsFullPathname(zFilename); in sqlitepager_open()
968 pPager->zFilename = (char*)&pPager[1]; in sqlitepager_open()
969 pPager->zDirectory = &pPager->zFilename[nameLen+1]; in sqlitepager_open()
971 strcpy(pPager->zFilename, zFullPathname); in sqlitepager_open()
1104 if( pPager->zFilename!=(char*)&pPager[1] ){ in sqlitepager_close()
1106 sqliteFree(pPager->zFilename); in sqlitepager_close()
[all …]
H A Dbtree.h97 int sqliteBtreeOpen(const char *zFilename, int mode, int nPg, Btree **ppBtree);
98 int sqliteRbtreeOpen(const char *zFilename, int mode, int nPg, Btree **ppBtree);
H A Dpager.h73 int sqlitepager_open(Pager **ppPager, const char *zFilename,
H A DsqliteInt.h1260 int sqliteBtreeFactory(const sqlite *db, const char *zFilename,
H A Dbtree_rb.c613 const char *zFilename, in sqliteRbtreeOpen() argument
H A Dbtree.c686 const char *zFilename, /* Name of the file containing the BTree database */ in sqliteBtreeOpen() argument
716 rc = sqlitepager_open(&pBt->pPager, zFilename, nCache, EXTRA_SIZE, in sqliteBtreeOpen()
H A Dsqlite.h.in810 const char *zFilename, /* Name of the encrypted database */