What is the difference between a system call and a function call? Is fopen() a system call or a function call?
If you're using Linux you can monitor system calls performed by an application:
strace appname ...
Its output might give you a good insight on what's going on within libc, and which functions are actually system calls.