Lines Matching refs:zPath
2340 const char *zPath, in statTimesToUtc() argument
2347 zUnicodeName = sqlite3_win32_utf8_to_unicode(zPath); in statTimesToUtc()
2368 const char *zPath, in fileStat() argument
2372 int rc = stat(zPath, pStatBuf); in fileStat()
2373 if( rc==0 ) statTimesToUtc(zPath, pStatBuf); in fileStat()
2376 return stat(zPath, pStatBuf); in fileStat()
2386 const char *zPath, in fileLinkStat() argument
2390 int rc = lstat(zPath, pStatBuf); in fileLinkStat()
2391 if( rc==0 ) statTimesToUtc(zPath, pStatBuf); in fileLinkStat()
2394 return lstat(zPath, pStatBuf); in fileLinkStat()
2666 char *zPath; /* Path to current entry */ member
2735 sqlite3_free(pCur->zPath); in fsdirResetCursor()
2738 pCur->zPath = 0; in fsdirResetCursor()
2793 pLvl->zDir = pCur->zPath; in fsdirNext()
2794 pCur->zPath = 0; in fsdirNext()
2797 fsdirSetErrmsg(pCur, "cannot read directory: %s", pCur->zPath); in fsdirNext()
2810 sqlite3_free(pCur->zPath); in fsdirNext()
2811 pCur->zPath = sqlite3_mprintf("%s/%s", pLvl->zDir, pEntry->d_name); in fsdirNext()
2812 if( pCur->zPath==0 ) return SQLITE_NOMEM; in fsdirNext()
2813 if( fileLinkStat(pCur->zPath, &pCur->sStat) ){ in fsdirNext()
2814 fsdirSetErrmsg(pCur, "cannot stat file: %s", pCur->zPath); in fsdirNext()
2827 sqlite3_free(pCur->zPath); in fsdirNext()
2828 pCur->zPath = 0; in fsdirNext()
2844 sqlite3_result_text(ctx, &pCur->zPath[pCur->nBase], -1, SQLITE_TRANSIENT); in fsdirColumn()
2868 n = readlink(pCur->zPath, aBuf, nBuf); in fsdirColumn()
2883 readFileContents(ctx, pCur->zPath); in fsdirColumn()
2913 return (pCur->zPath==0); in fsdirEof()
2948 pCur->zPath = sqlite3_mprintf("%s/%s", pCur->zBase, zDir); in fsdirFilter()
2950 pCur->zPath = sqlite3_mprintf("%s", zDir); in fsdirFilter()
2953 if( pCur->zPath==0 ){ in fsdirFilter()
2956 if( fileLinkStat(pCur->zPath, &pCur->sStat) ){ in fsdirFilter()
2957 fsdirSetErrmsg(pCur, "cannot stat file: %s", pCur->zPath); in fsdirFilter()
4085 static int apndDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in apndDelete() argument
4086 return ORIGVFS(pVfs)->xDelete(ORIGVFS(pVfs), zPath, dirSync); in apndDelete()
4090 const char *zPath, in apndAccess() argument
4094 return ORIGVFS(pVfs)->xAccess(ORIGVFS(pVfs), zPath, flags, pResOut); in apndAccess()
4098 const char *zPath, in apndFullPathname() argument
4102 return ORIGVFS(pVfs)->xFullPathname(ORIGVFS(pVfs),zPath,nOut,zOut); in apndFullPathname()
4104 static void *apndDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in apndDlOpen() argument
4105 return ORIGVFS(pVfs)->xDlOpen(ORIGVFS(pVfs), zPath); in apndDlOpen()
5711 static ZipfileEntry *zipfileNewEntry(const char *zPath){ in zipfileNewEntry() argument
5716 pNew->cds.zFile = sqlite3_mprintf("%s", zPath); in zipfileNewEntry()
5926 const char *zPath = 0; /* Path for new entry */ in zipfileUpdate() local
6013 zPath = (const char*)sqlite3_value_text(apVal[2]); in zipfileUpdate()
6014 if( zPath==0 ) zPath = ""; in zipfileUpdate()
6015 nPath = (int)strlen(zPath); in zipfileUpdate()
6024 if( nPath<=0 || zPath[nPath-1]!='/' ){ in zipfileUpdate()
6025 zFree = sqlite3_mprintf("%s/", zPath); in zipfileUpdate()
6026 zPath = (const char*)zFree; in zipfileUpdate()
6031 nPath = (int)strlen(zPath); in zipfileUpdate()
6041 if( zipfileComparePath(p->cds.zFile, zPath, nPath)==0 ){ in zipfileUpdate()
6051 zipfileTableErr(pTab, "duplicate name: \"%s\"", zPath); in zipfileUpdate()
6063 pNew = zipfileNewEntry(zPath); in zipfileUpdate()
18835 char *zDrive, *zPath; in find_home_dir() local
18838 zPath = getenv("HOMEPATH"); in find_home_dir()
18839 if( zDrive && zPath ){ in find_home_dir()
18840 n = strlen30(zDrive) + strlen30(zPath) + 1; in find_home_dir()
18843 sqlite3_snprintf(n, home_dir, "%s%s", zDrive, zPath); in find_home_dir()