how to intercept system calls