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

Function GetPersistentExecPathImpl

util/system/execpath.cpp:149–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149static bool GetPersistentExecPathImpl(TString& to) {
150#if defined(_solaris_)
151 to = TString("/proc/self/object/a.out");
152 return true;
153#elif defined(_linux_) || defined(_cygwin_)
154 to = TString("/proc/self/exe");
155 return true;
156#elif defined(_freebsd_)
157 to = TString("/proc/curproc/file");
158 return true;
159#else // defined(_win_) || defined(_darwin_) or unknown
160 Y_UNUSED(to);
161 return false;
162#endif
163}
164
165namespace {
166 struct TExecPathsHolder {

Callers 1

TExecPathsHolderMethod · 0.85

Calls 1

Y_UNUSEDFunction · 0.85

Tested by

no test coverage detected