new c code for strace, and other bits