Lines Matching defs:zFilename
1549 ** ^SQLite guarantees that the zFilename parameter to xOpen
1552 ** ^If a suffix is added to the zFilename parameter, it will
1560 ** If the zFilename parameter to xOpen is a NULL pointer then xOpen
1684 void *(*xDlOpen)(sqlite3_vfs*, const char *zFilename);
3409 SQLITE_API const char *sqlite3_uri_parameter(const char *zFilename, const char *zParam);
8537 const char *zFilename, /* Name of database file to open */
16379 SQLITE_PRIVATE void sqlite3MemdebugDump(const char *zFilename){
16384 out = fopen(zFilename, "w");
16387 zFilename);
17022 SQLITE_PRIVATE void sqlite3Memsys3Dump(const char *zFilename){
17027 if( zFilename==0 || zFilename[0]==0 ){
17030 out = fopen(zFilename, "w");
17033 zFilename);
17091 UNUSED_PARAMETER(zFilename);
17646 SQLITE_PRIVATE void sqlite3Memsys5Dump(const char *zFilename){
17651 if( zFilename==0 || zFilename[0]==0 ){
17654 out = fopen(zFilename, "w");
17657 zFilename);
26556 ** Open a file descriptor to the directory containing file zFilename.
26578 static int openDirectory(const char *zFilename, int *pFd){
26583 sqlite3_snprintf(MAX_PATHNAME, zDirname, "%s", zFilename);
27051 ** zFilename
27060 char *zFilename; /* Name of the mmapped file */
27286 zShmFilename = pShmNode->zFilename = (char*)&pShmNode[1];
27453 const char *zFile = pShmNode->zFilename;
27479 rc = unixLogError(SQLITE_IOERR_SHMMAP, "mmap", pShmNode->zFilename);
27675 if( deleteFlag && pShmNode->h>=0 ) osUnlink(pShmNode->zFilename);
28221 const char *zFilename, /* Name of the file being opened */
28230 /* Usually the path zFilename should not be a relative pathname. The
28235 assert( zFilename==0 || zFilename[0]=='/'
28238 assert( zFilename==0 || zFilename[0]=='/' );
28242 assert( zFilename!=0 || (ctrlFlags & UNIXFILE_NOLOCK)!=0 );
28244 OSTRACE(("OPEN %-3d %s\n", h, zFilename));
28247 pNew->zPath = zFilename;
28250 if( sqlite3_uri_boolean(((ctrlFlags & UNIXFILE_URI) ? zFilename : 0),
28259 pNew->pId = vxworksFindFileId(zFilename);
28269 pLockingStyle = (**(finder_type*)pVfs->pAppData)(zFilename, pNew);
28271 /* Cache zFilename in the locking context (AFP and dotlock override) for
28273 ** zFilename remains valid until file is closed, to support */
28274 pNew->lockingContext = (void*)zFilename;
28320 /* NB: zFilename exists and remains valid until the file is closed
28323 pCtx->dbPath = zFilename;
28344 assert( zFilename!=0 );
28345 nFilename = (int)strlen(zFilename) + 6;
28350 sqlite3_snprintf(nFilename, zLockFile, "%s" DOTLOCK_SUFFIX, zFilename);
28384 osUnlink(zFilename);
29014 static void *unixDlOpen(sqlite3_vfs *NotUsed, const char *zFilename){
29016 return dlopen(zFilename, RTLD_NOW | RTLD_GLOBAL);
31997 static LPWSTR utf8ToUnicode(const char *zFilename){
32001 nChar = osMultiByteToWideChar(CP_UTF8, 0, zFilename, -1, NULL, 0);
32009 nChar = osMultiByteToWideChar(CP_UTF8, 0, zFilename, -1, zWideFilename,
32024 char *zFilename;
32030 zFilename = sqlite3MallocZero( nByte );
32031 if( zFilename==0 ){
32034 nByte = osWideCharToMultiByte(CP_UTF8, 0, zWideFilename, -1, zFilename, nByte,
32037 sqlite3_free(zFilename);
32038 zFilename = 0;
32040 return zFilename;
32050 static LPWSTR mbcsToUnicode(const char *zFilename){
32055 nByte = osMultiByteToWideChar(codepage, 0, zFilename, -1, NULL,
32064 nByte = osMultiByteToWideChar(codepage, 0, zFilename, -1, zMbcsFilename,
32082 char *zFilename;
32089 zFilename = sqlite3MallocZero( nByte );
32090 if( zFilename==0 ){
32093 nByte = osWideCharToMultiByte(codepage, 0, zWideFilename, -1, zFilename,
32096 sqlite3_free(zFilename);
32097 zFilename = 0;
32099 return zFilename;
32106 SQLITE_API char *sqlite3_win32_mbcs_to_utf8(const char *zFilename){
32110 zTmpWide = mbcsToUnicode(zFilename);
32123 SQLITE_API char *sqlite3_win32_utf8_to_mbcs(const char *zFilename){
32127 zTmpWide = utf8ToUnicode(zFilename);
32399 static int winceCreateLock(const char *zFilename, winFile *pFile){
32406 zName = utf8ToUnicode(zFilename);
32427 "winceCreateLock1", zFilename);
32461 "winceCreateLock2", zFilename);
32473 "winceCreateLock3", zFilename);
33708 ** zFilename
33717 char *zFilename; /* Name of the file */
33855 winDelete(pVfs, p->zFilename, 0);
33895 pNew->zFilename = (char*)&pNew[1];
33896 sqlite3_snprintf(nName+15, pNew->zFilename, "%s-shm", pDbFd->zPath);
33897 sqlite3FileSuffix3(pDbFd->zPath, pNew->zFilename);
33907 if( sqlite3StrICmp(pShmNode->zFilename, pNew->zFilename)==0 ) break;
33925 pShmNode->zFilename, /* Name of the file (UTF-8) */
34569 static void *convertUtf8Filename(const char *zFilename){
34572 zConverted = utf8ToUnicode(zFilename);
34576 zConverted = sqlite3_win32_utf8_to_mbcs(zFilename);
34987 const char *zFilename, /* Name of file to delete */
34999 OSTRACE(("DELETE name=%s, syncDir=%d\n", zFilename, syncDir));
35001 zConverted = convertUtf8Filename(zFilename);
35081 "winDelete", zFilename);
35086 OSTRACE(("DELETE name=%s, rc=%s\n", zFilename, sqlite3ErrName(rc)));
35095 const char *zFilename, /* Name of file to check */
35107 zFilename, flags, pResOut));
35109 zConverted = convertUtf8Filename(zFilename);
35111 OSTRACE(("ACCESS name=%s, rc=SQLITE_IOERR_NOMEM\n", zFilename));
35135 winLogError(SQLITE_IOERR_ACCESS, lastErrno, "winAccess", zFilename);
35163 zFilename, pResOut, *pResOut));
35368 static void *winDlOpen(sqlite3_vfs *pVfs, const char *zFilename){
35370 void *zConverted = convertUtf8Filename(zFilename);
38952 u8 tempFile; /* zFilename is a temporary file */
39006 char *zFilename; /* Name of the database file */
39309 , p->zFilename
42026 ** If the pager was opened on a transient file (zFilename==""), or
42800 ** The zFilename argument is the path to the database file to open.
42801 ** If zFilename is NULL then a randomly-named temporary file is created
42803 ** automatically when they are closed. If zFilename is ":memory:" then
42828 const char *zFilename, /* Name of the database file to open */
42869 if( zFilename && zFilename[0] ){
42870 zPathname = sqlite3DbStrDup(0, zFilename);
42873 zFilename = 0;
42882 if( zFilename && zFilename[0] ){
42890 rc = sqlite3OsFullPathname(pVfs, zFilename, nPathname, zPathname);
42892 z = zUri = &zFilename[sqlite3Strlen30(zFilename)+1];
42931 nPathname + 1 + nUri + /* zFilename */
42947 pPager->zFilename = (char*)(pPtr += journalFileSize);
42950 /* Fill in the Pager.zFilename and Pager.zJournal buffers, if required. */
42954 memcpy(pPager->zFilename, zPathname, nPathname);
42955 if( nUri ) memcpy(&pPager->zFilename[nPathname+1], zUri, nUri);
42958 sqlite3FileSuffix3(pPager->zFilename, pPager->zJournal);
42963 sqlite3FileSuffix3(pPager->zFilename, pPager->zWal);
42972 if( zFilename && zFilename[0] ){
42974 rc = sqlite3OsOpen(pVfs, pPager->zFilename, pPager->fd, vfsFlags, &fout);
43051 PAGERTRACE(("OPEN %d %s\n", FILEHANDLEID(pPager->fd), pPager->zFilename));
43052 IOTRACE(("OPEN %p %s\n", pPager, pPager->zFilename))
44373 pPager->zFilename, zMaster, pPager->dbSize));
44869 return (nullIfMemDb && pPager->memDb) ? "" : pPager->zFilename;
51263 ** zFilename is the name of the database file. If zFilename is NULL
51269 ** If zFilename is ":memory:" then an in-memory database is created
51283 const char *zFilename, /* Name of the file containing the BTree database */
51297 const int isTempDb = zFilename==0 || zFilename[0]==0;
51305 const int isMemdb = (zFilename && strcmp(zFilename, ":memory:")==0)
51354 memcpy(zFullPathname, zFilename, sqlite3Strlen30(zFilename)+1);
51356 rc = sqlite3OsFullPathname(pVfs, zFilename,
51422 rc = sqlite3PagerOpen(pVfs, &pBt->pPager, zFilename,
51453 if( zFilename && !isMemdb ){
65829 const char *zFilename; /* Name of database file for pPager */
70963 const char *zFilename; /* Name of database file for pPager */
70985 u.cj.zFilename = sqlite3PagerFilename(u.cj.pPager, 1);
70991 && (sqlite3Strlen30(u.cj.zFilename)==0 /* Temp file */
117135 ** sqlite3_open() and sqlite3_open16(). The database filename "zFilename"
117139 const char *zFilename, /* Database filename UTF-8 encoded */
117273 rc = sqlite3ParseUri(zVfs, zFilename, &flags, &db->pVfs, &zOpen, &zErrMsg);
117396 sqlite3GlobalConfig.xSqllog(pArg, db, zFilename, 0);
117406 const char *zFilename,
117409 return openDatabase(zFilename, ppDb,
117426 const void *zFilename,
117429 char const *zFilename8; /* zFilename encoded in UTF-8 instead of UTF-16 */
117433 assert( zFilename );
117441 sqlite3ValueSetStr(pVal, -1, zFilename, SQLITE_UTF16NATIVE, SQLITE_STATIC);
118043 ** The zFilename argument is the filename pointer passed into the xOpen()
118049 SQLITE_API const char *sqlite3_uri_parameter(const char *zFilename, const char *zParam){
118050 if( zFilename==0 ) return 0;
118051 zFilename += sqlite3Strlen30(zFilename) + 1;
118052 while( zFilename[0] ){
118053 int x = strcmp(zFilename, zParam);
118054 zFilename += sqlite3Strlen30(zFilename) + 1;
118055 if( x==0 ) return zFilename;
118056 zFilename += sqlite3Strlen30(zFilename) + 1;
118064 SQLITE_API int sqlite3_uri_boolean(const char *zFilename, const char *zParam, int bDflt){
118065 const char *z = sqlite3_uri_parameter(zFilename, zParam);
118074 const char *zFilename, /* Filename as passed to xOpen */
118078 const char *z = sqlite3_uri_parameter(zFilename, zParam);