Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/libsqlite/test/
H A Dthreadtest1.c200 const char *zFilename = (char*)pArg; in worker_bee() local
203 int t = atoi(zFilename); in worker_bee()
210 printf("%s: START\n", zFilename); in worker_bee()
213 db = sqlite_open(&zFilename[2], 0, &azErr); in worker_bee()
215 fprintf(stdout,"%s: can't open\n", zFilename); in worker_bee()
218 sqlite_busy_handler(db, db_is_locked, zFilename); in worker_bee()
219 db_execute(db, zFilename, "CREATE TABLE t%d(a,b,c);", t); in worker_bee()
221 db_execute(db, zFilename, "INSERT INTO t%d VALUES(%d,%d,%d);", in worker_bee()
224 az = db_query(db, zFilename, "SELECT count(*) FROM t%d", t); in worker_bee()
225 db_check(zFilename, "tX size", az, "100", 0); in worker_bee()
[all …]
/titanic_41/usr/src/lib/libsqlite/src/
H A Dos.c393 int sqliteOsDelete(const char *zFilename){ in sqliteOsDelete() argument
395 unlink(zFilename); in sqliteOsDelete()
398 DeleteFile(zFilename); in sqliteOsDelete()
401 unlink(zFilename); in sqliteOsDelete()
409 int sqliteOsFileExists(const char *zFilename){ in sqliteOsFileExists() argument
411 return access(zFilename, 0)==0; in sqliteOsFileExists()
414 return GetFileAttributes(zFilename) != 0xffffffff; in sqliteOsFileExists()
417 return access(zFilename, 0)==0; in sqliteOsFileExists()
461 const char *zFilename, in sqliteOsOpenReadWrite() argument
468 id->fd = open(zFilename, O_RDWR|O_CREAT|O_LARGEFILE|O_BINARY, 0644); in sqliteOsOpenReadWrite()
[all …]
H A Dvacuum.c223 const char *zFilename; /* full pathname of the database file */ in sqliteRunVacuum() local
253 zFilename = sqliteBtreeGetFilename(db->aDb[0].pBt); in sqliteRunVacuum()
254 if( zFilename==0 ){ in sqliteRunVacuum()
259 nFilename = strlen(zFilename); in sqliteRunVacuum()
262 strcpy(zTemp, zFilename); in sqliteRunVacuum()
H A Dmain.c478 sqlite *sqlite_open(const char *zFilename, int mode, char **pzErrMsg){ in sqlite_open() argument
501 if( zFilename[0]==':' && strcmp(zFilename,":memory:")==0 ){ in sqlite_open()
504 rc = sqliteBtreeFactory(db, zFilename, 0, MAX_PAGES, &db->aDb[0].pBt); in sqlite_open()
509 zFilename, (char*)0); in sqlite_open()
1114 const char *zFilename, /* Name of the file containing the BTree database */ in sqliteBtreeFactory() argument
1122 if( zFilename==0 ){ in sqliteBtreeFactory()
1131 return sqliteBtreeOpen(zFilename, omitJournal, nCache, ppBtree); in sqliteBtreeFactory()
1139 }else if( zFilename[0]==':' && strcmp(zFilename,":memory:")==0 ){ in sqliteBtreeFactory()
1144 return sqliteBtreeOpen(zFilename, omitJournal, nCache, ppBtree); in sqliteBtreeFactory()
H A Dtest4.c36 char *zFilename; /* Name of database file */ member
71 p->db = sqlite_open(p->zFilename, 0, &p->zErr); in thread_main()
141 sqliteFree(threadset[i].zFilename); in tcl_thread_create()
142 threadset[i].zFilename = sqliteStrDup(argv[2]); in tcl_thread_create()
148 sqliteFree(threadset[i].zFilename); in tcl_thread_create()
201 sqliteFree(p->zFilename); in stop_thread()
202 p->zFilename = 0; in stop_thread()
H A Dpager.c160 char *zFilename; /* Name of the database file */ member
927 const char *zFilename, /* Name of the database file to open */ in sqlitepager_open() argument
945 if( zFilename && zFilename[0] ){ in sqlitepager_open()
946 zFullPathname = sqliteOsFullPathname(zFilename); in sqlitepager_open()
951 zFilename = zTemp; in sqlitepager_open()
952 zFullPathname = sqliteOsFullPathname(zFilename); in sqlitepager_open()
970 pPager->zFilename = (char*)&pPager[1]; in sqlitepager_open()
971 pPager->zDirectory = &pPager->zFilename[nameLen+1]; in sqlitepager_open()
973 strcpy(pPager->zFilename, zFullPathname); in sqlitepager_open()
1106 if( pPager->zFilename!=(char*)&pPager[1] ){ in sqlitepager_close()
[all …]
H A Dpager.h76 int sqlitepager_open(Pager **ppPager, const char *zFilename,
H A Dbtree.h100 int sqliteBtreeOpen(const char *zFilename, int mode, int nPg, Btree **ppBtree);
101 int sqliteRbtreeOpen(const char *zFilename, int mode, int nPg, Btree **ppBtree);
H A DsqliteInt.h1263 int sqliteBtreeFactory(const sqlite *db, const char *zFilename,
H A Dbtree_rb.c616 const char *zFilename, in sqliteRbtreeOpen() argument
H A Dbtree.c688 const char *zFilename, /* Name of the file containing the BTree database */ in sqliteBtreeOpen() argument
718 rc = sqlitepager_open(&pBt->pPager, zFilename, nCache, EXTRA_SIZE, in sqliteBtreeOpen()
H A Dsqlite.h.in813 const char *zFilename, /* Name of the encrypted database */