MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetPlatformKernelVersion

Method GetPlatformKernelVersion

lib/base/utility.cpp:1744–1758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1742}
1743
1744String Utility::GetPlatformKernelVersion()
1745{
1746#ifdef _WIN32
1747 OSVERSIONINFO info;
1748 info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
1749 GetVersionEx(&info);
1750
1751 std::ostringstream msgbuf;
1752 msgbuf << info.dwMajorVersion << "." << info.dwMinorVersion;
1753
1754 return msgbuf.str();
1755#else /* _WIN32 */
1756 return UnameHelper('r');
1757#endif /* _WIN32 */
1758}
1759
1760String Utility::GetPlatformName()
1761{

Callers

nothing calls this directly

Calls 1

UnameHelperFunction · 0.85

Tested by

no test coverage detected