#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
Go to the source code of this file.
◆ _FCALL
◆ trace_cf
| #define trace_cf trace_cf_ |
◆ ARRET()
◆ arret_()
◆ arret_c()
Calls the Fortran Arret routine for termination
n is the error termination
Definition at line 132 of file write_routtines.c.
137{
138
139#ifdef _WIN64
141#else
143#endif
144}
◆ ignoreCore()
Definition at line 61 of file traceback_handler.c.
62{
63 int iw = 1, is;
64 if (s == SIGBUS ) is=1;
65 else if(s == SIGFPE ) is=2;
66 else if(s == SIGSEGV) is=3;
67
69}
◆ SETIGNORECORE()
| void _FCALL SETIGNORECORE |
( |
int * | on | ) |
|
◆ setignorecore()
| void setignorecore |
( |
int * | on | ) |
|
Definition at line 89 of file traceback_handler.c.
90{
91if (*on ) {
92#ifdef SIGBUS
94#endif
95#ifdef SIGFPE
97#endif
98#ifdef SIGSEGV
100#endif
101#ifdef SIGILL
103#endif
104}
105else {
106#ifdef SIGBUS
107 signal (SIGBUS, SIG_DFL);
108#endif
109#ifdef SIGFPE
110 signal (SIGFPE, SIG_DFL);
111#endif
112#ifdef SIGSEGV
113 signal (SIGSEGV, SIG_DFL);
114#endif
115#ifdef SIGILL
116 signal (SIGILL, SIG_DFL);
117#endif
118}
119
120#ifdef SIGINT
122#endif
123
124#ifdef SIGABRT
126#endif
127
128#ifdef SIGBREAK
130#endif
131
132#ifdef SIGTERM
134#endif
135}
◆ setignorecore_()
| void setignorecore_ |
( |
int * | on | ) |
|
◆ setignorecore__()
| void setignorecore__ |
( |
int * | on | ) |
|
◆ trace_cf()
| void trace_cf |
( |
int * | s, |
|
|
int * | iw ) |
◆ user_abrt()
| void user_abrt |
( |
int | sig | ) |
|
Definition at line 72 of file traceback_handler.c.
73{
74 int val=3;
75 printf("\n\nUser or system abort detected (CTRL-C) !\n\n");
77}