#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 60 of file traceback_handler.c.
61{
62 int iw = 1, is;
63 if (s == SIGBUS ) is=1;
64 else if(s == SIGFPE ) is=2;
65 else if(s == SIGSEGV) is=3;
66
68
69}
◆ SETIGNORECORE()
| void _FCALL SETIGNORECORE |
( |
int * | on | ) |
|
◆ setignorecore()
| void setignorecore |
( |
int * | on | ) |
|
Definition at line 90 of file traceback_handler.c.
91{
92 if (*on) {
93#ifdef SIGBUS
95#endif
96#ifdef SIGFPE
98#endif
99#ifdef SIGSEGV
101#endif
102 }
103 else {
104#ifdef SIGBUS
105 signal (SIGBUS, SIG_DFL);
106#endif
107#ifdef SIGFPE
108 signal (SIGFPE, SIG_DFL);
109#endif
110#ifdef SIGSEGV
111 signal (SIGSEGV, SIG_DFL);
112#endif
113 }
114
115#ifdef SIGINT
117#endif
118
119#ifdef SIGABRT
121#endif
122
123#ifdef SIGBREAK
125#endif
126
127#ifdef SIGTERM
129#endif
130}
◆ 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 73 of file traceback_handler.c.
74{
75 int val=6;
76 printf("\n\nUser or system abort detected (CTRL-C) !\n\n");
78}