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 ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_001_050"> </a>NAME</h4><blockquote>abort - generate an abnormal process abort</blockquote><h4><a name = "tag_000_001_051"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="stdlib.h.html">stdlib.h</a>>void abort(void);</code></pre></blockquote><h4><a name = "tag_000_001_052"> </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"> </a>RETURN VALUE</h4><blockquote>The<i>abort()</i>function does not return.</blockquote><h4><a name = "tag_000_001_054"> </a>ERRORS</h4><blockquote>No errors are defined.</blockquote><h4><a name = "tag_000_001_055"> </a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_001_056"> </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"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_001_058"> </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 ® 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 + -
显示快捷键?