abort.html

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

HTML
80
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>abort</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_001_050">&nbsp;</a>NAME</h4><blockquote>abort - generate an abnormal process abort</blockquote><h4><a name = "tag_000_001_051">&nbsp;</a>SYNOPSIS</h4><blockquote><pre><code>#include &lt;<a href="stdlib.h.html">stdlib.h</a>&gt;void abort(void);</code></pre></blockquote><h4><a name = "tag_000_001_052">&nbsp;</a>DESCRIPTION</h4><blockquote>The<i>abort()</i>function causes abnormal process termination to occur, unlessthe signal SIGABRT is being caught and the signal handler doesnot return.The abnormal termination processing includes at least the effect of<i><a href="fclose.html">fclose()</a></i>on all open streams,and message catalogue descriptors,and the default actions definedfor SIGABRT. The SIGABRT signal is sent to the calling processas if by means of<i><a href="raise.html">raise()</a></i>with the argument SIGABRT.<p>The status made available to<i><a href="wait.html">wait()</a></i>or<i><a href="waitpid.html">waitpid()</a></i>by<i>abort()</i>will be that of a process terminated by the SIGABRT signal.  The<i>abort()</i>function will override blocking or ignoring the SIGABRT signal.</blockquote><h4><a name = "tag_000_001_053">&nbsp;</a>RETURN VALUE</h4><blockquote>The<i>abort()</i>function does not return.</blockquote><h4><a name = "tag_000_001_054">&nbsp;</a>ERRORS</h4><blockquote>No errors are defined.</blockquote><h4><a name = "tag_000_001_055">&nbsp;</a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_001_056">&nbsp;</a>APPLICATION USAGE</h4><blockquote>Catching the signal is intended to provide the application writer witha portable means to abort processing, free from possible interferencefrom any implementation-provided library functions.  If SIGABRT is neithercaught nor ignored, and the current directory is writable, a core dump maybe produced.</blockquote><h4><a name = "tag_000_001_057">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_001_058">&nbsp;</a>SEE ALSO</h4><blockquote><i><a href="exit.html">exit()</a></i>,<i><a href="kill.html">kill()</a></i>,<i><a href="raise.html">raise()</a></i>,<i><a href="signal.html">signal()</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 + -
显示快捷键?