Host: support freebsd

This commit is contained in:
李通洲
2022-10-27 10:46:33 +08:00
parent 3ee15d0401
commit 895d151e2e
4 changed files with 43 additions and 10 deletions
+19
View File
@@ -0,0 +1,19 @@
#include "host.h"
#include "common/sysctl.h"
void ffDetectHostImpl(FFHostResult* host)
{
ffStrbufInit(&host->error);
ffStrbufInit(&host->productName);
ffStrbufInit(&host->productFamily);
ffStrbufInit(&host->productVersion);
ffStrbufInit(&host->productSku);
ffStrbufInit(&host->sysVendor);
ffStrbufInit(&host->chassisType);
ffStrbufInit(&host->chassisVendor);
ffStrbufInit(&host->chassisVersion);
ffStrbufAppendS(&host->error, ffSysctlGetString("hw.fdt.model", &host->productName));
}