DF-0916 / build.sh
#!/bin/sh # DF-0916 build script - builds both the buggy and the fixed-algorithm # standalone demonstrators inside the DragonFlyBSD guest as the unprivileged # user (maxx). No kernel-side build is needed for the demonstrator: the # function being tested is pure arithmetic and is compiled verbatim into the # test binary, so a userspace build reproduces the exact in-kernel loop. set -e cd "$(dirname "$0")" cc -O2 -o trigger trigger.c -lm cc -O2 -o trigger_fixed trigger_fixed.c -lm echo "BUILD_OK" ls -l trigger trigger_fixed |