Lines Matching defs:zFilename
1388 ** ^SQLite guarantees that the zFilename parameter to xOpen
1391 ** ^If a suffix is added to the zFilename parameter, it will
1399 ** If the zFilename parameter to xOpen is a NULL pointer then xOpen
1523 void *(*xDlOpen)(sqlite3_vfs*, const char *zFilename);
3149 ** The zFilename argument is the filename pointer passed into the xOpen()
3155 ** If the zFilename argument to this function is not a pointer that SQLite
3159 SQLITE_API const char *sqlite3_uri_parameter(const char *zFilename, const char *zParam);
7965 const char *zFilename, /* Name of database file to open */
15445 SQLITE_PRIVATE void sqlite3MemdebugDump(const char *zFilename){
15450 out = fopen(zFilename, "w");
15453 zFilename);
16088 SQLITE_PRIVATE void sqlite3Memsys3Dump(const char *zFilename){
16093 if( zFilename==0 || zFilename[0]==0 ){
16096 out = fopen(zFilename, "w");
16099 zFilename);
16157 UNUSED_PARAMETER(zFilename);
16712 SQLITE_PRIVATE void sqlite3Memsys5Dump(const char *zFilename){
16717 if( zFilename==0 || zFilename[0]==0 ){
16720 out = fopen(zFilename, "w");
16723 zFilename);
24054 const char *zFilename, /* Name of file to delete */
24060 zFilenameCp = convertUtf8PathToCp( zFilename );
24063 OSTRACE(( "DELETE \"%s\"\n", zFilename ));
24074 const char *zFilename, /* Name of file to check */
24085 zFilenameCp = convertUtf8PathToCp( zFilename );
24112 OSTRACE(( "ACCESS %s flags %d: rc=%d\n", zFilename, flags, *pOut ));
24127 static void *os2DlOpen(sqlite3_vfs *pVfs, const char *zFilename){
24130 char *zFilenameCp = convertUtf8PathToCp(zFilename);
27842 ** Open a file descriptor to the directory containing file zFilename.
27864 static int openDirectory(const char *zFilename, int *pFd){
27869 sqlite3_snprintf(MAX_PATHNAME, zDirname, "%s", zFilename);
28182 ** zFilename
28191 char *zFilename; /* Name of the mmapped file */
28418 zShmFilename = pShmNode->zFilename = (char*)&pShmNode[1];
28571 pShmNode->zFilename);
28594 rc = unixLogError(SQLITE_IOERR_SHMMAP, "mmap", pShmNode->zFilename);
28790 if( deleteFlag && pShmNode->h>=0 ) osUnlink(pShmNode->zFilename);
29105 const char *zFilename, /* Name of the file being opened */
29121 /* Usually the path zFilename should not be a relative pathname. The
29126 assert( zFilename==0 || zFilename[0]=='/'
29129 assert( zFilename==0 || zFilename[0]=='/' );
29132 OSTRACE(("OPEN %-3d %s\n", h, zFilename));
29134 pNew->zPath = zFilename;
29148 pNew->pId = vxworksFindFileId(zFilename);
29158 pLockingStyle = (**(finder_type*)pVfs->pAppData)(zFilename, pNew);
29160 /* Cache zFilename in the locking context (AFP and dotlock override) for
29162 ** zFilename remains valid until file is closed, to support */
29163 pNew->lockingContext = (void*)zFilename;
29209 /* NB: zFilename exists and remains valid until the file is closed
29212 pCtx->dbPath = zFilename;
29233 nFilename = (int)strlen(zFilename) + 6;
29238 sqlite3_snprintf(nFilename, zLockFile, "%s" DOTLOCK_SUFFIX, zFilename);
29272 osUnlink(zFilename);
29861 static void *unixDlOpen(sqlite3_vfs *NotUsed, const char *zFilename){
29863 return dlopen(zFilename, RTLD_NOW | RTLD_GLOBAL);
31991 static WCHAR *utf8ToUnicode(const char *zFilename){
31995 nChar = MultiByteToWideChar(CP_UTF8, 0, zFilename, -1, NULL, 0);
32000 nChar = MultiByteToWideChar(CP_UTF8, 0, zFilename, -1, zWideFilename, nChar);
32014 char *zFilename;
32017 zFilename = malloc( nByte );
32018 if( zFilename==0 ){
32021 nByte = WideCharToMultiByte(CP_UTF8, 0, zWideFilename, -1, zFilename, nByte,
32024 free(zFilename);
32025 zFilename = 0;
32027 return zFilename;
32037 static WCHAR *mbcsToUnicode(const char *zFilename){
32042 nByte = MultiByteToWideChar(codepage, 0, zFilename, -1, NULL,0)*sizeof(WCHAR);
32047 nByte = MultiByteToWideChar(codepage, 0, zFilename, -1, zMbcsFilename, nByte);
32064 char *zFilename;
32068 zFilename = malloc( nByte );
32069 if( zFilename==0 ){
32072 nByte = WideCharToMultiByte(codepage, 0, zWideFilename, -1, zFilename, nByte,
32075 free(zFilename);
32076 zFilename = 0;
32078 return zFilename;
32085 SQLITE_API char *sqlite3_win32_mbcs_to_utf8(const char *zFilename){
32089 zTmpWide = mbcsToUnicode(zFilename);
32102 SQLITE_API char *sqlite3_win32_utf8_to_mbcs(const char *zFilename){
32106 zTmpWide = utf8ToUnicode(zFilename);
32324 static BOOL winceCreateLock(const char *zFilename, winFile *pFile){
32326 WCHAR *zName = utf8ToUnicode(zFilename);
32343 winLogError(SQLITE_ERROR, "winceCreateLock1", zFilename);
32375 winLogError(SQLITE_ERROR, "winceCreateLock2", zFilename);
33295 ** zFilename
33304 char *zFilename; /* Name of the file */
33446 winDelete(pVfs, p->zFilename, 0);
33487 pNew->zFilename = (char*)&pNew[1];
33488 sqlite3_snprintf(nName+15, pNew->zFilename, "%s-shm", pDbFd->zPath);
33489 sqlite3FileSuffix3(pDbFd->zPath, pNew->zFilename);
33499 if( sqlite3StrICmp(pShmNode->zFilename, pNew->zFilename)==0 ) break;
33517 pShmNode->zFilename, /* Name of the file (UTF-8) */
33916 static void *convertUtf8Filename(const char *zFilename){
33919 zConverted = utf8ToUnicode(zFilename);
33924 zConverted = sqlite3_win32_utf8_to_mbcs(zFilename);
34237 const char *zFilename, /* Name of file to delete */
34247 zConverted = convertUtf8Filename(zFilename);
34269 rc = winLogError(SQLITE_IOERR_DELETE, "winDelete", zFilename);
34274 OSTRACE(("DELETE \"%s\" %s\n", zFilename, (rc ? "failed" : "ok" )));
34283 const char *zFilename, /* Name of file to check */
34293 zConverted = convertUtf8Filename(zFilename);
34318 winLogError(SQLITE_IOERR_ACCESS, "winAccess", zFilename);
34519 static void *winDlOpen(sqlite3_vfs *pVfs, const char *zFilename){
34521 void *zConverted = convertUtf8Filename(zFilename);
38156 u8 tempFile; /* zFilename is a temporary file */
38205 char *zFilename; /* Name of the database file */
38489 , p->zFilename
41110 ** If the pager was opened on a transient file (zFilename==""), or
41792 ** The zFilename argument is the path to the database file to open.
41793 ** If zFilename is NULL then a randomly-named temporary file is created
41795 ** automatically when they are closed. If zFilename is ":memory:" then
41820 const char *zFilename, /* Name of the database file to open */
41862 zFilename = 0;
41870 if( zFilename && zFilename[0] ){
41878 rc = sqlite3OsFullPathname(pVfs, zFilename, nPathname, zPathname);
41880 z = zUri = &zFilename[sqlite3Strlen30(zFilename)+1];
41918 nPathname + 1 + nUri + /* zFilename */
41934 pPager->zFilename = (char*)(pPtr += journalFileSize);
41937 /* Fill in the Pager.zFilename and Pager.zJournal buffers, if required. */
41941 memcpy(pPager->zFilename, zPathname, nPathname);
41942 memcpy(&pPager->zFilename[nPathname+1], zUri, nUri);
41945 sqlite3FileSuffix3(pPager->zFilename, pPager->zJournal);
41950 sqlite3FileSuffix3(pPager->zFilename, pPager->zWal);
41959 if( zFilename && zFilename[0] ){
41961 rc = sqlite3OsOpen(pVfs, pPager->zFilename, pPager->fd, vfsFlags, &fout);
42038 PAGERTRACE(("OPEN %d %s\n", FILEHANDLEID(pPager->fd), pPager->zFilename));
42039 IOTRACE(("OPEN %p %s\n", pPager, pPager->zFilename))
43273 pPager->zFilename, zMaster, pPager->dbSize));
43768 return pPager->zFilename;
49939 ** zFilename is the name of the database file. If zFilename is NULL
49945 ** If zFilename is ":memory:" then an in-memory database is created
49962 const char *zFilename, /* Name of the file containing the BTree database */
49976 const int isTempDb = zFilename==0 || zFilename[0]==0;
49984 const int isMemdb = (zFilename && strcmp(zFilename, ":memory:")==0)
50034 sqlite3OsFullPathname(pVfs, zFilename, nFullPathname, zFullPathname);
50091 rc = sqlite3PagerOpen(pVfs, &pBt->pPager, zFilename,
50121 if( zFilename && !isMemdb ){
64035 const char *zFilename; /* Name of database file for pPager */
69077 const char *zFilename; /* Name of database file for pPager */
69098 u.ch.zFilename = sqlite3PagerFilename(u.ch.pPager);
69104 && (u.ch.zFilename[0]==0 /* Temp file */
112179 ** sqlite3_open() and sqlite3_open16(). The database filename "zFilename"
112183 const char *zFilename, /* Database filename UTF-8 encoded */
112321 rc = sqlite3ParseUri(zVfs, zFilename, &flags, &db->pVfs, &zOpen, &zErrMsg);
112443 const char *zFilename,
112446 return openDatabase(zFilename, ppDb,
112463 const void *zFilename,
112466 char const *zFilename8; /* zFilename encoded in UTF-8 instead of UTF-16 */
112470 assert( zFilename );
112478 sqlite3ValueSetStr(pVal, -1, zFilename, SQLITE_UTF16NATIVE, SQLITE_STATIC);
113082 ** The zFilename argument is the filename pointer passed into the xOpen()
113088 SQLITE_API const char *sqlite3_uri_parameter(const char *zFilename, const char *zParam){
113089 zFilename += sqlite3Strlen30(zFilename) + 1;
113090 while( zFilename[0] ){
113091 int x = strcmp(zFilename, zParam);
113092 zFilename += sqlite3Strlen30(zFilename) + 1;
113093 if( x==0 ) return zFilename;
113094 zFilename += sqlite3Strlen30(zFilename) + 1;