If you want to port strace, you miss the important:
#define PTRACE_SYSCALL 24
which is not in bsd.
>
[...]
>
> marty leisner@sdsp.mc.xerox.com
> Member of the League for Programming Freedom (http://www.lpf.org)
> Any sufficiently advanced technology is indistinguishable from magic
> Arthur C. Clarke, The Lost Worlds of 2001
>
calle
-- calle@calle.in-berlin.de