4 std::string get_exec_path()
7 size_t len = sizeof(pBuf);
10 sprintf(szTmp, "/proc/%d/exe", getpid());
11 int bytes = readlink(szTmp, pBuf, len);
17 std::string exec_path = pBuf;
18 return exec_path.substr(0, exec_path.rfind(DIR_DELIM) + 1);
22 std::set<std::string> get_dm_paths() {
23 std::set<std::string> paths;
25 paths.insert(get_exec_path());