summaryrefslogtreecommitdiff
path: root/report.c
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-08-18 12:28:29 +0200
committerKamil Rytarowski <n54@gmx.com>2018-08-18 12:28:29 +0200
commitbdfe2a7d4488004d55e7d3ba74246295d1f3d5a3 (patch)
treeb5c87e25830037e6dd6e7a9c44bf5bd504bad7b5 /report.c
parentf5546d32915c14f71a9dce9e3e658e760e41bafc (diff)
downloadhonggfuzz-bdfe2a7d4488004d55e7d3ba74246295d1f3d5a3.tar.gz
Handle NetBSD in generic code switches
Enhance the NetBSD support in generic code using the linux struct, and where applicable use the netbsd struct.
Diffstat (limited to 'report.c')
-rw-r--r--report.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/report.c b/report.c
index 69439b44..7aa06cc7 100644
--- a/report.c
+++ b/report.c
@@ -97,7 +97,7 @@ void report_Report(run_t* run) {
" externalCmd : %s\n"
" fuzzStdin : %s\n"
" timeout : %ld (sec)\n"
-#if defined(_HF_ARCH_LINUX)
+#if defined(_HF_ARCH_LINUX) || defined(_HF_ARCH_NETBSD)
" ignoreAddr : %p\n"
#endif
" ASLimit : %" PRIu64
@@ -106,7 +106,7 @@ void report_Report(run_t* run) {
" (MiB)\n"
" DATALimit : %" PRIu64
" (MiB)\n"
-#if defined(_HF_ARCH_LINUX)
+#if defined(_HF_ARCH_LINUX) || defined(_HF_ARCH_NETBSD)
" targetPid : %d\n"
" targetCmd : %s\n"
#endif
@@ -116,10 +116,14 @@ void report_Report(run_t* run) {
run->global->exe.fuzzStdin ? "TRUE" : "FALSE", run->global->timing.tmOut,
#if defined(_HF_ARCH_LINUX)
run->global->linux.ignoreAddr,
+#elif defined(_HF_ARCH_NETBSD)
+ run->global->netbsd.ignoreAddr,
#endif
run->global->exe.asLimit, run->global->exe.rssLimit, run->global->exe.dataLimit,
#if defined(_HF_ARCH_LINUX)
run->global->linux.pid, run->global->linux.pidCmd,
+#elif defined(_HF_ARCH_NETBSD)
+ run->global->netbsd.pid, run->global->netbsd.pidCmd,
#endif
run->global->mutate.dictionaryFile == NULL ? "NULL" : run->global->mutate.dictionaryFile);