SU2
Macros | Typedefs | Functions | Variables
error.c File Reference

Various error-handling functions. More...

#include <GKlib.h>

Macros

#define _GK_ERROR_C_
 
#define MAX_JBUFS   128
 

Typedefs

typedef void(* gksighandler_t) (int)
 

Functions

void gk_set_exit_on_error (int value)
 
void errexit (char *f_str,...)
 
void gk_errexit (int signum, char *f_str,...)
 
int gk_sigtrap ()
 
int gk_siguntrap ()
 
void gk_sigthrow (int signum)
 
void gk_SetSignalHandlers ()
 
void gk_UnsetSignalHandlers ()
 
void gk_NonLocalExit_Handler (int signum)
 
char * gk_strerror (int errnum)
 Thread-safe implementation of strerror()
 
void PrintBackTrace ()
 

Variables

int gk_cur_jbufs =-1
 
jmp_buf gk_jbufs [MAX_JBUFS]
 
jmp_buf gk_jbuf
 

Detailed Description

Various error-handling functions.

This file contains functions dealing with error reporting and termination

Author
George
Date
1/1/2007
Version
$Id: error.c 10711 2011-08-31 22:23:04Z karypis $ 

Macro Definition Documentation

§ _GK_ERROR_C_

#define _GK_ERROR_C_
Value:
/* this is needed to properly declare the gk_jub* variables
as an extern function in GKlib.h */

Function Documentation

§ errexit()

void errexit ( char *  f_str,
  ... 
)

This function prints an error message and exits

§ gk_errexit()

void gk_errexit ( int  signum,
char *  f_str,
  ... 
)

This function prints an error message and raises a signum signal

§ gk_set_exit_on_error()

void gk_set_exit_on_error ( int  value)

This function sets the gk_exit_on_error variable

§ gk_sigthrow()

void gk_sigthrow ( int  signum)

This function is the custome signal handler, which all it does is to perform a longjump to the most recent saved environment

§ gk_sigtrap()

int gk_sigtrap ( )

This function sets a number of signal handlers and sets the return point of a longjmp

§ gk_siguntrap()

int gk_siguntrap ( )

This function sets the handlers for the signals to their default handlers