| 69 | } |
| 70 | #elif defined(Q_OS_FREEBSD) |
| 71 | void runSysctlHwModel(QStringList &log) |
| 72 | { |
| 73 | char buff[512]; |
| 74 | FILE *hwmodel = popen("sysctl hw.model", "r"); |
| 75 | while (fgets(buff, 512, hwmodel) != NULL) |
| 76 | { |
| 77 | log << QString::fromUtf8(buff); |
| 78 | break; |
| 79 | } |
| 80 | pclose(hwmodel); |
| 81 | } |
| 82 | |
| 83 | void runPciconf(QStringList &log) |
| 84 | { |