Lines Matching refs:zPath

26254   const char *zPath,  in sqlite3OsOpen()  argument
26265 assert( zPath || (flags & SQLITE_OPEN_EXCLUSIVE) ); in sqlite3OsOpen()
26266 rc = pVfs->xOpen(pVfs, zPath, pFile, flags & 0x1087f7f, pFlagsOut); in sqlite3OsOpen()
26270 SQLITE_PRIVATE int sqlite3OsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in sqlite3OsDelete() argument
26273 return pVfs->xDelete!=0 ? pVfs->xDelete(pVfs, zPath, dirSync) : SQLITE_OK; in sqlite3OsDelete()
26277 const char *zPath, in sqlite3OsAccess() argument
26282 return pVfs->xAccess(pVfs, zPath, flags, pResOut); in sqlite3OsAccess()
26286 const char *zPath, in sqlite3OsFullPathname() argument
26292 return pVfs->xFullPathname(pVfs, zPath, nPathOut, zPathOut); in sqlite3OsFullPathname()
26295 SQLITE_PRIVATE void *sqlite3OsDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in sqlite3OsDlOpen() argument
26296 assert( zPath!=0 ); in sqlite3OsDlOpen()
26297 assert( strlen(zPath)<=SQLITE_MAX_PATHLEN ); /* tag-20210611-1 */ in sqlite3OsDlOpen()
26298 return pVfs->xDlOpen(pVfs, zPath); in sqlite3OsDlOpen()
38232 static int kvvfsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
38233 if( strcmp(zPath, "local-journal")==0 ){
38236 if( strcmp(zPath, "session-journal")==0 ){
38248 const char *zPath,
38252 SQLITE_KV_LOG(("xAccess(\"%s\")\n", zPath));
38253 if( strcmp(zPath, "local-journal")==0 ){
38256 if( strcmp(zPath, "session-journal")==0 ){
38259 if( strcmp(zPath, "local")==0 ){
38262 if( strcmp(zPath, "session")==0 ){
38279 const char *zPath,
38285 zPath = "local";
38287 nPath = strlen(zPath);
38288 SQLITE_KV_LOG(("xFullPathname(\"%s\")\n", zPath));
38290 memcpy(zOut, zPath, nPath);
38298 static void *kvvfsDlOpen(sqlite3_vfs *pVfs, const char *zPath){
38625 const char *zPath; /* Name of the file */
39630 const char *zPath, /* File path associated with error */
39674 if( zPath==0 ) zPath = "";
39677 iLine, iErrno, zFunc, zPath, zErr
39699 pFile ? pFile->zPath : 0, lineno);
39868 (osStat(pFile->zPath, &buf)!=0
39892 sqlite3_log(SQLITE_WARNING, "cannot fstat db file %s", pFile->zPath);
39896 sqlite3_log(SQLITE_WARNING, "file unlinked while open: %s", pFile->zPath);
39900 sqlite3_log(SQLITE_WARNING, "multiple links to file: %s", pFile->zPath);
39904 sqlite3_log(SQLITE_WARNING, "file renamed while open: %s", pFile->zPath);
40519 osUnlink(pFile->zPath);
40520 sqlite3_free(*(char**)&pFile->zPath);
40521 pFile->zPath = 0;
42152 return unixLogError(SQLITE_IOERR_FSYNC, "full_fsync", pFile->zPath);
42161 OSTRACE(("DIRSYNC %s (have_fullfsync=%d fullsync=%d)\n", pFile->zPath,
42163 rc = osOpenDirectory(pFile->zPath, &dirfd);
42197 return unixLogError(SQLITE_IOERR_TRUNCATE, "ftruncate", pFile->zPath);
42318 return unixLogError(SQLITE_IOERR_TRUNCATE, "ftruncate", pFile->zPath);
43059 const char *zBasePath = pDbFd->zPath;
43089 sqlite3FileSuffix3(pDbFd->zPath, zShm);
43115 if( 0==sqlite3_uri_boolean(pDbFd->zPath, "readonly_shm", 0) ){
43734 unixLogError(SQLITE_OK, zErr, pFd->zPath);
44183 pNew->zPath = zFilename;
44443 static UnixUnusedFd *findReusableFd(const char *zPath, int flags){
44464 if( inodeList!=0 && 0==osStat(zPath, &sStat) ){
44533 const char *zPath, /* Path of file (possibly) being created */
44565 nDb = sqlite3Strlen30(zPath) - 1;
44566 while( nDb>0 && zPath[nDb]!='.' ){
44567 if( zPath[nDb]=='-' ){
44568 memcpy(zDb, zPath, nDb);
44582 const char *z = sqlite3_uri_parameter(zPath, "modeof");
44614 const char *zPath, /* Pathname of file to be opened */
44653 const char *zName = zPath;
44809 zPath = zName;
44811 zPath = sqlite3_mprintf("%s", zName);
44812 if( zPath==0 ){
44852 if( isAutoProxy && (zPath!=NULL) && (!noLock) && pVfs->xOpen ){
44864 rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags);
44881 assert( zPath==0 || zPath[0]=='/'
44884 rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags);
44900 const char *zPath, /* Name of file to be deleted */
44906 if( osUnlink(zPath)==(-1) ){
44909 || osAccess(zPath,0)!=0
44914 rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
44921 rc = osOpenDirectory(zPath, &fd);
44924 rc = unixLogError(SQLITE_IOERR_DIR_FSYNC, "fsync", zPath);
44948 const char *zPath, /* Path of the file to examine */
44962 *pResOut = 0==osStat(zPath, &buf) &&
44965 *pResOut = osAccess(zPath, W_OK|R_OK)==0;
45051 const char *zPath /* Path to append to pPath. Is zero-terminated */
45056 while( zPath[i] && zPath[i]!='/' ){ i++; }
45058 appendOnePathElement(pPath, &zPath[j], i-j);
45061 }while( zPath[i++] );
45075 const char *zPath, /* Possibly relative input path */
45086 if( zPath[0]!='/' ){
45089 return unixLogError(SQLITE_CANTOPEN_BKPT, "getcwd", zPath);
45093 appendAllPathElements(&path, zPath);
46925 const char *zPath; /* Full pathname of this file */
48740 const char *zPath, /* File path associated with error */
48749 if( zPath==0 ) zPath = "";
48754 iLine, lastErrno, zFunc, zPath, zMsg
49267 "winSeekFile", pFile->zPath);
49288 "winSeekFile", pFile->zPath);
49363 "winClose", pFile->zPath);
49431 "winRead", pFile->zPath);
49543 "winWrite1", pFile->zPath);
49548 "winWrite2", pFile->zPath);
49614 "winTruncate1", pFile->zPath);
49619 "winTruncate2", pFile->zPath);
49711 "winSync1", pFile->zPath);
49726 "winSync2", pFile->zPath);
49752 "winFileSize", pFile->zPath);
49767 "winFileSize", pFile->zPath);
49862 "winUnlockReadLock", pFile->zPath);
50088 "winUnlock", pFile->zPath);
50586 nName = sqlite3Strlen30(pDbFd->zPath);
50593 sqlite3_snprintf(nName+15, pNew->zFilename, "%s-shm", pDbFd->zPath);
50594 sqlite3FileSuffix3(pDbFd->zPath, pNew->zFilename);
50626 if( 0==sqlite3_uri_boolean(pDbFd->zPath, "readonly_shm", 0) ){
50907 "winShmMap1", pDbFd->zPath);
50922 "winShmMap2", pDbFd->zPath);
50981 "winShmMap3", pDbFd->zPath);
51030 "winUnmapfile1", pFile->zPath);
51041 "winUnmapfile2", pFile->zPath);
51118 "winMapfile1", pFd->zPath);
51136 "winMapfile2", pFd->zPath);
51972 pFile->zPath = zName;
53493 static int memdbDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
53506 const char *zPath,
53511 UNUSED_PARAMETER(zPath);
53524 const char *zPath,
53529 sqlite3_snprintf(nOut, zOut, "%s", zPath);
53536 static void *memdbDlOpen(sqlite3_vfs *pVfs, const char *zPath){
53537 return ORIGVFS(pVfs)->xDlOpen(ORIGVFS(pVfs), zPath);
120560 char *zPath = 0;
120647 rc = sqlite3ParseUri(db->pVfs->zName, zFile, &flags, &pVfs, &zPath, &zErr);
120656 rc = sqlite3BtreeOpen(pVfs, zPath, db, &pNew->pBt, 0, flags);
120689 sqlite3_free_filename( zPath );
207669 const char *zPath, /* The path to search */
207676 if( zPath[0]==0 ){
207696 if( zPath[0]=='.' ){
207699 zPath++;
207700 if( zPath[0]=='"' ){
207701 zKey = zPath + 1;
207702 for(i=1; zPath[i] && zPath[i]!='"'; i++){}
207704 if( zPath[i] ){
207712 zKey = zPath;
207713 for(i=0; zPath[i] && zPath[i]!='.' && zPath[i]!='['; i++){}
207740 rc = jsonLookupStep(pParse, v, &zPath[i], j);
207761 rc = jsonCreateEditSubstructure(pParse, &v, &zPath[i]);
207783 }else if( zPath[0]=='[' ){
207789 while( sqlite3Isdigit(zPath[i]) ){
207790 k = k*10 + zPath[i] - '0';
207793 if( i<2 || zPath[i]!=']' ){
207794 if( zPath[1]=='#' ){
207797 if( zPath[2]=='-' && sqlite3Isdigit(zPath[3]) ){
207801 nn = nn*10 + zPath[i] - '0';
207803 }while( sqlite3Isdigit(zPath[i]) );
207807 if( zPath[i]!=']' ){
207818 rc = jsonLookupStep(pParse, j, &zPath[i+1], 0);
207833 rc = jsonCreateEditSubstructure(pParse, &v, &zPath[i+1]);
208133 const char *zPath /* The path with the problem */
208135 char *zMsg = sqlite3_mprintf("bad JSON path: %Q", zPath);
208162 const char *zPath = 0;
208173 zPath = (const char*)sqlite3_value_text(argv[i]);
208174 if( zPath==0 ){
208179 if( zPath[0]!='$' ) goto jsonInsertIntoBlob_patherror;
208185 if( zPath[1]==0 ){
208195 rc = jsonLookupStep(p, 0, zPath+1, 0);
208210 jsonBadPathError(ctx, zPath);
208623 const char *zPath = (const char*)sqlite3_value_text(argv[1]);
208624 if( zPath==0 ){
208628 i = jsonLookupStep(p, 0, zPath[0]=='$' ? zPath+1 : "@", 0);
208633 jsonBadPathError(ctx, zPath);
208697 const char *zPath = (const char*)sqlite3_value_text(argv[i]);
208700 if( zPath==0 ) goto json_extract_error;
208701 nPath = sqlite3Strlen30(zPath);
208702 if( zPath[0]=='$' ){
208703 j = jsonLookupStep(p, 0, zPath+1, 0);
208716 jsonAppendRaw(&jx, zPath, nPath);
208718 }else if( jsonAllAlphanum(zPath, nPath) ){
208720 jsonAppendRaw(&jx, zPath, nPath);
208721 }else if( zPath[0]=='[' && nPath>=3 && zPath[nPath-1]==']' ){
208722 jsonAppendRaw(&jx, zPath, nPath);
208725 jsonAppendRaw(&jx, zPath, nPath);
208732 jsonBadPathError(ctx, zPath);
208767 jsonBadPathError(ctx, zPath);
209070 const char *zPath = 0; /* Path of element to be removed */
209078 zPath = (const char*)sqlite3_value_text(argv[i]);
209079 if( zPath==0 ){
209082 if( zPath[0]!='$' ){
209085 if( zPath[1]==0 ){
209091 rc = jsonLookupStep(p, 0, zPath+1, 0);
209096 jsonBadPathError(ctx, zPath);
209108 jsonBadPathError(ctx, zPath);
209177 const char *zPath = 0;
209183 zPath = (const char*)sqlite3_value_text(argv[1]);
209184 if( zPath==0 ) goto json_type_done;
209185 if( zPath[0]!='$' ){
209186 jsonBadPathError(ctx, zPath);
209189 i = jsonLookupStep(p, 0, zPath+1, 0);
209194 jsonBadPathError(ctx, zPath);
223286 static int rbuVfsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
223288 return pRealVfs->xDelete(pRealVfs, zPath, dirSync);
223297 const char *zPath,
223305 rc = pRealVfs->xAccess(pRealVfs, zPath, flags, pResOut);
223322 rbu_file *pDb = rbuFindMaindb(pRbuVfs, zPath, 1);
223345 const char *zPath,
223350 return pRealVfs->xFullPathname(pRealVfs, zPath, nOut, zOut);
223357 static void *rbuVfsDlOpen(sqlite3_vfs *pVfs, const char *zPath){
223359 return pRealVfs->xDlOpen(pRealVfs, zPath);
223645 char *zPath; /* Path to this page */
223670 char *zPath; /* Value of 'path' column */
223860 sqlite3_free(p->zPath);
223878 sqlite3_free(pCsr->zPath);
223879 pCsr->zPath = 0;
224117 sqlite3_free(pCsr->zPath);
224118 pCsr->zPath = 0;
224137 pCsr->aPage[0].zPath = z = sqlite3_mprintf("/");
224172 pCsr->zPath = z = sqlite3_mprintf(
224173 "%s%.3x+%.6x", p->zPath, p->iCell, iOvfl
224208 p[1].zPath = z = sqlite3_mprintf("%s%.3x/", p->zPath, p->iCell);
224245 pCsr->zPath = z = sqlite3_mprintf("%s", p->zPath);
224354 sqlite3_result_text(ctx, pCsr->zPath, -1, SQLITE_TRANSIENT);