pause.html

来自「unix 下的C开发手册,还用详细的例程。」· HTML 代码 · 共 77 行

HTML
77
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>pause</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_007_946">&nbsp;</a>NAME</h4><blockquote>pause - suspend the thread until signal is received</blockquote><h4><a name = "tag_000_007_947">&nbsp;</a>SYNOPSIS</h4><blockquote><pre><code>#include &lt;<a href="unistd.h.html">unistd.h</a>&gt;int pause(void);</code></pre></blockquote><h4><a name = "tag_000_007_948">&nbsp;</a>DESCRIPTION</h4><blockquote>The<i>pause()</i>function suspends the calling thread until delivery of a signalwhose action is either to execute a signal-catching function orto terminate the process.<p>If the action is to terminate the process,<i>pause()</i>will not return.<p>If the action is to execute a signal-catching function,<i>pause()</i>will return after the signal-catching function returns.</blockquote><h4><a name = "tag_000_007_949">&nbsp;</a>RETURN VALUE</h4><blockquote>Since<i>pause()</i>suspends thread execution indefinitely unless interrupted by a signal, thereis no successful completion return value.  A value of -1 is returned and<i>errno</i>is set to indicate the error.</blockquote><h4><a name = "tag_000_007_950">&nbsp;</a>ERRORS</h4><blockquote>The<i>pause()</i>function will fail if:<dl compact><dt>[EINTR]<dd>A signal is caught by the calling process and control is returnedfrom the signal-catching function.</dl></blockquote><h4><a name = "tag_000_007_951">&nbsp;</a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_952">&nbsp;</a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_953">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_954">&nbsp;</a>SEE ALSO</h4><blockquote><i><a href="sigsuspend.html">sigsuspend()</a></i>,<i><a href="unistd.h.html">&lt;unistd.h&gt;</a></i>.</blockquote><h4>DERIVATION</h4><blockquote>Derived from Issue 1 of the SVID.</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 + =
减小字号Ctrl + -
显示快捷键?