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 ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_007_946"> </a>NAME</h4><blockquote>pause - suspend the thread until signal is received</blockquote><h4><a name = "tag_000_007_947"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="unistd.h.html">unistd.h</a>>int pause(void);</code></pre></blockquote><h4><a name = "tag_000_007_948"> </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"> </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"> </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"> </a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_952"> </a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_953"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_954"> </a>SEE ALSO</h4><blockquote><i><a href="sigsuspend.html">sigsuspend()</a></i>,<i><a href="unistd.h.html"><unistd.h></a></i>.</blockquote><h4>DERIVATION</h4><blockquote>Derived from Issue 1 of the SVID.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 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 + -
显示快捷键?