MCPcopy Create free account
hub / github.com/catboost/catboost / FreeBSDGuessExecPath

Function FreeBSDGuessExecPath

util/system/execpath.cpp:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77static inline bool FreeBSDGuessExecPath(const TString& guessPath, TString& execPath) {
78 if (NFs::Exists(guessPath)) {
79 // now it should work for real
80 execPath = FreeBSDGetExecPath();
81 if (RealPath(execPath) == RealPath(guessPath)) {
82 return true;
83 }
84 }
85 return false;
86}
87
88static inline bool FreeBSDGuessExecBasePath(const TString& guessBasePath, TString& execPath) {
89 return FreeBSDGuessExecPath(TString(guessBasePath) + "/" + getprogname(), execPath);

Callers 2

FreeBSDGuessExecBasePathFunction · 0.85
GetExecPathImplFunction · 0.85

Calls 2

FreeBSDGetExecPathFunction · 0.85
RealPathFunction · 0.85

Tested by

no test coverage detected