Lines Matching refs:g_szSupLibHardenedExePath
135 char g_szSupLibHardenedExePath[RTPATH_MAX];
865 int cchLink = readlink("/proc/self/exe", &g_szSupLibHardenedExePath[0], sizeof(g_szSupLibHardenedExePath) - 1);
870 int cchLink = readlink(szFileBuf, &g_szSupLibHardenedExePath[0], sizeof(g_szSupLibHardenedExePath) - 1);
879 size_t cbPath = sizeof(g_szSupLibHardenedExePath);
880 if (sysctl(aiName, RT_ELEMENTS(aiName), g_szSupLibHardenedExePath, &cbPath, NULL, 0) < 0)
882 g_szSupLibHardenedExePath[sizeof(g_szSupLibHardenedExePath) - 1] = '\0';
883 int cchLink = suplibHardenedStrLen(g_szSupLibHardenedExePath); /* paranoid? can't we use cbPath? */
886 if (cchLink < 0 || cchLink == sizeof(g_szSupLibHardenedExePath) - 1)
888 g_szSupLibHardenedExePath, errno, cchLink);
889 g_szSupLibHardenedExePath[cchLink] = '\0';
892 _execname(g_szSupLibHardenedExePath, sizeof(g_szSupLibHardenedExePath));
899 if (!cchImageName || cchImageName >= sizeof(g_szSupLibHardenedExePath))
901 suplibHardenedMemCopy(g_szSupLibHardenedExePath, pszImageName, cchImageName + 1);
904 char *pszDst = g_szSupLibHardenedExePath;
905 int rc = RTUtf16ToUtf8Ex(g_wszSupLibHardenedExePath, RTSTR_MAX, &pszDst, sizeof(g_szSupLibHardenedExePath), NULL);
915 suplibHardenedStrCopy(g_szSupLibHardenedDirPath, g_szSupLibHardenedExePath);
1687 pszExePath = g_szSupLibHardenedExePath;