pathName.C File Reference

#include "common/h/headers.h"
#include <ctype.h>
#include <assert.h>
#include <limits.h>
#include "common/h/pathName.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <pwd.h>

Go to the source code of this file.

Defines

#define PATH_SEP   ('/')

Functions

std::string expand_tilde_pathname (const std::string &dir)
static std::string concat_pathname_components_simple (const std::string &comp1, const std::string &comp2)
std::string concat_pathname_components (const std::string &comp1, const std::string &comp2)
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)
std::string extract_pathname_tail (const std::string &path)
static char * resolve_file_path_local (const char *fname, char *resolved_path)
std::string resolve_file_path (const char *fname)

Define Documentation

#define PATH_SEP   ('/')

Definition at line 277 of file pathName.C.

Referenced by extract_pathname_tail().


Function Documentation

std::string concat_pathname_components ( const std::string &  comp1,
const std::string &  comp2 
)

Definition at line 117 of file pathName.C.

References concat_pathname_components_simple().

Referenced by executableFromArgv0AndPathAndCwd().

static std::string concat_pathname_components_simple ( const std::string &  comp1,
const std::string &  comp2 
) [static]

Definition at line 111 of file pathName.C.

Referenced by concat_pathname_components().

bool executableFromArgv0AndPathAndCwd ( std::string &  result,
const std::string &  i_argv0,
const std::string &  path,
const std::string &  cwd 
)
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().

std::string extract_pathname_tail ( const std::string &  path  ) 
bool extractNextPathElem ( const char *&  ptr,
std::string &  result 
)

Definition at line 145 of file pathName.C.

Referenced by executableFromArgv0AndPathAndCwd().

std::string resolve_file_path ( const char *  fname  ) 
static char* resolve_file_path_local ( const char *  fname,
char *  resolved_path 
) [static]

Definition at line 307 of file pathName.C.

References expand_tilde_pathname(), and PATH_MAX.

Referenced by resolve_file_path().

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1