Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我需要知道某个系统调用的编号,它说我可以检查系统调用在 unistd.h 文件中的编号,但是我如何/在哪里可以找到该文件?
在终端类型命令find /usr/include -name unistd.h中,这将为您提供 unistd.h 在系统中的位置。可能它会在/usr/include/bits其他子目录中包含一些内容。
find /usr/include -name unistd.h
/usr/include/bits
大概在/usr/include/...
/usr/include/
尝试find /usr/include/ -name unistd.h,假设您实际上是在 linux 机器上开发!
find /usr/include/ -name unistd.h
这将列出一堆特定于平台的变体等。