Lines Matching refs:zPath

25975   const char *zPath,  in sqlite3OsOpen()  argument
25986 assert( zPath || (flags & SQLITE_OPEN_EXCLUSIVE) ); in sqlite3OsOpen()
25987 rc = pVfs->xOpen(pVfs, zPath, pFile, flags & 0x1087f7f, pFlagsOut); in sqlite3OsOpen()
25991 SQLITE_PRIVATE int sqlite3OsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in sqlite3OsDelete() argument
25994 return pVfs->xDelete!=0 ? pVfs->xDelete(pVfs, zPath, dirSync) : SQLITE_OK; in sqlite3OsDelete()
25998 const char *zPath, in sqlite3OsAccess() argument
26003 return pVfs->xAccess(pVfs, zPath, flags, pResOut); in sqlite3OsAccess()
26007 const char *zPath, in sqlite3OsFullPathname() argument
26013 return pVfs->xFullPathname(pVfs, zPath, nPathOut, zPathOut); in sqlite3OsFullPathname()
26016 SQLITE_PRIVATE void *sqlite3OsDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in sqlite3OsDlOpen() argument
26017 assert( zPath!=0 ); in sqlite3OsDlOpen()
26018 assert( strlen(zPath)<=SQLITE_MAX_PATHLEN ); /* tag-20210611-1 */ in sqlite3OsDlOpen()
26019 return pVfs->xDlOpen(pVfs, zPath); in sqlite3OsDlOpen()
37892 static int kvvfsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
37893 if( strcmp(zPath, "local-journal")==0 ){
37896 if( strcmp(zPath, "session-journal")==0 ){
37908 const char *zPath,
37912 SQLITE_KV_LOG(("xAccess(\"%s\")\n", zPath));
37913 if( strcmp(zPath, "local-journal")==0 ){
37916 if( strcmp(zPath, "session-journal")==0 ){
37919 if( strcmp(zPath, "local")==0 ){
37922 if( strcmp(zPath, "session")==0 ){
37939 const char *zPath,
37945 zPath = "local";
37947 nPath = strlen(zPath);
37948 SQLITE_KV_LOG(("xFullPathname(\"%s\")\n", zPath));
37950 memcpy(zOut, zPath, nPath);
37958 static void *kvvfsDlOpen(sqlite3_vfs *pVfs, const char *zPath){
38285 const char *zPath; /* Name of the file */
39290 const char *zPath, /* File path associated with error */
39330 if( zPath==0 ) zPath = "";
39333 iLine, iErrno, zFunc, zPath, zErr
39355 pFile ? pFile->zPath : 0, lineno);
39524 (osStat(pFile->zPath, &buf)!=0
39548 sqlite3_log(SQLITE_WARNING, "cannot fstat db file %s", pFile->zPath);
39552 sqlite3_log(SQLITE_WARNING, "file unlinked while open: %s", pFile->zPath);
39556 sqlite3_log(SQLITE_WARNING, "multiple links to file: %s", pFile->zPath);
39560 sqlite3_log(SQLITE_WARNING, "file renamed while open: %s", pFile->zPath);
40175 osUnlink(pFile->zPath);
40176 sqlite3_free(*(char**)&pFile->zPath);
40177 pFile->zPath = 0;
41808 return unixLogError(SQLITE_IOERR_FSYNC, "full_fsync", pFile->zPath);
41817 OSTRACE(("DIRSYNC %s (have_fullfsync=%d fullsync=%d)\n", pFile->zPath,
41819 rc = osOpenDirectory(pFile->zPath, &dirfd);
41853 return unixLogError(SQLITE_IOERR_TRUNCATE, "ftruncate", pFile->zPath);
41974 return unixLogError(SQLITE_IOERR_TRUNCATE, "ftruncate", pFile->zPath);
42715 const char *zBasePath = pDbFd->zPath;
42745 sqlite3FileSuffix3(pDbFd->zPath, zShm);
42771 if( 0==sqlite3_uri_boolean(pDbFd->zPath, "readonly_shm", 0) ){
43390 unixLogError(SQLITE_OK, zErr, pFd->zPath);
43839 pNew->zPath = zFilename;
44099 static UnixUnusedFd *findReusableFd(const char *zPath, int flags){
44120 if( inodeList!=0 && 0==osStat(zPath, &sStat) ){
44189 const char *zPath, /* Path of file (possibly) being created */
44221 nDb = sqlite3Strlen30(zPath) - 1;
44222 while( nDb>0 && zPath[nDb]!='.' ){
44223 if( zPath[nDb]=='-' ){
44224 memcpy(zDb, zPath, nDb);
44238 const char *z = sqlite3_uri_parameter(zPath, "modeof");
44270 const char *zPath, /* Pathname of file to be opened */
44309 const char *zName = zPath;
44458 zPath = zName;
44460 zPath = sqlite3_mprintf("%s", zName);
44461 if( zPath==0 ){
44501 if( isAutoProxy && (zPath!=NULL) && (!noLock) && pVfs->xOpen ){
44513 rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags);
44530 assert( zPath==0 || zPath[0]=='/'
44533 rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags);
44549 const char *zPath, /* Name of file to be deleted */
44555 if( osUnlink(zPath)==(-1) ){
44558 || osAccess(zPath,0)!=0
44563 rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
44570 rc = osOpenDirectory(zPath, &fd);
44573 rc = unixLogError(SQLITE_IOERR_DIR_FSYNC, "fsync", zPath);
44597 const char *zPath, /* Path of the file to examine */
44611 *pResOut = 0==osStat(zPath, &buf) &&
44614 *pResOut = osAccess(zPath, W_OK|R_OK)==0;
44700 const char *zPath /* Path to append to pPath. Is zero-terminated */
44705 while( zPath[i] && zPath[i]!='/' ){ i++; }
44707 appendOnePathElement(pPath, &zPath[j], i-j);
44710 }while( zPath[i++] );
44724 const char *zPath, /* Possibly relative input path */
44735 if( zPath[0]!='/' ){
44738 return unixLogError(SQLITE_CANTOPEN_BKPT, "getcwd", zPath);
44742 appendAllPathElements(&path, zPath);
46574 const char *zPath; /* Full pathname of this file */
48389 const char *zPath, /* File path associated with error */
48398 if( zPath==0 ) zPath = "";
48403 iLine, lastErrno, zFunc, zPath, zMsg
48916 "winSeekFile", pFile->zPath);
48937 "winSeekFile", pFile->zPath);
49012 "winClose", pFile->zPath);
49080 "winRead", pFile->zPath);
49192 "winWrite1", pFile->zPath);
49197 "winWrite2", pFile->zPath);
49263 "winTruncate1", pFile->zPath);
49268 "winTruncate2", pFile->zPath);
49360 "winSync1", pFile->zPath);
49375 "winSync2", pFile->zPath);
49401 "winFileSize", pFile->zPath);
49416 "winFileSize", pFile->zPath);
49511 "winUnlockReadLock", pFile->zPath);
49737 "winUnlock", pFile->zPath);
50235 nName = sqlite3Strlen30(pDbFd->zPath);
50242 sqlite3_snprintf(nName+15, pNew->zFilename, "%s-shm", pDbFd->zPath);
50243 sqlite3FileSuffix3(pDbFd->zPath, pNew->zFilename);
50275 if( 0==sqlite3_uri_boolean(pDbFd->zPath, "readonly_shm", 0) ){
50556 "winShmMap1", pDbFd->zPath);
50571 "winShmMap2", pDbFd->zPath);
50630 "winShmMap3", pDbFd->zPath);
50679 "winUnmapfile1", pFile->zPath);
50690 "winUnmapfile2", pFile->zPath);
50767 "winMapfile1", pFd->zPath);
50785 "winMapfile2", pFd->zPath);
51621 pFile->zPath = zName;
53142 static int memdbDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
53155 const char *zPath,
53160 UNUSED_PARAMETER(zPath);
53173 const char *zPath,
53178 sqlite3_snprintf(nOut, zOut, "%s", zPath);
53185 static void *memdbDlOpen(sqlite3_vfs *pVfs, const char *zPath){
53186 return ORIGVFS(pVfs)->xDlOpen(ORIGVFS(pVfs), zPath);
119810 char *zPath = 0;
119897 rc = sqlite3ParseUri(db->pVfs->zName, zFile, &flags, &pVfs, &zPath, &zErr);
119906 rc = sqlite3BtreeOpen(pVfs, zPath, db, &pNew->pBt, 0, flags);
119939 sqlite3_free_filename( zPath );
205907 const char *zPath, /* The path to search */
205914 if( zPath[0]==0 ){
205934 if( zPath[0]=='.' ){
205937 zPath++;
205938 if( zPath[0]=='"' ){
205939 zKey = zPath + 1;
205940 for(i=1; zPath[i] && zPath[i]!='"'; i++){}
205942 if( zPath[i] ){
205950 zKey = zPath;
205951 for(i=0; zPath[i] && zPath[i]!='.' && zPath[i]!='['; i++){}
205978 rc = jsonLookupStep(pParse, v, &zPath[i], j);
205999 rc = jsonCreateEditSubstructure(pParse, &v, &zPath[i]);
206021 }else if( zPath[0]=='[' ){
206027 while( sqlite3Isdigit(zPath[i]) ){
206028 k = k*10 + zPath[i] - '0';
206031 if( i<2 || zPath[i]!=']' ){
206032 if( zPath[1]=='#' ){
206035 if( zPath[2]=='-' && sqlite3Isdigit(zPath[3]) ){
206039 nn = nn*10 + zPath[i] - '0';
206041 }while( sqlite3Isdigit(zPath[i]) );
206045 if( zPath[i]!=']' ){
206056 rc = jsonLookupStep(pParse, j, &zPath[i+1], 0);
206071 rc = jsonCreateEditSubstructure(pParse, &v, &zPath[i+1]);
206371 const char *zPath /* The path with the problem */
206373 char *zMsg = sqlite3_mprintf("bad JSON path: %Q", zPath);
206400 const char *zPath = 0;
206411 zPath = (const char*)sqlite3_value_text(argv[i]);
206412 if( zPath==0 ){
206417 if( zPath[0]!='$' ) goto jsonInsertIntoBlob_patherror;
206423 if( zPath[1]==0 ){
206433 rc = jsonLookupStep(p, 0, zPath+1, 0);
206448 jsonBadPathError(ctx, zPath);
206859 const char *zPath = (const char*)sqlite3_value_text(argv[1]);
206860 if( zPath==0 ){
206864 i = jsonLookupStep(p, 0, zPath[0]=='$' ? zPath+1 : "@", 0);
206869 jsonBadPathError(ctx, zPath);
206940 const char *zPath = (const char*)sqlite3_value_text(argv[i]);
206943 if( zPath==0 ) goto json_extract_error;
206944 nPath = sqlite3Strlen30(zPath);
206945 if( zPath[0]=='$' ){
206946 j = jsonLookupStep(p, 0, zPath+1, 0);
206957 if( jsonAllDigits(zPath, nPath) ){
206959 jsonAppendRaw(&jx, zPath, nPath);
206961 }else if( jsonAllAlphanum(zPath, nPath) ){
206963 jsonAppendRaw(&jx, zPath, nPath);
206964 }else if( zPath[0]=='[' && nPath>=3 && zPath[nPath-1]==']' ){
206965 jsonAppendRaw(&jx, zPath, nPath);
206968 jsonAppendRaw(&jx, zPath, nPath);
206975 jsonBadPathError(ctx, zPath);
207010 jsonBadPathError(ctx, zPath);
207313 const char *zPath = 0; /* Path of element to be removed */
207321 zPath = (const char*)sqlite3_value_text(argv[i]);
207322 if( zPath==0 ){
207325 if( zPath[0]!='$' ){
207328 if( zPath[1]==0 ){
207334 rc = jsonLookupStep(p, 0, zPath+1, 0);
207339 jsonBadPathError(ctx, zPath);
207351 jsonBadPathError(ctx, zPath);
207420 const char *zPath = 0;
207426 zPath = (const char*)sqlite3_value_text(argv[1]);
207427 if( zPath==0 ) goto json_type_done;
207428 if( zPath[0]!='$' ){
207429 jsonBadPathError(ctx, zPath);
207432 i = jsonLookupStep(p, 0, zPath+1, 0);
207437 jsonBadPathError(ctx, zPath);
221443 static int rbuVfsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
221445 return pRealVfs->xDelete(pRealVfs, zPath, dirSync);
221454 const char *zPath,
221462 rc = pRealVfs->xAccess(pRealVfs, zPath, flags, pResOut);
221479 rbu_file *pDb = rbuFindMaindb(pRbuVfs, zPath, 1);
221502 const char *zPath,
221507 return pRealVfs->xFullPathname(pRealVfs, zPath, nOut, zOut);
221514 static void *rbuVfsDlOpen(sqlite3_vfs *pVfs, const char *zPath){
221516 return pRealVfs->xDlOpen(pRealVfs, zPath);
221802 char *zPath; /* Path to this page */
221827 char *zPath; /* Value of 'path' column */
222017 sqlite3_free(p->zPath);
222035 sqlite3_free(pCsr->zPath);
222036 pCsr->zPath = 0;
222274 sqlite3_free(pCsr->zPath);
222275 pCsr->zPath = 0;
222294 pCsr->aPage[0].zPath = z = sqlite3_mprintf("/");
222329 pCsr->zPath = z = sqlite3_mprintf(
222330 "%s%.3x+%.6x", p->zPath, p->iCell, iOvfl
222365 p[1].zPath = z = sqlite3_mprintf("%s%.3x/", p->zPath, p->iCell);
222402 pCsr->zPath = z = sqlite3_mprintf("%s", p->zPath);
222511 sqlite3_result_text(ctx, pCsr->zPath, -1, SQLITE_TRANSIENT);