#include "headers.h"
#include <string>
Go to the source code of this file.
Functions | |
std::string | expand_tilde_pathname (const std::string &dir) |
std::string | concat_pathname_components (const std::string &part1, const std::string &part2) |
bool | extractNextPathElem (const char *&ptr, std::string &result) |
bool | exists_executable (const std::string &fullpathname) |
bool | executableFromArgv0AndPathAndCwd (std::string &result, const std::string &i_argv0, const std::string &path, const std::string &cwd) |
COMMON_EXPORT std::string | extract_pathname_tail (const std::string &path) |
COMMON_EXPORT std::string | resolve_file_path (const char *fname) |
std::string concat_pathname_components | ( | const std::string & | part1, | |
const std::string & | part2 | |||
) |
Definition at line 117 of file pathName.C.
References concat_pathname_components_simple().
Referenced by executableFromArgv0AndPathAndCwd().
bool executableFromArgv0AndPathAndCwd | ( | std::string & | result, | |
const std::string & | i_argv0, | |||
const std::string & | path, | |||
const std::string & | cwd | |||
) |
Definition at line 196 of file pathName.C.
References concat_pathname_components(), exists_executable(), expand_tilde_pathname(), and extractNextPathElem().
bool exists_executable | ( | const std::string & | fullpathname | ) |
Definition at line 180 of file pathName.C.
Referenced by executableFromArgv0AndPathAndCwd().
std::string expand_tilde_pathname | ( | const std::string & | dir | ) |
Definition at line 54 of file pathName.C.
Referenced by executableFromArgv0AndPathAndCwd(), and resolve_file_path_local().
COMMON_EXPORT std::string extract_pathname_tail | ( | const std::string & | path | ) |
Definition at line 280 of file pathName.C.
References P_strrchr(), and PATH_SEP.
Referenced by Dyninst::SymtabAPI::Symtab::addAddressRange(), Dyninst::SymtabAPI::Symtab::addLine(), MappedFile::filename(), Dyninst::SymtabAPI::Symtab::findModuleByName(), Dyninst::SymtabAPI::Module::Module(), Dyninst::SymtabAPI::Symtab::newModule(), Dyninst::SymtabAPI::DwarfWalker::parseModule(), Dyninst::SerDesBin::resolveCachePath(), and Dyninst::SymtabAPI::Module::setName().
bool extractNextPathElem | ( | const char *& | ptr, | |
std::string & | result | |||
) |
Definition at line 145 of file pathName.C.
Referenced by executableFromArgv0AndPathAndCwd().
COMMON_EXPORT std::string resolve_file_path | ( | const char * | fname | ) |
Definition at line 343 of file pathName.C.
References PATH_MAX, and resolve_file_path_local().
Referenced by Dyninst::FCNode::FCNode(), Dyninst::AddressTranslateAIX::refresh(), Dyninst::SerFile::SerFile(), and setVersion().