By system calls, I mean functions like man 2 brk, not the 0x80 interrupt.
If I understand this thread correctly, a compiled C program never DIRECTLY invokes system calls. It can only invoke library calls, which might be dynamically linked from glibc.
However, man 3 brk returns No manual entry for brk in section 3. So I guess one of the following has to happen for the brk to be executed properly:
- My understanding above is wrong. Programs can invoke system calls without
glibcsupport. But how isbrklinked into the program then? - There is indeed a
glibcwrapper for the system callbrk. Then whichbrkis included when I#include <unistd.h>? Theglibcone or the system call one? If it is theglibcone, why is it not documented inman 3? Where can I find a complete list of available library calls?