My Project
Loading...
Searching...
No Matches
Functions | Variables
cntrlc.h File Reference
#include <setjmp.h>
#include "kernel/mod2.h"
#include "kernel/structs.h"

Go to the source code of this file.

Functions

void init_signals (void)
 init signal handlers and error handling for libraries: NTL, factory More...
 

Variables

EXTERN_VAR jmp_buf si_start_jmpbuf
 
EXTERN_VAR short si_restart
 
EXTERN_VAR int siRandomStart
 
EXTERN_VAR BOOLEAN singular_in_batchmode
 
EXTERN_VAR volatile BOOLEAN do_shutdown
 
EXTERN_VAR volatile int defer_shutdown
 

Function Documentation

◆ init_signals()

void init_signals ( void  )

init signal handlers and error handling for libraries: NTL, factory

Definition at line 527 of file cntrlc.cc.

528{
529// signal handler -------------------------------------------------------
530 #ifdef SIGSEGV
532 #endif
533 #ifdef SIGBUS
535 #endif
536 #ifdef SIGFPE
538 #endif
539 #ifdef SIGILL
541 #endif
542 #ifdef SIGIOT
544 #endif
549}
void sig_pipe_hdl(int)
Definition: cntrlc.cc:64
si_hdl_typ si_set_signal(int sig, si_hdl_typ signal_handler)
meta function for binding a signal to an handler
Definition: cntrlc.cc:118
void sig_term_hdl(int)
Definition: cntrlc.cc:77
void sigint_handler(int)
Definition: cntrlc.cc:266
void(* si_hdl_typ)(int)
Definition: cntrlc.cc:96
void sigsegv_handler(int sig)
Definition: cntrlc.cc:234

Variable Documentation

◆ defer_shutdown

EXTERN_VAR volatile int defer_shutdown

Definition at line 23 of file cntrlc.h.

◆ do_shutdown

EXTERN_VAR volatile BOOLEAN do_shutdown

Definition at line 22 of file cntrlc.h.

◆ si_restart

EXTERN_VAR short si_restart

Definition at line 14 of file cntrlc.h.

◆ si_start_jmpbuf

EXTERN_VAR jmp_buf si_start_jmpbuf

Definition at line 13 of file cntrlc.h.

◆ singular_in_batchmode

EXTERN_VAR BOOLEAN singular_in_batchmode

Definition at line 18 of file cntrlc.h.

◆ siRandomStart

EXTERN_VAR int siRandomStart

Definition at line 15 of file cntrlc.h.