Example code which helps learning how to record system calls (Syscalls) using strace.
Compile program's sources :
gcc fileNotFound.cpp -o fileNotFound
Launch strace and tap system calls :
smile-stats.txt file and look at what's happening to SysCalls.
Please feel free to contact me : firstname.lastname@example.org