Below please find a patch to pledge sysutils/iogen. The "stdio rpath wpath cpath" seems obvious, and the "proc" is for killing. I don't know if the pledge() could somehow be refined.
Jan Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/iogen/Makefile,v retrieving revision 1.25 diff -u -p -r1.25 Makefile --- Makefile 11 Mar 2016 19:43:45 -0000 1.25 +++ Makefile 14 Sep 2016 14:53:29 -0000 @@ -3,7 +3,7 @@ COMMENT= i/o generator V= 3.1 -REVISION= 2 +REVISION= 3 GH_TAGNAME= IOGEN_${V:S/./_/g} GH_ACCOUNT= conformal GH_PROJECT= iogen Index: patches/patch-iogen_c =================================================================== RCS file: patches/patch-iogen_c diff -N patches/patch-iogen_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-iogen_c 14 Sep 2016 14:53:29 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ +--- iogen.c.orig Fri May 18 16:48:16 2007 ++++ iogen.c Wed Sep 14 15:42:25 2016 +@@ -805,6 +805,9 @@ main(int argc, char *argv[]) + } + } + ++ if (pledge("stdio rpath wpat cpath proc", NULL) == -1) ++ err(1, "pledge"); ++ + err_log(0, "%s test run commences with %u proc(s)", + VERSION, nr_proc); + err_log(0,