Where are syscalls located in glibc source

前端 未结 4 1570
挽巷
挽巷 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条回答
  •  Happy的楠姐
    2020-12-05 08:01

    What you've found is a stub function for systems it's not implemented on. You need to look under the sysdeps tree for the actual implementation. The following may be of interest:

    • sysdeps/unix/sysv/linux
    • sysdeps/posix
    • sysdeps/i386 (or x86_64 or whatever your cpu arch is)

提交回复
热议问题