Searched refs:pszPath (Results 1 - 25 of 142) sorted by relevance

123456

/vbox/src/VBox/Runtime/common/path/
H A DrtPathVolumeSpecLen.cpp42 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 DRTPathStartsWithRoot.cpp37 RTDECL(bool) RTPathStartsWithRoot(const char *pszPath) argument
39 return rtPathRootSpecLen(pszPath) > 0;
H A DRTPathHasExt.cpp36 RTDECL(bool) RTPathHasSuffix(const char *pszPath) argument
38 return RTPathSuffix(pszPath) != NULL;
H A DRTPathCountComponents.cpp38 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 DRTPathStripTrailingSlash.cpp38 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 DrtPathRootSpecLen.cpp39 * 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 DRTPathStripFilename.cpp40 * @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 DRTPathAppendEx.cpp46 * @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 DRTPathChangeToDosSlashes.cpp41 * @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 DRTPathChangeToUnixSlashes.cpp41 * @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 DRTPathHasPath.cpp41 * @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 DRTPathStripExt.cpp37 RTDECL(void) RTPathStripSuffix(char *pszPath) argument
39 char *pszSuffix = RTPathSuffix(pszPath);
H A DRTPathAppend.cpp37 RTDECL(int) RTPathAppend(char *pszPath, size_t cbPathDst, const char *pszAppend) argument
39 return RTPathAppendEx(pszPath, cbPathDst, pszAppend, RTSTR_MAX);
H A DRTPathExt.cpp35 RTDECL(char *) RTPathSuffix(const char *pszPath) argument
37 const char *psz = pszPath;
61 if (pszExt && pszExt != pszPath && pszExt[1])
H A DRTPathFilename.cpp38 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 DRTPathGetCurrentDrive-generic.cpp41 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 DRTPathGetCurrentOnDrive-generic.cpp41 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 DRTFileQuerySize-generic.cpp40 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 DRTDirExists-generic.cpp40 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 DrtProcInitExePath-os2.cpp43 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 Dpath.cpp46 * @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 DRTPathUserDocuments-posix.cpp34 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 DrtProcInitExePath-linux.cpp42 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 DrtProcInitExePath-solaris.cpp42 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 DrtProcInitExePath-freebsd.cpp46 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...]

Completed in 1006 milliseconds

123456