⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 90.html

📁 linux 0.11中文版 有注释
💻 HTML
字号:
<html>
<head>
<title>lib/wait.c</title>
<meta name='robots' content='noindex,nofollow'>
<meta name='generator' content='GLOBAL-5.4.1'>
</head>
<body text='#191970' bgcolor='#f5f5dc' vlink='gray'>
<a name='TOP'><h2><a href='../mains.html'>root</a>/<a href='../files/108.html'>lib</a>/wait.c</h2>
<i><font color='green'>/* [&lt;][&gt;]<a href='#L17'>[^]</a>[v][top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</font></i>
<hr>
<h2>DEFINITIONS</h2>
This source file includes following definitions.
<ol>
<li><a href='#L17' title='Defined at 17.'>_syscall3</a>
</ol>
<hr>
<pre>
<a name='L1'><i><font color='green'>/*</font></i>
<a name='L2'><i><font color='green'>* linux/lib/wait.c</font></i>
<a name='L3'><i><font color='green'>*</font></i>
<a name='L4'><i><font color='green'>* (C) 1991 Linus Torvalds</font></i>
<a name='L5'><i><font color='green'>*/</font></i>
<a name='L6'>
<a name='L7'><font color='darkred'>#define</font> <a href='../S/50.html#L71' title='Refered from 71 in include/unistd.h.'>__LIBRARY__</a>
<a name='L8'><font color='darkred'>#include</font> &lt;<a href='50.html'>unistd.h</a>&gt;             <i><font color='green'>// Linux 标准头文件。定义了各种符号常数和类型,并申明了各种函数。</font></i>
<a name='L9'><i><font color='green'>// 如定义了__LIBRARY__,则还包括系统调用号和内嵌汇编_syscall0()等。</font></i>
<a name='L10'><font color='darkred'>#include</font> &lt;<a href='47.html'>sys/wait.h</a>&gt;           <i><font color='green'>// 等待调用头文件。定义系统调用wait()和waitpid()及相关常数符号。</font></i>
<a name='L11'>
<a name='L12'><i><font color='green'>//// 等待进程终止系统调用函数。</font></i>
<a name='L13'><i><font color='green'>// 该下面宏结构对应于函数:pid_t waitpid(pid_t pid, int * wait_stat, int options)</font></i>
<a name='L14'><i><font color='green'>//</font></i>
<a name='L15'><i><font color='green'>// 参数:pid - 等待被终止进程的进程id,或者是用于指定特殊情况的其它特定数值;</font></i>
<a name='L16'><i><font color='green'>// wait_stat - 用于存放状态信息;options - WNOHANG 或WUNTRACED 或是0。</font></i>
<a name='L17'><a href='../R/380.html' title='Multiple refered from 2 places.'>_syscall3</a> (<a href='../S/45.html#L23' title='Defined at 23 in include/sys/types.h.'>pid_t</a>, waitpid, <a href='../S/45.html#L23' title='Defined at 23 in include/sys/types.h.'>pid_t</a>, pid, <b>int</b> *, wait_stat, <b>int</b>, options)
<a name='L18'><i><font color='green'>//// wait()系统调用。直接调用waitpid()函数。</font></i>
<a name='L19'>     <a href='../S/45.html#L23' title='Defined at 23 in include/sys/types.h.'>pid_t</a> wait (<b>int</b> *wait_stat)
<a name='L20'><font color='red'>{</font>
<a name='L21'>  <b>return</b> waitpid (-1, wait_stat, 0);
<a name='L22'><font color='red'>}</font>
</pre>
<hr>
<a name='BOTTOM'>
<i><font color='green'>/* [&lt;][&gt;][^]<a href='#L17'>[v]</a><a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</font></i>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -