Search code examples
linuxoperating-systemsystem-callslibrariesterminology

What is the difference between system call and library call?


Can someone explain the differences for these two in linux? Please go as deep as possible into each step the operating system takes.


Solution

  • Low level kernel calls which are handled by the kernel are the system calls.

    The man page says:

    2 System calls (functions provided by the kernel)

    3 Library calls (functions within program libraries)

    A pictorial image can make it clear:

    enter image description here

    and

    enter image description here