SCALE-RM
Functions
scale_sys_sigvars.c File Reference
#include <signal.h>
Include dependency graph for scale_sys_sigvars.c:

Go to the source code of this file.

Functions

int get_sigint (int *ifail)
 
int get_sigquit (int *ifail)
 
int get_sigabrt (int *ifail)
 
int get_sigfpe (int *ifail)
 
int get_sigsegv (int *ifail)
 
int get_sigterm (int *ifail)
 

Function Documentation

◆ get_sigint()

int get_sigint ( int *  ifail)

Definition at line 8 of file scale_sys_sigvars.c.

9 {
10  if (SIGINT < 0) {
11  *ifail = 1;
12  return 0;
13  }
14  else {
15  *ifail = 0;
16  return SIGINT;
17  }
18 }

Referenced by scale_sigvars::sigvars_get_all().

Here is the caller graph for this function:

◆ get_sigquit()

int get_sigquit ( int *  ifail)

Definition at line 20 of file scale_sys_sigvars.c.

21 {
22  if (SIGQUIT < 0) {
23  *ifail = 1;
24  return 0;
25  }
26  else {
27  *ifail = 0;
28  return SIGQUIT;
29  }
30 }

Referenced by scale_sigvars::sigvars_get_all().

Here is the caller graph for this function:

◆ get_sigabrt()

int get_sigabrt ( int *  ifail)

Definition at line 32 of file scale_sys_sigvars.c.

33 {
34  if (SIGABRT < 0) {
35  *ifail = 1;
36  return 0;
37  }
38  else {
39  *ifail = 0;
40  return SIGABRT;
41  }
42 }

Referenced by scale_sigvars::sigvars_get_all().

Here is the caller graph for this function:

◆ get_sigfpe()

int get_sigfpe ( int *  ifail)

Definition at line 44 of file scale_sys_sigvars.c.

45 {
46  if (SIGFPE < 0) {
47  *ifail = 1;
48  return 0;
49  }
50  else {
51  *ifail = 0;
52  return SIGFPE;
53  }
54 }

Referenced by scale_sigvars::sigvars_get_all().

Here is the caller graph for this function:

◆ get_sigsegv()

int get_sigsegv ( int *  ifail)

Definition at line 56 of file scale_sys_sigvars.c.

57 {
58  if (SIGSEGV < 0) {
59  *ifail = 1;
60  return 0;
61  }
62  else {
63  *ifail = 0;
64  return SIGSEGV;
65  }
66 }

Referenced by scale_sigvars::sigvars_get_all().

Here is the caller graph for this function:

◆ get_sigterm()

int get_sigterm ( int *  ifail)

Definition at line 68 of file scale_sys_sigvars.c.

69 {
70  if (SIGTERM < 0) {
71  *ifail = 1;
72  return 0;
73  }
74  else {
75  *ifail = 0;
76  return SIGTERM;
77  }
78 }

Referenced by scale_sigvars::sigvars_get_all().

Here is the caller graph for this function: