| 43 | } |
| 44 | |
| 45 | bool 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 | |
| 56 | bool GetMachineArchitecture(std::string* arch_info) |
| 57 | { |