65 #include <linux/limits.h> 88 const std::string &fnm,
89 std::string &errorString
92 char pathbuf[PATH_MAX];
97 char *
err = strerror_r(errno, errbuf,
sizeof(errbuf));
99 const char *path = realpath(fnm.c_str(), pathbuf);
104 std::stringstream ss;
106 ss <<
"'" << path <<
"', error ='" << err <<
"'";
108 errorString = ss.str();
void hpcrun_getFileErrorString(const std::string &fnm, std::string &errorString)