MCPcopy Create free account
hub / github.com/chen3feng/toft / GetOsKernelInfo

Function GetOsKernelInfo

system/info/info.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool GetOsKernelInfo(std::string* kernerl_info)
46{
47 const struct utsname* uts = GetUnameInfo();
48 if (uts != NULL) {
49 kernerl_info->assign(uts->release);
50 return true;
51 }
52
53 return false;
54}
55
56bool GetMachineArchitecture(std::string* arch_info)
57{

Callers 1

TESTFunction · 0.85

Calls 2

GetUnameInfoFunction · 0.85
assignMethod · 0.80

Tested by 1

TESTFunction · 0.68