Cross reference for modules/er/er.c of index.

# File modules/er/er.c

      $Revision: 1.13 $

      Error reporting (er) er.c - library of functions to uniformly report errors.

      Status: NOT REVUED, TESTED, PROVISIONAL

      Design and implementation by: Marek Bukowy

References Variables: | ER_mod_err | modules/er/er.c
| IP_mod_err | modules/er/er.c
| PW_mod_err | modules/er/er.c
| QC_mod_err | modules/er/er.c
| QI_mod_err | modules/er/er.c
| RP_mod_err | modules/er/er.c
| RX_mod_err | modules/er/er.c
| SK_mod_err | modules/er/er.c
| SQ_mod_err | modules/er/er.c
| TH_mod_err | modules/er/er.c
| UP_mod_err | modules/er/er.c
| UT_mod_err | modules/er/er.c
| WH_mod_err | modules/er/er.c

## Included Files

- `#include "modules/er/erroutines.h"`
  - `#include <stdio.h>`
  - `#include <unistd.h>`
  - `#include <stdlib.h>`
  - `#include <assert.h>`
  - `#include <time.h>`
  - `#include <stdarg.h>`
  - `#include <strings.h>`
  - `#include <include/bitmask.h>`
  - `#include <include/er_aspects.h>`
  - `#include <include/stubs.h>`
  - `#include "modules/er/er_facilities.h"`
    - `#include <include/erroutines.h>`
    - `#include "modules/er/er_ER_errors.h"`
    - `#include "include/er_IP_errors.h"`
    - `#include "include/er_RX_errors.h"`
    - `#include "include/er_UP_errors.h"`
    - `#include "include/er_UT_errors.h"`
    - `#include "include/er_WH_errors.h"`
    - `#include "include/er_RP_errors.h"`
    - `#include "include/er_QI_errors.h"`
    - `#include "include/er_QC_errors.h"`
    - `#include "include/er_PW_errors.h"`
    - `#include "include/er_SK_errors.h"`
    - `#include "include/er_TH_errors.h"`
    - `#include "include/er_SQ_errors.h"`

- `#include <pthread.h>`

- `#include <time.h>`

## Preprocessor definitions

`#define ER_IMPL`

## Global Variable er_level_a

`er_level_t er_level_a[]`

Included from | modules/er/erroutines.h
Visible in: |  | modules/au/AU_util.c
|  | modules/er/er.c
Used in: | er_getsev() | modules/er/er.c

## Global Variable ER_mod_err

`er_list_t ER_mod_err[]`

Included from | modules/er/er_ER_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable IP_mod_err

`er_list_t IP_mod_err[]`

Included from | include/er_IP_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable RX_mod_err

`er_list_t RX_mod_err[]`

Included from | include/er_RX_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable UP_mod_err

`er_list_t UP_mod_err[]`

Included from | include/er_UP_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable UT_mod_err

`er_list_t UT_mod_err[]`

Included from | include/er_UT_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable WH_mod_err

`er_list_t WH_mod_err[]`

Included from | include/er_WH_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable RP_mod_err

`er_list_t RP_mod_err[]`

Included from | include/er_RP_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable QI_mod_err

`er_list_t QI_mod_err[]`

Included from | include/er_QI_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable QC_mod_err

`er_list_t QC_mod_err[]`

Included from | include/er_QC_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable PW_mod_err

`er_list_t PW_mod_err[]`

Included from | include/er_PW_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable SK_mod_err

`er_list_t SK_mod_err[]`

Included from | include/er_SK_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable TH_mod_err

`er_list_t TH_mod_err[]`

Included from | include/er_TH_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable SQ_mod_err

`er_list_t SQ_mod_err[]`

Included from | include/er_SQ_errors.h
Visible in: |  | modules/er/er.c
Used in: |  | modules/er/er.c

## Global Variable er_main_err

`er_main_t er_main_err[]`

Included from | modules/er/er_facilities.h
Visible in: |  | modules/au/AU_util.c
|  | modules/er/er.c
Used in: | er_getfacsym() | modules/er/er.c
| er_getmsg_parts() | modules/er/er.c

## Global Variable er_progname

`char er_progname[32]`

Included from | modules/er/erroutines.h
Visible in: |  | modules/er/er.c
Used in: | ER_init() | modules/er/er.c
| er_getmsg_parts() | modules/er/er.c

## Global Variable er_pid

`char er_pid[16]`

Included from | modules/er/erroutines.h
Visible in: |  | modules/er/er.c
Used in: | ER_init() | modules/er/er.c
| er_getmsg_parts() | modules/er/er.c

## Global Variable er_provisional_struct

`er_path_t er_provisional_struct`

Included from | modules/er/erroutines.h
Visible in: |  | modules/er/er.c
Used in: | ER_anybody_wants() | modules/er/er.c
| ER_asp_va() | modules/er/er.c
| ER_dbg_va() | modules/er/er.c
| ER_is_traced() | modules/er/er.c
| ER_perror() | modules/er/er.c
| ER_setpath() | modules/er/er.c
| er_logit() | modules/er/er.c

## Global Variable er_pathlist_mutex

`pthread_mutex_t er_pathlist_mutex`

Included from | modules/er/erroutines.h
Visible in: |  | modules/er/er.c
Used in: | ER_anybody_wants() | modules/er/er.c
| ER_setpath() | modules/er/er.c
| er_get_printmode() | modules/er/er.c

## Global Variable er_pathlist_mutex_initialised

`int er_pathlist_mutex_initialised`

Included from | modules/er/erroutines.h
Visible in: |  | modules/er/er.c
Used in: | ER_setpath() | modules/er/er.c

