Various error-handling functions. More...
#include <GKlib.h>
Go to the source code of this file.
Macros | |
| #define | _GK_ERROR_C_ |
| #define | MAX_JBUFS 128 |
Typedefs | |
| typedef void(* | gksighandler_t) (int) |
Functions | |
| void | errexit (char *f_str,...) |
| void | gk_errexit (int signum, char *f_str,...) |
| void | gk_NonLocalExit_Handler (int signum) |
| void | gk_set_exit_on_error (int value) |
| void | gk_SetSignalHandlers () |
| void | gk_sigthrow (int signum) |
| int | gk_sigtrap () |
| int | gk_siguntrap () |
| char * | gk_strerror (int errnum) |
| Thread-safe implementation of strerror() More... | |
| void | gk_UnsetSignalHandlers () |
| void | PrintBackTrace () |
Variables | |
| __thread int | gk_cur_jbufs =-1 |
| static int | gk_exit_on_error = 1 |
| __thread jmp_buf | gk_jbuf |
| __thread jmp_buf | gk_jbufs [MAX_JBUFS] |
| static __thread gksighandler_t | old_SIGERR_handler |
| static __thread gksighandler_t | old_SIGERR_handlers [MAX_JBUFS] |
| static __thread gksighandler_t | old_SIGMEM_handler |
| static __thread gksighandler_t | old_SIGMEM_handlers [MAX_JBUFS] |
Various error-handling functions.
This file contains functions dealing with error reporting and termination
$Id: error.c 10711 2011-08-31 22:23:04Z karypis $
Definition in file error.c.
| #define _GK_ERROR_C_ |
| void errexit | ( | char * | f_str, |
| ... | |||
| ) |
| void gk_errexit | ( | int | signum, |
| char * | f_str, | ||
| ... | |||
| ) |
| void gk_set_exit_on_error | ( | int | value | ) |
| void gk_sigthrow | ( | int | signum | ) |
| int gk_sigtrap | ( | ) |
| int gk_siguntrap | ( | ) |
| char* gk_strerror | ( | int | errnum | ) |
|
static |
|
static |
|
static |
|
static |