osprey/be/opt/opt_error.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include "defs.h"
#include "opt_defs.h"
#include "opt_error.h"

Include dependency graph for opt_error.c:

Go to the source code of this file.

Data Types

type  err_info

Defines

#define _GNU_SOURCE

Functions/Subroutines

static void error_routine (unsigned doexit, const char *err_type, INT err_num, const char *fmt, va_list ap)
static void opt_fatal (INT errnum, va_list ap)
static void opt_error (INT errnum, va_list ap)
static void opt_verbose (INT errnum, va_list ap)
static void opt_info (INT errnum, va_list ap)
void OPT_Error (INT type, INT errnum,...)
void OPT_Error_Fmt (INT type, const char *fmt_str,...)
static void signal_cleanup (void)
static void catch (int sig, int error_num)
void Opt_Catch_Signals (void)

Variables

static char * source_file = __FILE__
static char * rcs_id = "$Source: /home/bos/bk/kpro64-pending/be/opt/SCCS/s.opt_error.c $ $Revision: 1.5 $"
char * opt_Abort_File = NULL
INT opt_Abort_Loc = 0
static INT opt_num_errors
static BOOL infoflag = TRUE
static BOOL verbose = TRUE
struct err_info err_str [MAX_ERN_NUMBER]


Define Documentation

#define _GNU_SOURCE

Definition at line 56 of file opt_error.c.


Function Documentation

static void catch ( int  sig,
int  error_num 
) [static]

Definition at line 218 of file opt_error.c.

References exit(), fflush(), fprintf(), msg, SIGBUS, signal(), signal_cleanup(), strerror(), and strsignal().

static void error_routine ( unsigned  doexit,
const char *  err_type,
INT  err_num,
const char *  fmt,
va_list  ap 
) [static]

void Opt_Catch_Signals ( void   ) 

Definition at line 235 of file opt_error.c.

References SIGBUS, SIGEMT, SIGIOT, signal(), SIGQUIT, and SIGTRAP.

void OPT_Error ( INT  type,
INT  errnum,
  ... 
)

static void opt_error ( INT  errnum,
va_list  ap 
) [static]

Definition at line 131 of file opt_error.c.

References ERN_IGNORED, error_routine(), FALSE, OPT_ASSERT, opt_num_errors, and str.

Referenced by OPT_Error().

void OPT_Error_Fmt ( INT  type,
const char *  fmt_str,
  ... 
)

Definition at line 181 of file opt_error.c.

References BOOL, ER_ERROR, ER_FATAL, ER_INFO, ER_VERBOSE, ERN_IGNORED, error_routine(), FALSE, TRUE, va_end, and va_start.

static void opt_fatal ( INT  errnum,
va_list  ap 
) [static]

Definition at line 118 of file opt_error.c.

References ERN_IGNORED, ERN_INTERNAL, error(), error_routine(), str, and TRUE.

Referenced by OPT_Error().

static void opt_info ( INT  errnum,
va_list  ap 
) [static]

Definition at line 148 of file opt_error.c.

References ERN_IGNORED, error_routine(), FALSE, infoflag, OPT_ASSERT, and str.

Referenced by OPT_Error().

static void opt_verbose ( INT  errnum,
va_list  ap 
) [static]

Definition at line 140 of file opt_error.c.

References ERN_IGNORED, error_routine(), FALSE, OPT_ASSERT, and str.

Referenced by OPT_Error().

static void signal_cleanup ( void   )  [static]

Definition at line 212 of file opt_error.c.

Referenced by catch().


Variable Documentation

struct err_info err_str[MAX_ERN_NUMBER]

BOOL infoflag = TRUE [static]

Definition at line 84 of file opt_error.c.

Referenced by opt_info().

char* opt_Abort_File = NULL

Definition at line 80 of file opt_error.c.

Referenced by error_routine().

Definition at line 81 of file opt_error.c.

Referenced by error_routine().

INT opt_num_errors [static]

Definition at line 83 of file opt_error.c.

Referenced by opt_error().

char* rcs_id = "$Source: /home/bos/bk/kpro64-pending/be/opt/SCCS/s.opt_error.c $ $Revision: 1.5 $" [static]

Definition at line 54 of file opt_error.c.

char* source_file = __FILE__ [static]

Definition at line 53 of file opt_error.c.

BOOL verbose = TRUE [static]


Generated on Wed Apr 8 14:35:10 2009 for Open64 by  doxygen 1.5.6