fixes for FreeBSD: libtokencap, free cpu detection threshold
MODIFY
libtokencap/Makefile
libtokencap/Makefile
@@ -31,7 +31,6 @@ ifeq "$(shell uname)" "Darwin"
endif
ifeq "$(shell uname)" "FreeBSD"
TARGETS = libtokencap.so
- LDFLAGS += -ldl
endif
ifeq "$(shell uname)" "OpenBSD"
TARGETS = libtokencap.so

MODIFY
src/afl-fuzz-init.c
src/afl-fuzz-init.c
@@ -139,7 +139,7 @@ void bind_to_free_cpu(void) {
for (i = 0; i < proccount; i++) {
#if defined(__FreeBSD__)
- if (procs[i].ki_oncpu < sizeof(cpu_used) && procs[i].ki_pctcpu > 10)
+ if (procs[i].ki_oncpu < sizeof(cpu_used) && procs[i].ki_pctcpu > 60)
cpu_used[procs[i].ki_oncpu] = 1;
#elif defined(__DragonFly__)
if (procs[i].kp_lwp.kl_cpuid < sizeof(cpu_used) &&

fixes for FreeBSD: libtokencap, free cpu detection threshold