Searched defs:cchDir (Results 1 - 6 of 6) sorted by relevance

/vbox/src/VBox/Runtime/r3/
H A Ddir2.cpp52 * @param cchDir The length of the directory we're cursing into,
57 static int rtDirRemoveRecursiveSub(char *pszBuf, size_t cchDir, PRTDIRENTRY pDirEntry, PRTFSOBJINFO pObjInfo) argument
59 AssertReturn(RTPATH_IS_SLASH(pszBuf[cchDir - 1]), VERR_INTERNAL_ERROR_4);
77 if (cchDir + pDirEntry->cbName + 1 /* dir slash */ >= RTPATH_MAX)
82 memcpy(&pszBuf[cchDir], pDirEntry->szName, pDirEntry->cbName + 1);
105 size_t cchSubDir = cchDir + pDirEntry->cbName;
/vbox/src/VBox/Runtime/generic/
H A Dcreatetemp-generic.cpp146 size_t cchDir; local
152 RTPathParseSimple(pszTemplate, &cchDir, NULL, NULL);
153 chOld = pszTemplate[cchDir];
154 pszTemplate[cchDir] = '\0';
157 pszTemplate[cchDir] = chOld;
215 size_t cchDir; local
221 RTPathParseSimple(pszTemplate, &cchDir, NULL, NULL);
222 chOld = pszTemplate[cchDir];
223 pszTemplate[cchDir] = '\0';
226 pszTemplate[cchDir]
[all...]
/vbox/src/VBox/Runtime/r0drv/nt/
H A DntBldSymDb.cpp986 * @param cchDir The length of pszDir in pszDir.
989 static RTEXITCODE processDirSub(char *pszDir, size_t cchDir, PRTDIRENTRYEX pDirEntry, int iLogDepth) argument
991 Assert(cchDir > 0); Assert(pszDir[cchDir] == '\0');
994 if (cchDir + 3 >= RTPATH_MAX)
1004 if (!RTPATH_IS_SEP(pszDir[cchDir - 1]))
1006 pszDir[cchDir++] = RTPATH_SLASH;
1007 pszDir[cchDir] = '\0';
1028 if (pDirEntry->cbName + cchDir + 3 >= RTPATH_MAX)
1030 rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "Path too long: '%s' in '%.*s'\n", pDirEntry->szName, cchDir, pszDi
[all...]
/vbox/src/VBox/VMM/VMMR3/
H A DPDMLdr.cpp1059 size_t cchDir = strlen(pszDir); local
1071 size_t cchPath = cchDir + 1 + cchFile + cchDefaultExt + 1;
1074 char *pszRet = (char *)RTMemTmpAlloc(cchDir + 1 + cchFile + cchDefaultExt + 1);
1080 memcpy(pszRet, pszDir, cchDir);
1081 pszRet[cchDir++] = '/'; /* this works everywhere */
1082 memcpy(pszRet + cchDir, pszFile, cchFile + 1);
1084 memcpy(pszRet + cchDir + cchFile, pszDefaultExt, cchDefaultExt + 1);
/vbox/src/bldprogs/
H A Dscm.cpp774 size_t cchDir = strlen(pszPath); local
775 if (cchDir >= sizeof(szFile) - sizeof(SCM_SETTINGS_FILENAME))
1235 * @param cchDir Length of our path in pszbuf.
1242 static int scmProcessDirTreeRecursion(char *pszBuf, size_t cchDir, PRTDIRENTRY pEntry, argument
1246 Assert(cchDir > 1 && pszBuf[cchDir - 1] == '.');
1298 if (pEntry->cbName + cchDir >= RTPATH_MAX)
1303 memcpy(&pszBuf[cchDir - 1], pEntry->szName, pEntry->cbName + 1);
1316 if (pEntry->cbName + cchDir + 5 >= RTPATH_MAX)
1321 memcpy(&pszBuf[cchDir
[all...]
/vbox/src/VBox/Runtime/common/dbg/
H A Ddbgcfg.cpp989 size_t cchDir = pCur->cch; local
995 if (cchDir >= RTPATH_MAX - 8U)
1011 cchDir -= sizeof("srv*") - 1;
1013 const char *pszServer = (const char *)memchr(pszDir, '*', cchDir);
1062 cchDir -= sizeof("cache*") - 1;
1063 if (!cchDir)
1066 cchCache = cchDir;
1087 cchDir -= sizeof("rec*") - 1;
1093 cchDir -= sizeof("norec*") - 1;
1098 memcpy(pszPath, pszDir, cchDir);
1462 size_t cchDir = pCur->cch; local
[all...]

Completed in 72 milliseconds