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

📄 wait3.html

📁 unix 下的C开发手册,还用详细的例程。
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>wait3</title></head><body bgcolor=white><center><font size=2>The Single UNIX &reg; Specification, Version 2<br>Copyright &copy; 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_010_437">&nbsp;</a>NAME</h4><blockquote>wait3 - wait for a child process to change state(<b>LEGACY</b>)</blockquote><h4><a name = "tag_000_010_438">&nbsp;</a>SYNOPSIS</h4><blockquote><pre><code>#include &lt;<a href="syswait.h.html">sys/wait.h</a>&gt;pid_t wait3 (int *<i>stat_loc</i>, int <i>options</i>, struct rusage *<i>resource_usage</i>);</code></pre></blockquote><h4><a name = "tag_000_010_439">&nbsp;</a>DESCRIPTION</h4><blockquote>The<i>wait3()</i>function allows the calling thread to obtain status information for specifiedchild processes.<p>The following call:<pre><code>wait3(stat_loc, options, resource_usage);</code></pre>is equivalent to the call:<pre><code>waitpid((pid_t)-1, stat_loc, options);</code></pre>except that on successful completion, if the <i>resource_usage</i> argument to<i>wait3()</i>is not a null pointer, the rusage structure that the third argument points tois filled in for the child process identified by the return value.<p>This interface need not be reentrant.</blockquote><h4><a name = "tag_000_010_440">&nbsp;</a>RETURN VALUE</h4><blockquote>See<i><a href="waitpid.html">waitpid()</a></i>.</blockquote><h4><a name = "tag_000_010_441">&nbsp;</a>ERRORS</h4><blockquote>In addition to the error conditions specified on<i><a href="waitpid.html">waitpid()</a></i>,under the following conditions,<i>wait3()</i>may fail and set <i>errno</i> to:<dl compact><dt>[ECHILD]<dd>The calling process has no existing unwaited-for child processes, or if theset of processes specified by the argument <i>pid</i> can never be in thestates specified by the argument <i>options</i>.<dt>[ENOSYS]<dd>The<i>wait3()</i>function is not supported on this implementation.</dl></blockquote><h4><a name = "tag_000_010_442">&nbsp;</a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_443">&nbsp;</a>APPLICATION USAGE</h4><blockquote>New applications should use<i><a href="waitpid.html">waitpid()</a></i>.</blockquote><h4><a name = "tag_000_010_444">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_445">&nbsp;</a>SEE ALSO</h4><blockquote><i><a href="exec.html">exec</a></i>,<i><a href="exit.html">exit()</a></i>,<i><a href="fork.html">fork()</a></i>,<i><a href="pause.html">pause()</a></i>,<i><a href="waitpid.html">waitpid()</a></i>,<i><a href="syswait.h.html">&lt;sys/wait.h&gt;</a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX &reg; is a registered Trademark of The Open Group.<br>Copyright &copy; 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>

⌨️ 快捷键说明

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