OSX(XNU)系统调用实际记录在哪里? [英] Where are the OSX (XNU) syscalls actually documented?

查看:39
本文介绍了OSX(XNU)系统调用实际记录在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在查看系统调用.master 文件,但完全没有记录.是否存在有关syscall的文档?如果没有,为什么不呢?

I'm looking through the syscalls.master file here but it isn't at all documented. Does documentation for the syscalls exist? If not, why not?

通过文档,我的意思是对每个系统调用的作用及其所接受参数的含义的实际解释.

By documentation I mean an actual explanation of what each syscall does and the meanings of the arguments it takes.

推荐答案

Apple的立场是系统库是API,稳定的ABI是系统库,而syscall不是.他们不鼓励直接使用,因为它们可以随操作系统的发行版本而变化.

Apple's position is that the system libraries are the API and stable ABI, syscalls are not. They discourage their direct use, as they can change from release to release of the OS.

因此,您将看到的最佳文档是第2节的手册页,或者在某些情况下是/usr/include的标题.当然,您也可以查看syscall的实现的XNU源代码,以了解它们如何工作.

So, the best documentation you'll see is the man pages in section 2 or, in some cases, the headers in /usr/include. Of course, you can also look at the XNU sources for the implementations of the syscalls to see how they work.

请注意,syscalls.master中的许多系统调用仅供内部使用,没有文档.另外,syscalls.master仅包含Unix syscall,而不包含Mach syscall.

Note that many of the system calls in syscalls.master are for internal use only and have no documentation. Also, syscalls.master contains only the Unix syscalls, not, for example, the Mach syscalls.

这篇关于OSX(XNU)系统调用实际记录在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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