English 中文(简体)
Unix 中系统调用
原标题:System Calls in Unix

我当时正在阅读系统电话和遇到的系统电话,其形式是打开(2),读(2),write(2)等。我试图找到副主页中的2。我首先想到的是它的旗帜设置,而不是我发现的旗帜。请帮助我理解这一点。如果问题太愚蠢,请原谅我。

谢谢 谢谢

最佳回答

“2”是指《Unix手册》的章节,第2节是系统电话,第3节是图书馆电话,对某些电话的区分有些武断,这些电话过去是系统电话(基本上直接呼叫内核),但现在(至少是某些版本的Unix)图书馆功能在呼叫内核之前做了大量工作。

http://en.wikipedia.org/wiki/Man_page#Manual_sections” rel=“no follow”>维基百科网页上有关“人页” 的更多内容。

问题回答

我认为,这也许只是指它所在人页的章节。例如,像人2一样。

它显示主页的章节

http://en.wikipedia.org/wiki/man_page#manual_sections

如您所见, 2个是系统电话, 开放、读写后所期望的几乎是系统电话 :)

这是有用的, 例如, 如果您想要查找 perl 打开的, 您可以做 :

man open -S 3 # -S switch here is to specify which section in man page




相关问题
Generate assembler code from C file in linux

I would like to know how to generate assembler code from a C program using Unix. I tried the gcc: gcc -c file.c I also used firstly cpp and then try as but I m getting errors. I m trying to build an ...

Function to create the array by reading the file

I am creating scripts which will store the contents of pipe delimited file. Each column is stored in a separate array. I then read the information from the arrays and process it. There are 20 pipe ...

Compare characters at the end of the string C++

This program supposed to find command line arguments entered on Unix which ends with “.exe”. For some reason it doesn t work. Here is the code: int main( int argc, char* argv[] ) { for ( int ...

Batch Job Dependencies Using Open Source/Free Software

I run a large data warehouse plant where we have a lot of nightly jobs running concerruently however many have dependencies on a extract or data load process before they start. Currently we use an ...

Writing application for both Unix and Windows

I ll write a program for Interactive UNIX (http://en.wikipedia.org/wiki/INTERACTIVE_UNIX). But in a year it will be ported to Windows. I ll write it in ANSI C and/or SH-script. When it runs on Windows ...

Development Environment in Windows [closed]

What are your recommendations for setting up a development environment in Windows, especially when not using an IDE. I am attempting to familiarize myself with Windows, and I feel a bit lost. What ...

热门标签