Where are syscalls located in glibc source

前端 未结 4 1567
挽巷
挽巷 2020-12-05 07:42

So I was looking through the linux glibc source and I don\'t see where it actually does anything. The following is from io/chdir.c but it is indicative of many

4条回答
  •  眼角桃花
    2020-12-05 08:11

    Note that the actual system calls aren't defined anywhere in the source tree - they're generated at build time from syscalls.list (linked is the one in sysdeps/unix, there are additional ones further down), a series of macros in sysdep.h (linked linux/i386), and a script that actually generates the source files.

提交回复
热议问题