What is the difference between system call and library call?

drdot picture drdot · Apr 23, 2015 · Viewed 29k times · Source

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

Answer

Rahul Tripathi picture Rahul Tripathi · Apr 23, 2015

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