What's the difference between “C system calls” and “C library routines”?

前端 未结 5 1041
误落风尘
误落风尘 2020-12-01 01:20

There are multiple sections in the manpages. Two of them are:

2     Unix and C system calls
3     C Library routines for C programs

For example there i

5条回答
  •  [愿得一人]
    2020-12-01 01:36

    Libraries of common functions are built on top of the system call interface, but applications are free to use both.

    System calls are like authentication keys which have the access to use kernel resources.

    enter image description here

    Above image is from Advanced Linux programming and helps to understand how the user apps interact with kernel.

提交回复
热议问题