Lines Matching refs:zPath
26753 const char *zPath, in sqlite3OsOpen() argument
26764 assert( zPath || (flags & SQLITE_OPEN_EXCLUSIVE) ); in sqlite3OsOpen()
26765 rc = pVfs->xOpen(pVfs, zPath, pFile, flags & 0x1087f7f, pFlagsOut); in sqlite3OsOpen()
26769 SQLITE_PRIVATE int sqlite3OsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in sqlite3OsDelete() argument
26772 return pVfs->xDelete!=0 ? pVfs->xDelete(pVfs, zPath, dirSync) : SQLITE_OK; in sqlite3OsDelete()
26776 const char *zPath, in sqlite3OsAccess() argument
26781 return pVfs->xAccess(pVfs, zPath, flags, pResOut); in sqlite3OsAccess()
26785 const char *zPath, in sqlite3OsFullPathname() argument
26791 return pVfs->xFullPathname(pVfs, zPath, nPathOut, zPathOut); in sqlite3OsFullPathname()
26794 SQLITE_PRIVATE void *sqlite3OsDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in sqlite3OsDlOpen() argument
26795 assert( zPath!=0 ); in sqlite3OsDlOpen()
26796 assert( strlen(zPath)<=SQLITE_MAX_PATHLEN ); /* tag-20210611-1 */ in sqlite3OsDlOpen()
26797 return pVfs->xDlOpen(pVfs, zPath); in sqlite3OsDlOpen()
38717 static int kvvfsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in kvvfsDelete() argument
38718 if( strcmp(zPath, "local-journal")==0 ){ in kvvfsDelete()
38721 if( strcmp(zPath, "session-journal")==0 ){ in kvvfsDelete()
38733 const char *zPath, in kvvfsAccess() argument
38737 SQLITE_KV_LOG(("xAccess(\"%s\")\n", zPath)); in kvvfsAccess()
38738 if( strcmp(zPath, "local-journal")==0 ){ in kvvfsAccess()
38741 if( strcmp(zPath, "session-journal")==0 ){ in kvvfsAccess()
38744 if( strcmp(zPath, "local")==0 ){ in kvvfsAccess()
38747 if( strcmp(zPath, "session")==0 ){ in kvvfsAccess()
38764 const char *zPath, in kvvfsFullPathname() argument
38770 zPath = "local"; in kvvfsFullPathname()
38772 nPath = strlen(zPath); in kvvfsFullPathname()
38773 SQLITE_KV_LOG(("xFullPathname(\"%s\")\n", zPath)); in kvvfsFullPathname()
38775 memcpy(zOut, zPath, nPath); in kvvfsFullPathname()
38783 static void *kvvfsDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in kvvfsDlOpen() argument
39110 const char *zPath; /* Name of the file */ member
40116 const char *zPath, /* File path associated with error */ in unixLogErrorAtLine() argument
40160 if( zPath==0 ) zPath = ""; in unixLogErrorAtLine()
40163 iLine, iErrno, zFunc, zPath, zErr in unixLogErrorAtLine()
40185 pFile ? pFile->zPath : 0, lineno); in robust_close()
40354 (osStat(pFile->zPath, &buf)!=0 in fileHasMoved()
40378 sqlite3_log(SQLITE_WARNING, "cannot fstat db file %s", pFile->zPath); in verifyDbFile()
40382 sqlite3_log(SQLITE_WARNING, "file unlinked while open: %s", pFile->zPath); in verifyDbFile()
40386 sqlite3_log(SQLITE_WARNING, "multiple links to file: %s", pFile->zPath); in verifyDbFile()
40390 sqlite3_log(SQLITE_WARNING, "file renamed while open: %s", pFile->zPath); in verifyDbFile()
41012 osUnlink(pFile->zPath); in closeUnixFile()
41013 sqlite3_free(*(char**)&pFile->zPath); in closeUnixFile()
41014 pFile->zPath = 0; in closeUnixFile()
42620 return unixLogError(SQLITE_IOERR_FSYNC, "full_fsync", pFile->zPath); in unixSync()
42629 OSTRACE(("DIRSYNC %s (have_fullfsync=%d fullsync=%d)\n", pFile->zPath, in unixSync()
42631 rc = osOpenDirectory(pFile->zPath, &dirfd); in unixSync()
42665 return unixLogError(SQLITE_IOERR_TRUNCATE, "ftruncate", pFile->zPath); in unixTruncate()
42786 return unixLogError(SQLITE_IOERR_TRUNCATE, "ftruncate", pFile->zPath); in fcntlSizeHint()
43539 const char *zBasePath = pDbFd->zPath; in unixOpenSharedMemory()
43569 sqlite3FileSuffix3(pDbFd->zPath, zShm); in unixOpenSharedMemory()
43595 if( 0==sqlite3_uri_boolean(pDbFd->zPath, "readonly_shm", 0) ){ in unixOpenSharedMemory()
44213 unixLogError(SQLITE_OK, zErr, pFd->zPath); in unixRemapfile()
44662 pNew->zPath = zFilename; in fillInUnixFile()
44922 static UnixUnusedFd *findReusableFd(const char *zPath, int flags){ in findReusableFd() argument
44943 if( inodeList!=0 && 0==osStat(zPath, &sStat) ){ in findReusableFd()
45012 const char *zPath, /* Path of file (possibly) being created */ in findCreateFileMode() argument
45044 nDb = sqlite3Strlen30(zPath) - 1; in findCreateFileMode()
45045 while( nDb>0 && zPath[nDb]!='.' ){ in findCreateFileMode()
45046 if( zPath[nDb]=='-' ){ in findCreateFileMode()
45047 memcpy(zDb, zPath, nDb); in findCreateFileMode()
45061 const char *z = sqlite3_uri_parameter(zPath, "modeof"); in findCreateFileMode()
45093 const char *zPath, /* Pathname of file to be opened */ in unixOpen() argument
45132 const char *zName = zPath; in unixOpen()
45288 zPath = zName; in unixOpen()
45290 zPath = sqlite3_mprintf("%s", zName); in unixOpen()
45291 if( zPath==0 ){ in unixOpen()
45331 if( isAutoProxy && (zPath!=NULL) && (!noLock) && pVfs->xOpen ){ in unixOpen()
45343 rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags); in unixOpen()
45360 assert( zPath==0 || zPath[0]=='/' in unixOpen()
45363 rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags); in unixOpen()
45379 const char *zPath, /* Name of file to be deleted */ in unixDelete() argument
45385 if( osUnlink(zPath)==(-1) ){ in unixDelete()
45388 || osAccess(zPath,0)!=0 in unixDelete()
45393 rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath); in unixDelete()
45400 rc = osOpenDirectory(zPath, &fd); in unixDelete()
45403 rc = unixLogError(SQLITE_IOERR_DIR_FSYNC, "fsync", zPath); in unixDelete()
45427 const char *zPath, /* Path of the file to examine */ in unixAccess() argument
45441 *pResOut = 0==osStat(zPath, &buf) && in unixAccess()
45444 *pResOut = osAccess(zPath, W_OK|R_OK)==0; in unixAccess()
45530 const char *zPath /* Path to append to pPath. Is zero-terminated */ in appendAllPathElements() argument
45535 while( zPath[i] && zPath[i]!='/' ){ i++; } in appendAllPathElements()
45537 appendOnePathElement(pPath, &zPath[j], i-j); in appendAllPathElements()
45540 }while( zPath[i++] ); in appendAllPathElements()
45554 const char *zPath, /* Possibly relative input path */ in unixFullPathname() argument
45565 if( zPath[0]!='/' ){ in unixFullPathname()
45568 return unixLogError(SQLITE_CANTOPEN_BKPT, "getcwd", zPath); in unixFullPathname()
45572 appendAllPathElements(&path, zPath); in unixFullPathname()
47404 const char *zPath; /* Full pathname of this file */ member
49340 const char *zPath, /* File path associated with error */ in winLogErrorAtLine() argument
49349 if( zPath==0 ) zPath = ""; in winLogErrorAtLine()
49354 iLine, lastErrno, zFunc, zPath, zMsg in winLogErrorAtLine()
49991 winLogError(rc, pFile->lastErrno, "winSeekFile", pFile->zPath); in winSeekFile()
50062 "winClose", pFile->zPath); in winClose()
50130 "winRead", pFile->zPath);
50242 "winWrite1", pFile->zPath);
50247 "winWrite2", pFile->zPath);
50367 "winTruncate1", pFile->zPath);
50372 "winTruncate2", pFile->zPath);
50464 "winSync1", pFile->zPath);
50479 "winSync2", pFile->zPath);
50505 "winFileSize", pFile->zPath);
50520 "winFileSize", pFile->zPath);
50616 "winUnlockReadLock", pFile->zPath);
50858 "winUnlock", pFile->zPath);
51526 nName = sqlite3Strlen30(pDbFd->zPath);
51535 sqlite3_snprintf(nName+15, pNew->zFilename, "%s-shm", pDbFd->zPath);
51536 sqlite3FileSuffix3(pDbFd->zPath, pNew->zFilename);
51541 p->bReadonly = sqlite3_uri_boolean(pDbFd->zPath, "readonly_shm", 0);
51824 rc = winLogError(rc, osGetLastError(), "winShmMap1", pDbFd->zPath);
51837 rc = winLogError(rc, osGetLastError(), "winShmMap2", pDbFd->zPath);
51891 "winShmMap3", pDbFd->zPath);
51942 "winUnmapfile1", pFile->zPath);
51953 "winUnmapfile2", pFile->zPath);
52030 "winMapfile1", pFd->zPath);
52048 "winMapfile2", pFd->zPath);
52826 pFile->zPath = zName;
53147 const char *zPath, /* Input path */
53151 int nPath = sqlite3Strlen30(zPath);
53153 if( zPath[0]!='/' ){
53155 return winLogError(SQLITE_CANTOPEN_BKPT, (DWORD)osErrno, "getcwd", zPath);
53166 sqlite3_snprintf(nOut-iOff, &zOut[iOff], "%s", zPath);
54442 static int memdbDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
54455 const char *zPath,
54460 UNUSED_PARAMETER(zPath);
54473 const char *zPath,
54478 sqlite3_snprintf(nOut, zOut, "%s", zPath);
54485 static void *memdbDlOpen(sqlite3_vfs *pVfs, const char *zPath){
54486 return ORIGVFS(pVfs)->xDlOpen(ORIGVFS(pVfs), zPath);
122199 char *zPath = 0;
122286 rc = sqlite3ParseUri(db->pVfs->zName, zFile, &flags, &pVfs, &zPath, &zErr);
122301 rc = sqlite3BtreeOpen(pVfs, zPath, db, &pNew->pBt, 0, flags);
122334 sqlite3_free_filename( zPath );
210792 const char *zPath, /* The path to search */
210799 if( zPath[0]==0 ){
210819 if( zPath[0]=='.' ){
210822 zPath++;
210823 if( zPath[0]=='"' ){
210824 zKey = zPath + 1;
210825 for(i=1; zPath[i] && zPath[i]!='"'; i++){
210826 if( zPath[i]=='\\' && zPath[i+1]!=0 ) i++;
210829 if( zPath[i] ){
210837 zKey = zPath;
210838 for(i=0; zPath[i] && zPath[i]!='.' && zPath[i]!='['; i++){}
210865 rc = jsonLookupStep(pParse, v, &zPath[i], j);
210886 rc = jsonCreateEditSubstructure(pParse, &v, &zPath[i]);
210908 }else if( zPath[0]=='[' ){
210914 while( sqlite3Isdigit(zPath[i]) ){
210915 k = k*10 + zPath[i] - '0';
210918 if( i<2 || zPath[i]!=']' ){
210919 if( zPath[1]=='#' ){
210922 if( zPath[2]=='-' && sqlite3Isdigit(zPath[3]) ){
210926 nn = nn*10 + zPath[i] - '0';
210928 }while( sqlite3Isdigit(zPath[i]) );
210932 if( zPath[i]!=']' ){
210943 rc = jsonLookupStep(pParse, j, &zPath[i+1], 0);
210958 rc = jsonCreateEditSubstructure(pParse, &v, &zPath[i+1]);
211255 const char *zPath /* The path with the problem */
211257 char *zMsg = sqlite3_mprintf("bad JSON path: %Q", zPath);
211284 const char *zPath = 0;
211295 zPath = (const char*)sqlite3_value_text(argv[i]);
211296 if( zPath==0 ){
211301 if( zPath[0]!='$' ) goto jsonInsertIntoBlob_patherror;
211307 if( zPath[1]==0 ){
211317 rc = jsonLookupStep(p, 0, zPath+1, 0);
211332 jsonBadPathError(ctx, zPath);
211764 const char *zPath = (const char*)sqlite3_value_text(argv[1]);
211765 if( zPath==0 ){
211769 i = jsonLookupStep(p, 0, zPath[0]=='$' ? zPath+1 : "@", 0);
211774 jsonBadPathError(ctx, zPath);
211838 const char *zPath = (const char*)sqlite3_value_text(argv[i]);
211841 if( zPath==0 ) goto json_extract_error;
211842 nPath = sqlite3Strlen30(zPath);
211843 if( zPath[0]=='$' ){
211844 j = jsonLookupStep(p, 0, zPath+1, 0);
211862 if( zPath[0]=='-' ) jsonAppendRawNZ(&jx,"#",1);
211863 jsonAppendRaw(&jx, zPath, nPath);
211865 }else if( jsonAllAlphanum(zPath, nPath) ){
211867 jsonAppendRaw(&jx, zPath, nPath);
211868 }else if( zPath[0]=='[' && nPath>=3 && zPath[nPath-1]==']' ){
211869 jsonAppendRaw(&jx, zPath, nPath);
211872 jsonAppendRaw(&jx, zPath, nPath);
211879 jsonBadPathError(ctx, zPath);
211914 jsonBadPathError(ctx, zPath);
212217 const char *zPath = 0; /* Path of element to be removed */
212225 zPath = (const char*)sqlite3_value_text(argv[i]);
212226 if( zPath==0 ){
212229 if( zPath[0]!='$' ){
212232 if( zPath[1]==0 ){
212238 rc = jsonLookupStep(p, 0, zPath+1, 0);
212243 jsonBadPathError(ctx, zPath);
212255 jsonBadPathError(ctx, zPath);
212324 const char *zPath = 0;
212330 zPath = (const char*)sqlite3_value_text(argv[1]);
212331 if( zPath==0 ) goto json_type_done;
212332 if( zPath[0]!='$' ){
212333 jsonBadPathError(ctx, zPath);
212336 i = jsonLookupStep(p, 0, zPath+1, 0);
212341 jsonBadPathError(ctx, zPath);
226467 static int rbuVfsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
226469 return pRealVfs->xDelete(pRealVfs, zPath, dirSync);
226478 const char *zPath,
226486 rc = pRealVfs->xAccess(pRealVfs, zPath, flags, pResOut);
226503 rbu_file *pDb = rbuFindMaindb(pRbuVfs, zPath, 1);
226526 const char *zPath,
226531 return pRealVfs->xFullPathname(pRealVfs, zPath, nOut, zOut);
226538 static void *rbuVfsDlOpen(sqlite3_vfs *pVfs, const char *zPath){
226540 return pRealVfs->xDlOpen(pRealVfs, zPath);
226829 char *zPath; /* Path to this page */
226854 char *zPath; /* Value of 'path' column */
227045 sqlite3_free(p->zPath);
227063 sqlite3_free(pCsr->zPath);
227064 pCsr->zPath = 0;
227302 sqlite3_free(pCsr->zPath);
227303 pCsr->zPath = 0;
227322 pCsr->aPage[0].zPath = z = sqlite3_mprintf("/");
227357 pCsr->zPath = z = sqlite3_mprintf(
227358 "%s%.3x+%.6x", p->zPath, p->iCell, iOvfl
227393 p[1].zPath = z = sqlite3_mprintf("%s%.3x/", p->zPath, p->iCell);
227430 pCsr->zPath = z = sqlite3_mprintf("%s", p->zPath);
227539 sqlite3_result_text(ctx, pCsr->zPath, -1, SQLITE_TRANSIENT);