where to find select() source code in glibc source?

前端 未结 2 549
温柔的废话
温柔的废话 2020-12-11 12:31

i am trying to find the select() source code (linux, i386 arch) in the glibc source code, but i cannot find anything (related to the said architecture)

Could anybod

2条回答
  •  死守一世寂寞
    2020-12-11 13:17

    mh's answer is pretty good, but I will try to be more specific:

    select is Linux system call, not libc function. It's source code could be found here.

    libc has only wrapper for calling (executing) linux system call. Wrapper for select syscall is created on the fly at build time, because select is in syscalls.list file.

提交回复
热议问题