在哪里可以找到选择()源$ C ​​$在glibc的C源? [英] where to find select() source code in glibc source?

查看:127
本文介绍了在哪里可以找到选择()源$ C ​​$在glibc的C源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到glibc的源$ C ​​$ C选择()源$ C ​​$ C(Linux操作系统,i386的弓),
但我无法找到任何(与该架构)

可能有人点我的选择()源$ C ​​$ C?


解决方案

选择()不是libc中的功能,但是内核函数,所以你需要看看到内核源代码。

您可以通过查看手册页告诉这一点:如果是在第2节,这是一个内核函数,如果是在第3节,这是标准C库的函数,你的情况glibc的。

编辑:像其他人说正确(谢谢!),在第2节中描述的功能被正式称为的系统调用的,它实际上是一个库调用封装了操作系统实际的调用接口。

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 anybody point me to the select() source code ?

解决方案

select() is not a function of the libc, but a kernel function, so you need to take a look into the kernel source.

You can tell this by looking into the man page: If it is in section 2, it's a kernel function, if it's in section 3, it's a function of the standard C library, in your case the glibc.

Edit: Like some other people remarked correctly (thank you!), a function described in section 2 is officially called a system call and it is actually a call to a library that wraps the operating system's actual call interface.

这篇关于在哪里可以找到选择()源$ C ​​$在glibc的C源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