## Global Function ER_anybody_wants()

`int ER_anybody_wants ( int facwhere, int errcode, er_mask_t asp )`

Prototyped in: | modules/er/erroutines.h
Calls: | pthread_mutex_lock(), pthread_mutex_unlock()
Called by: | ER_perror() | modules/er/er.c
References Variables: | er_pathlist_mutex | modules/er/er.c
| er_provisional_struct | modules/er/er.c

## Global Function ER_asp_va()

`void ER_asp_va ( int facwhere, int sev, er_mask_t asp, char* txt, va_list args )`

Calls: | er_get_printmode() | modules/er/er.c
| er_getmsg_parts() | modules/er/er.c
| er_logit() | modules/er/er.c
Called by: | ER_inf_va() | modules/er/er.c
References Variables: | er_provisional_struct | modules/er/er.c

## Global Function ER_dbg_va()

`void ER_dbg_va ( int facwhere, er_mask_t asp, char* txt, ... )`

Prototyped in: | modules/er/erroutines.h
Calls: | ER_is_traced() | modules/er/er.c
| er_get_printmode() | modules/er/er.c
| er_getmsg_parts() | modules/er/er.c
| er_logit() | modules/er/er.c
| __builtin_next_arg(), __builtin_saveregs()
References Variables: | er_provisional_struct | modules/er/er.c

## Global Function ER_inf_va()

`void ER_inf_va ( int facwhere, er_mask_t asp, char* txt, ... )`

Prototyped in: | modules/er/erroutines.h
Calls: | ER_asp_va() | modules/er/er.c
| __builtin_next_arg(), __builtin_saveregs()

## Global Function ER_init()

`void ER_init ( int argc, char** argv )`

Prototyped in: | modules/er/erroutines.h
Calls: | getpid(), rindex(), snprintf(), strncpy()
References Variables: | er_pid | modules/er/er.c
| er_progname | modules/er/er.c

## Global Function ER_is_traced()

`int ER_is_traced ( int facwhere, er_mask_t asp )`

Prototyped in: | modules/er/erroutines.h
Called by: | ER_dbg_va() | modules/er/er.c
| er_logit() | modules/er/er.c
References Variables: | er_provisional_struct | modules/er/er.c

## Global Function ER_perror()

`void ER_perror ( int facwhere, int errcode, char* format, ... )`

Prototyped in: | modules/er/erroutines.h
Calls: | ER_anybody_wants() | modules/er/er.c
| er_get_printmode() | modules/er/er.c
| er_getmsg_parts() | modules/er/er.c
| er_logit() | modules/er/er.c
| __builtin_next_arg(), __builtin_saveregs()
References Variables: | er_provisional_struct | modules/er/er.c

## Global Function ER_setpath()

`void ER_setpath ( er_path_t* newset )`

Prototyped in: | modules/er/erroutines.h
Calls: | memcpy(), pthread_mutex_init(), pthread_mutex_lock(), pthread_mutex_unlock()
References Variables: | er_pathlist_mutex | modules/er/er.c
| er_pathlist_mutex_initialised | modules/er/er.c
| er_provisional_struct | modules/er/er.c

## Global Function NOERR()

`int NOERR ( er_ret_t a )`

Prototyped in: | modules/er/erroutines.h
Called by: | AC_asc_acl_command_set() | modules/ac/access_control.c
| AC_asc_all_set() | modules/ac/access_control.c
| AC_asc_ban_set() | modules/ac/access_control.c
| AC_ban_set() | modules/ac/access_control.c
| AC_commit() | modules/ac/access_control.c
| AC_commit_credit() | modules/ac/access_control.c
| AC_findcreate_acl_l() | modules/ac/access_control.c

## Global Function er_get_printmode()

`int er_get_printmode ( er_path_t* pathstruct )`

Calls: | pthread_mutex_lock(), pthread_mutex_unlock()
Called by: | ER_asp_va() | modules/er/er.c
| ER_dbg_va() | modules/er/er.c
| ER_perror() | modules/er/er.c
References Variables: | er_pathlist_mutex | modules/er/er.c

## Global Function er_getfacsym()

`char* er_getfacsym ( int faccode )`

Called by: | er_getmsg_parts() | modules/er/er.c
References Variables: | er_main_err | modules/er/er.c

## Global Function er_getmsg_parts()

`char* er_getmsg_parts ( int facwhere, int errcode, int mode, char* buf, char* fmttxt, va_list args )`

Calls: | er_getfacsym() | modules/er/er.c
| er_getsev() | modules/er/er.c
| __eprintf(), pthread_self(), snprintf(), sprintf(), vsnprintf()
Called by: | ER_asp_va() | modules/er/er.c
| ER_dbg_va() | modules/er/er.c
| ER_perror() | modules/er/er.c
References Variables: | er_main_err | modules/er/er.c
| er_pid | modules/er/er.c
| er_progname | modules/er/er.c

## Global Function er_getsev()

`char* er_getsev ( int sev, int mode )`

Called by: | er_getmsg_parts() | modules/er/er.c
References Variables: | er_level_a | modules/er/er.c

## Global Function er_logit()

`void er_logit ( int facwhere, er_mask_t asp, int mode, int errcode, char* msg )`

Calls: | ER_is_traced() | modules/er/er.c
| ctime_r(), fputs(), gettimeofday(), snprintf()
Called by: | ER_asp_va() | modules/er/er.c
| ER_dbg_va() | modules/er/er.c
| ER_perror() | modules/er/er.c
References Variables: | er_provisional_struct | modules/er/er.c