summaryrefslogtreecommitdiff
path: root/devdocs/c/program%2Fsig_types.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/c/program%2Fsig_types.html
new repository
Diffstat (limited to 'devdocs/c/program%2Fsig_types.html')
-rw-r--r--devdocs/c/program%2Fsig_types.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/devdocs/c/program%2Fsig_types.html b/devdocs/c/program%2Fsig_types.html
new file mode 100644
index 00000000..12f7b29f
--- /dev/null
+++ b/devdocs/c/program%2Fsig_types.html
@@ -0,0 +1,32 @@
+ <h1 id="firstHeading" class="firstHeading">SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE</h1> <table class="t-dcl-begin"> <tr class="t-dsc-header"> <th> Defined in header <code>&lt;signal.h&gt;</code> </th> <th> </th> <th> </th> </tr> <tr class="t-dcl"> <td class="t-dcl-nopad"> <pre data-language="c">#define SIGTERM /*implementation defined*/</pre>
+</td> <td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl"> <td class="t-dcl-nopad"> <pre data-language="c">#define SIGSEGV /*implementation defined*/</pre>
+</td> <td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl"> <td class="t-dcl-nopad"> <pre data-language="c">#define SIGINT /*implementation defined*/</pre>
+</td> <td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl"> <td class="t-dcl-nopad"> <pre data-language="c">#define SIGILL /*implementation defined*/</pre>
+</td> <td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl"> <td class="t-dcl-nopad"> <pre data-language="c">#define SIGABRT /*implementation defined*/</pre>
+</td> <td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl"> <td class="t-dcl-nopad"> <pre data-language="c">#define SIGFPE /*implementation defined*/</pre>
+</td> <td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> </table> <p>Each of the above macro constants expands to an integer constant expression with distinct values, which represent different signals sent to the program.</p>
+<table class="t-dsc-begin"> <tr class="t-dsc-hitem"> <th> Constant </th> <th> Explanation </th>
+</tr> <tr class="t-dsc"> <td> <code>SIGTERM</code> </td> <td> termination request, sent to the program </td>
+</tr> <tr class="t-dsc"> <td> <code>SIGSEGV</code> </td> <td> invalid memory access (segmentation fault) </td>
+</tr> <tr class="t-dsc"> <td> <code>SIGINT</code> </td> <td> external interrupt, usually initiated by the user </td>
+</tr> <tr class="t-dsc"> <td> <code>SIGILL</code> </td> <td> invalid program image, such as invalid instruction </td>
+</tr> <tr class="t-dsc"> <td> <code>SIGABRT</code> </td> <td> abnormal termination condition, as is e.g. initiated by <code><a href="abort" title="c/program/abort">abort()</a></code> </td>
+</tr> <tr class="t-dsc"> <td> <code>SIGFPE</code> </td> <td> erroneous arithmetic operation such as divide by zero </td>
+</tr> </table> <h3 id="References"> References</h3> <ul>
+<li> C17 standard (ISO/IEC 9899:2018): </li>
+<ul><li> 7.14/3 Signal handling &lt;signal.h&gt; (p: 193) </li></ul>
+<li> C11 standard (ISO/IEC 9899:2011): </li>
+<ul><li> 7.14/3 Signal handling &lt;signal.h&gt; (p: 265) </li></ul>
+<li> C99 standard (ISO/IEC 9899:1999): </li>
+<ul><li> 7.14/3 Signal handling &lt;signal.h&gt; (p: 246) </li></ul>
+<li> C89/C90 standard (ISO/IEC 9899:1990): </li>
+<ul><li> 4.7 SIGNAL HANDLING &lt;signal.h&gt; </li></ul>
+</ul> <h3 id="See_also"> See also</h3> <table class="t-dsc-begin"> <tr class="t-dsc"> <td> <div><a href="signal" title="c/program/signal"> <span class="t-lines"><span>signal</span></span></a></div> </td> <td> sets a signal handler for particular signal <br> <span class="t-mark">(function)</span> </td>
+</tr> <tr class="t-dsc"> <td> <div><a href="raise" title="c/program/raise"> <span class="t-lines"><span>raise</span></span></a></div> </td> <td> runs the signal handler for particular signal <br> <span class="t-mark">(function)</span> </td>
+</tr> <tr class="t-dsc"> <td colspan="2"> <span><a href="https://en.cppreference.com/w/cpp/utility/program/SIG_types" title="cpp/utility/program/SIG types">C++ documentation</a></span> for <span class=""><span>signal types</span></span> </td>
+</tr> </table> <div class="_attribution">
+ <p class="_attribution-p">
+ &copy; cppreference.com<br>Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.<br>
+ <a href="https://en.cppreference.com/w/c/program/SIG_types" class="_attribution-link">https://en.cppreference.com/w/c/program/SIG_types</a>
+ </p>
+</div>