System calls can be traced with strace. If you always wanted to know what your program 'buggy' does ``behind your back'', try strace buggy | more and you will be surprised (if you started it for the first time).