Lines Matching refs:zPath
8068 static int fileio_chmod(const char *zPath, int pmode){ in fileio_chmod() argument
8069 sqlite3_int64 sz = strlen(zPath); in fileio_chmod()
8073 sz = MultiByteToWideChar(CP_UTF8, 0, zPath, sz, b1, sz); in fileio_chmod()
8085 static int fileio_mkdir(const char *zPath){ in fileio_mkdir() argument
8086 sqlite3_int64 sz = strlen(zPath); in fileio_mkdir()
8090 sz = MultiByteToWideChar(CP_UTF8, 0, zPath, sz, b1, sz); in fileio_mkdir()
8227 const char *zPath, in statTimesToUtc() argument
8234 zUnicodeName = sqlite3_win32_utf8_to_unicode(zPath); in statTimesToUtc()
8255 const char *zPath, in fileStat() argument
8259 sqlite3_int64 sz = strlen(zPath); in fileStat()
8263 sz = MultiByteToWideChar(CP_UTF8, 0, zPath, sz, b1, sz); in fileStat()
8266 if( rc==0 ) statTimesToUtc(zPath, pStatBuf); in fileStat()
8269 return stat(zPath, pStatBuf); in fileStat()
8279 const char *zPath, in fileLinkStat() argument
8283 return fileStat(zPath, pStatBuf); in fileLinkStat()
8285 return lstat(zPath, pStatBuf); in fileLinkStat()
8566 char *zPath; /* Path to current entry */ member
8635 sqlite3_free(pCur->zPath); in fsdirResetCursor()
8638 pCur->zPath = 0; in fsdirResetCursor()
8693 pLvl->zDir = pCur->zPath; in fsdirNext()
8694 pCur->zPath = 0; in fsdirNext()
8697 fsdirSetErrmsg(pCur, "cannot read directory: %s", pCur->zPath); in fsdirNext()
8710 sqlite3_free(pCur->zPath); in fsdirNext()
8711 pCur->zPath = sqlite3_mprintf("%s/%s", pLvl->zDir, pEntry->d_name); in fsdirNext()
8712 if( pCur->zPath==0 ) return SQLITE_NOMEM; in fsdirNext()
8713 if( fileLinkStat(pCur->zPath, &pCur->sStat) ){ in fsdirNext()
8714 fsdirSetErrmsg(pCur, "cannot stat file: %s", pCur->zPath); in fsdirNext()
8727 sqlite3_free(pCur->zPath); in fsdirNext()
8728 pCur->zPath = 0; in fsdirNext()
8744 sqlite3_result_text(ctx, &pCur->zPath[pCur->nBase], -1, SQLITE_TRANSIENT); in fsdirColumn()
8768 n = readlink(pCur->zPath, aBuf, nBuf); in fsdirColumn()
8783 readFileContents(ctx, pCur->zPath); in fsdirColumn()
8813 return (pCur->zPath==0); in fsdirEof()
8848 pCur->zPath = sqlite3_mprintf("%s/%s", pCur->zBase, zDir); in fsdirFilter()
8850 pCur->zPath = sqlite3_mprintf("%s", zDir); in fsdirFilter()
8853 if( pCur->zPath==0 ){ in fsdirFilter()
8856 if( fileLinkStat(pCur->zPath, &pCur->sStat) ){ in fsdirFilter()
8857 fsdirSetErrmsg(pCur, "cannot stat file: %s", pCur->zPath); in fsdirFilter()
10102 static int apndDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in apndDelete() argument
10103 return ORIGVFS(pVfs)->xDelete(ORIGVFS(pVfs), zPath, dirSync); in apndDelete()
10111 const char *zPath, in apndAccess() argument
10115 return ORIGVFS(pVfs)->xAccess(ORIGVFS(pVfs), zPath, flags, pResOut); in apndAccess()
10119 const char *zPath, in apndFullPathname() argument
10123 return ORIGVFS(pVfs)->xFullPathname(ORIGVFS(pVfs),zPath,nOut,zOut); in apndFullPathname()
10125 static void *apndDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in apndDlOpen() argument
10126 return ORIGVFS(pVfs)->xDlOpen(ORIGVFS(pVfs), zPath); in apndDlOpen()
11563 static ZipfileEntry *zipfileNewEntry(const char *zPath){ in zipfileNewEntry() argument
11568 pNew->cds.zFile = sqlite3_mprintf("%s", zPath); in zipfileNewEntry()
11789 const char *zPath = 0; /* Path for new entry */ in zipfileUpdate() local
11878 zPath = (const char*)sqlite3_value_text(apVal[2]); in zipfileUpdate()
11879 if( zPath==0 ) zPath = ""; in zipfileUpdate()
11880 nPath = (int)strlen(zPath); in zipfileUpdate()
11889 if( nPath<=0 || zPath[nPath-1]!='/' ){ in zipfileUpdate()
11890 zFree = sqlite3_mprintf("%s/", zPath); in zipfileUpdate()
11891 zPath = (const char*)zFree; in zipfileUpdate()
11896 nPath = (int)strlen(zPath); in zipfileUpdate()
11906 if( zipfileComparePath(p->cds.zFile, zPath, nPath)==0 ){ in zipfileUpdate()
11916 zipfileTableErr(pTab, "duplicate name: \"%s\"", zPath); in zipfileUpdate()
11928 pNew = zipfileNewEntry(zPath); in zipfileUpdate()
17146 static int vfstraceDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in vfstraceDelete() argument
17152 pInfo->zVfsName, zPath, dirSync); in vfstraceDelete()
17153 rc = pRoot->xDelete(pRoot, zPath, dirSync); in vfstraceDelete()
17164 const char *zPath, in vfstraceAccess() argument
17173 pInfo->zVfsName, zPath, flags); in vfstraceAccess()
17174 rc = pRoot->xAccess(pRoot, zPath, flags, pResOut); in vfstraceAccess()
17187 const char *zPath, in vfstraceFullPathname() argument
17196 pInfo->zVfsName, zPath); in vfstraceFullPathname()
17197 rc = pRoot->xFullPathname(pRoot, zPath, nOut, zOut); in vfstraceFullPathname()
17206 static void *vfstraceDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in vfstraceDlOpen() argument
17210 vfstrace_printf(pInfo, "%s.xDlOpen(\"%s\")\n", pInfo->zVfsName, zPath); in vfstraceDlOpen()
17211 return pRoot->xDlOpen(pRoot, zPath); in vfstraceDlOpen()
32922 char *zDrive, *zPath; in find_home_dir() local
32925 zPath = getenv("HOMEPATH"); in find_home_dir()
32926 if( zDrive && zPath ){ in find_home_dir()
32927 n = strlen30(zDrive) + strlen30(zPath) + 1; in find_home_dir()
32930 sqlite3_snprintf(n, home_dir, "%s%s", zDrive, zPath); in find_home_dir()