From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/c/program%2Fsig_types.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 devdocs/c/program%2Fsig_types.html (limited to 'devdocs/c/program%2Fsig_types.html') 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 @@ +

SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE

Defined in header <signal.h>
#define SIGTERM /*implementation defined*/
+
#define SIGSEGV /*implementation defined*/
+
#define SIGINT /*implementation defined*/
+
#define SIGILL /*implementation defined*/
+
#define SIGABRT /*implementation defined*/
+
#define SIGFPE /*implementation defined*/
+

Each of the above macro constants expands to an integer constant expression with distinct values, which represent different signals sent to the program.

+ + + + + + + +
Constant Explanation
SIGTERM termination request, sent to the program
SIGSEGV invalid memory access (segmentation fault)
SIGINT external interrupt, usually initiated by the user
SIGILL invalid program image, such as invalid instruction
SIGABRT abnormal termination condition, as is e.g. initiated by abort()
SIGFPE erroneous arithmetic operation such as divide by zero

References

See also

+ + +
sets a signal handler for particular signal
(function)
runs the signal handler for particular signal
(function)
C++ documentation for signal types
+

+ © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
+ https://en.cppreference.com/w/c/program/SIG_types +

+
-- cgit v1.2.3