/vbox/src/VBox/Runtime/common/path/ |
H A D | rtPathVolumeSpecLen.cpp | 42 DECLHIDDEN(size_t) rtPathVolumeSpecLen(const char *pszPath) argument 45 if (pszPath && *pszPath) 50 if ( (pszPath[0] == '\\' || pszPath[0] == '/') 51 && (pszPath[1] == '\\' || pszPath[1] == '/')) 52 return strcspn(pszPath + 2, "\\/") + 2; 55 if ( pszPath[1] == ':' 56 && RT_C_IS_ALPHA(pszPath[ [all...] |
H A D | RTPathStartsWithRoot.cpp | 37 RTDECL(bool) RTPathStartsWithRoot(const char *pszPath) argument 39 return rtPathRootSpecLen(pszPath) > 0;
|
H A D | RTPathHasExt.cpp | 36 RTDECL(bool) RTPathHasSuffix(const char *pszPath) argument 38 return RTPathSuffix(pszPath) != NULL;
|
H A D | RTPathCountComponents.cpp | 38 RTDECL(size_t) RTPathCountComponents(const char *pszPath) argument 40 size_t off = rtPathRootSpecLen(pszPath); 42 while (pszPath[off]) 45 while (!RTPATH_IS_SLASH(pszPath[off]) && pszPath[off]) 47 while (RTPATH_IS_SLASH(pszPath[off]))
|
H A D | RTPathStripTrailingSlash.cpp | 38 RTDECL(size_t) RTPathStripTrailingSlash(char *pszPath) argument 40 size_t off = strlen(pszPath); 44 switch (pszPath[off]) 50 && pszPath[1] == ':' 51 && RT_C_IS_ALPHA(pszPath[0])) 54 pszPath[off] = '\0';
|
H A D | rtPathRootSpecLen.cpp | 39 * Figures out the length of the root (or drive) specifier in @a pszPath. 46 * @param pszPath The path to examine. 48 DECLHIDDEN(size_t) rtPathRootSpecLen(const char *pszPath) argument 55 if (RTPATH_IS_SLASH(pszPath[0])) 58 if ( RTPATH_IS_SLASH(pszPath[1]) 59 && !RTPATH_IS_SLASH(pszPath[2]) 60 && pszPath[2]) 64 while (!RTPATH_IS_SLASH(pszPath[off]) && pszPath[off]) 66 while (RTPATH_IS_SLASH(pszPath[of [all...] |
H A D | RTPathStripFilename.cpp | 40 * @param pszPath Path from which filename should be extracted, will be truncated. 43 RTDECL(void) RTPathStripFilename(char *pszPath) argument 45 char *psz = pszPath; 58 pszPath = psz + 1; 60 pszPath = psz; 74 pszPath[0] = '.'; 75 pszPath[1] = '\0'; 77 else if (pszLastSep == pszPath)
|
H A D | RTPathAppendEx.cpp | 46 * @param pszPath The path to investigate. 52 static size_t rtPathRootSpecLen2(const char *pszPath) argument 55 if (!pszPath) 59 if (RTPATH_IS_SLASH(pszPath[0])) 63 if ( RTPATH_IS_SLASH(pszPath[1]) 64 && pszPath[2] != '\0' 65 && !RTPATH_IS_SLASH(pszPath[2])) 68 const char *pszEnd = pszPath + 2; 85 return pszPath - pszEnd; 94 if ( pszPath[ 107 RTPathAppendEx(char *pszPath, size_t cbPathDst, const char *pszAppend, size_t cchAppendMax) argument [all...] |
H A D | RTPathChangeToDosSlashes.cpp | 41 * @returns @a pszPath. 42 * @param pszPath The path to modify. 45 RTDECL(char *) RTPathChangeToDosSlashes(char *pszPath, bool fForce) argument 52 char *psz = pszPath; 60 return pszPath;
|
H A D | RTPathChangeToUnixSlashes.cpp | 41 * @returns @a pszPath. 42 * @param pszPath The path to modify. 45 RTDECL(char *) RTPathChangeToUnixSlashes(char *pszPath, bool fForce) argument 52 char *psz = pszPath; 60 return pszPath;
|
H A D | RTPathHasPath.cpp | 41 * @param pszPath Path to check. 43 RTDECL(bool) RTPathHasPath(const char *pszPath) argument 46 return strpbrk(pszPath, "/\\:") != NULL; 48 return strpbrk(pszPath, "/") != NULL;
|
H A D | RTPathStripExt.cpp | 37 RTDECL(void) RTPathStripSuffix(char *pszPath) argument 39 char *pszSuffix = RTPathSuffix(pszPath);
|
H A D | RTPathAppend.cpp | 37 RTDECL(int) RTPathAppend(char *pszPath, size_t cbPathDst, const char *pszAppend) argument 39 return RTPathAppendEx(pszPath, cbPathDst, pszAppend, RTSTR_MAX);
|
H A D | RTPathExt.cpp | 35 RTDECL(char *) RTPathSuffix(const char *pszPath) argument 37 const char *psz = pszPath; 61 if (pszExt && pszExt != pszPath && pszExt[1])
|
H A D | RTPathFilename.cpp | 38 RTDECL(char *) RTPathFilename(const char *pszPath) argument 40 return RTPathFilenameEx(pszPath, RTPATH_STYLE); 45 RTDECL(char *) RTPathFilenameEx(const char *pszPath, uint32_t fFlags) argument 47 const char *psz = pszPath; 48 const char *pszName = pszPath;
|
/vbox/src/VBox/Runtime/generic/ |
H A D | RTPathGetCurrentDrive-generic.cpp | 41 RTDECL(int) RTPathGetCurrentDrive(char *pszPath, size_t cbPath) argument 47 int rc = RTPathGetCurrent(pszPath, cbPath); 53 if (pszPath[0] && RTPATH_IS_VOLSEP(pszPath[1])) 55 pszPath[2] = '\0'; 62 if ( RTPATH_IS_SLASH(pszPath[0]) 63 && RTPATH_IS_SLASH(pszPath[1]) 64 && !RTPATH_IS_SLASH(pszPath[2]) 65 && pszPath[2]) 69 while (!RTPATH_IS_SLASH(pszPath[of [all...] |
H A D | RTPathGetCurrentOnDrive-generic.cpp | 41 RTDECL(int) RTPathGetCurrentOnDrive(char chDrive, char *pszPath, size_t cbPath) argument 47 int rc = RTPathGetCurrent(pszPath, cbPath); 50 if ( ( chDrive == *pszPath 51 || RT_C_TO_LOWER(chDrive) == RT_C_TO_LOWER(*pszPath)) 52 && RTPATH_IS_VOLSEP(pszPath[1])) 60 pszPath[0] = RT_C_TO_UPPER(chDrive); 61 pszPath[1] = ':'; 62 pszPath[2] = RTPATH_SLASH; 63 pszPath[3] = '\0'; 76 pszPath[ [all...] |
H A D | RTFileQuerySize-generic.cpp | 40 RTDECL(int) RTFileQuerySize(const char *pszPath, uint64_t *pcbFile) argument 43 int rc = RTPathQueryInfoEx(pszPath, &ObjInfo, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK); 49 LogFlow(("RTFileQuerySize(%p:{%s}): returns %Rrc (%#RX64)\n", pszPath, pszPath, rc, *pcbFile)); 58 LogFlow(("RTFileQuerySize(%p:{%s}): returns %Rrc\n", pszPath, pszPath, rc));
|
H A D | RTDirExists-generic.cpp | 40 RTDECL(bool) RTDirExists(const char *pszPath) argument 43 int rc = RTPathQueryInfoEx(pszPath, &ObjInfo, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK); 46 LogFlow(("RTDirExists(%p:{%s}): returns %RTbool (%Rrc)\n", pszPath, pszPath, fRc, rc));
|
/vbox/src/VBox/Runtime/r3/os2/ |
H A D | rtProcInitExePath-os2.cpp | 43 DECLHIDDEN(int) rtProcInitExePath(char *pszPath, size_t cchPath) argument 48 _execname(pszPath, cchPath); 51 int rc = rtPathFromNative(&pszTmp, pszPath, NULL); 52 AssertMsgRCReturn(rc, ("rc=%Rrc pszLink=\"%s\"\nhex: %.*Rhxs\n", rc, pszPath, cchPath, pszPath), rc); 53 if (pszTmp != pszPath) 55 rc = RTStrCopy(pszPath, cchPath, pszTmp); 56 rtPathFreeIprt(pszTmp, pszPath);
|
/vbox/src/VBox/Runtime/r3/ |
H A D | path.cpp | 46 * @param pszPath See RTPathExecDir. 49 DECLINLINE(int) rtPathSolarisArchHack(char *pszPath, size_t cchPath) argument 51 int rc = RTPathExecDir(pszPath, cchPath); 54 const char *pszLast = RTPathFilename(pszPath); 57 RTPathStripFilename(pszPath); 64 RTDECL(int) RTPathExecDir(char *pszPath, size_t cchPath) argument 74 memcpy(pszPath, g_szrtProcExePath, cch); 75 pszPath[cch] = '\0'; 84 RTDECL(int) RTPathAppPrivateNoArch(char *pszPath, size_t cchPath) argument 87 return RTStrCopy(pszPath, cchPat 96 RTPathAppPrivateArch(char *pszPath, size_t cchPath) argument 106 RTPathAppPrivateArchTop(char *pszPath, size_t cchPath) argument 121 RTPathSharedLibs(char *pszPath, size_t cchPath) argument 131 RTPathAppDocs(char *pszPath, size_t cchPath) argument 143 RTPathTemp(char *pszPath, size_t cchPath) argument 180 RTPathGetMode(const char *pszPath, PRTFMODE pfMode) argument [all...] |
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | RTPathUserDocuments-posix.cpp | 34 RTDECL(int) RTPathUserDocuments(char *pszPath, size_t cchPath) argument 39 AssertPtrReturn(pszPath, VERR_INVALID_POINTER); 42 int rc = RTPathUserHome(pszPath, cchPath); 46 rc = RTPathAppend(pszPath, cchPath, "Documents"); 48 *pszPath = '\0';
|
/vbox/src/VBox/Runtime/r3/linux/ |
H A D | rtProcInitExePath-linux.cpp | 42 DECLHIDDEN(int) rtProcInitExePath(char *pszPath, size_t cchPath) argument 47 int cchLink = readlink("/proc/self/exe", pszPath, cchPath - 1); 50 pszPath[cchLink] = '\0'; 53 int rc = rtPathFromNative(&pszTmp, pszPath, NULL); 54 AssertMsgRCReturn(rc, ("rc=%Rrc pszLink=\"%s\"\nhex: %.*Rhxs\n", rc, pszPath, cchLink, pszPath), rc); 55 if (pszTmp != pszPath) 57 rc = RTStrCopy(pszPath, cchPath, pszTmp); 58 rtPathFreeIprt(pszTmp, pszPath);
|
/vbox/src/VBox/Runtime/r3/solaris/ |
H A D | rtProcInitExePath-solaris.cpp | 42 DECLHIDDEN(int) rtProcInitExePath(char *pszPath, size_t cchPath) argument 49 int cchLink = readlink(szProcFile, pszPath, cchPath - 1); 52 pszPath[cchLink] = '\0'; 55 int rc = rtPathFromNative(&pszTmp, pszPath, NULL); 56 AssertMsgRCReturn(rc, ("rc=%Rrc pszLink=\"%s\"\nhex: %.*Rhxs\n", rc, pszPath, cchLink, pszPath), rc); 57 if (pszTmp != pszPath) 59 rc = RTStrCopy(pszPath, cchPath, pszTmp); 60 rtPathFreeIprt(pszTmp, pszPath);
|
/vbox/src/VBox/Runtime/r3/freebsd/ |
H A D | rtProcInitExePath-freebsd.cpp | 46 DECLHIDDEN(int) rtProcInitExePath(char *pszPath, size_t cchPath) argument 56 if (sysctl(aiName, RT_ELEMENTS(aiName), pszPath, &cchExePath, NULL, 0) == 0) 59 int rc = rtPathFromNative(&pszTmp, pszPath, NULL); 60 AssertMsgRCReturn(rc, ("rc=%Rrc pszPath=\"%s\"\nhex: %.*Rhxs\n", rc, pszPath, cchExePath, pszPath), rc); 61 if (pszTmp != pszPath) 63 rc = RTStrCopy(pszPath, cchPath, pszTmp); 64 rtPathFreeIprt(pszTmp, pszPath); 78 int cchLink = readlink("/proc/curproc/file", pszPath, cchPat [all...] |