MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsWSL

Function IsWSL

src/fs.cpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static bool IsWSL()
66{
67 struct utsname uname_data;
68 return uname(&uname_data) == 0 && std::string(uname_data.version).find("Microsoft") != std::string::npos;
69}
70
71bool FileLock::TryLock()
72{

Callers 1

TryLockMethod · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected