Cross reference for include/erroutines.h of index.

# File include/erroutines.h

      $Revision: 1.17 $

      Error reporting (er) erroutines.h  - header file for error reporting.

      Status: NOT REVUED, TESTED,

      Design and implementation by: Marek Bukowy

Included in: | include/access_control.h
| include/er_arrays.h
| include/er_aspects.h
| modules/ac/access_control.h
| modules/er/lex.er_yy.c
| modules/pm/protocol_mirror.c
| modules/sq/mysql_driver.h
| modules/ud/ud_int.h

## Included Files

- `#include <stdio.h>`

- `#include <unistd.h>`

- `#include <stdlib.h>`

- `#include <assert.h>`

- `#include <time.h>`

- `#include <stdarg.h>`

- `#include <strings.h>`

- `#include <glib.h>`

- `#include <pthread.h>`

- `#include <include/bitmask.h>`

- `#include <include/stubs.h>`

- `#include "include/er_facilities.h"`
  - `#include <include/erroutines.h>`
  - `#include "include/er_RX_errors.h"`
  - `#include "include/er_ER_errors.h"`
  - `#include "include/er_IP_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 "include/er_PM_errors.h"`
  - `#include "include/er_MM_errors.h"`
  - `#include "include/er_SV_errors.h"`
  - `#include "include/er_AC_errors.h"`
  - `#include "include/er_UD_errors.h"`
  - `#include "include/er_PA_errors.h"`
  - `#include "include/er_PC_errors.h"`

- `#include "include/er_aspects.h"`
  - `#include "include/erroutines.h"`

- `#include "include/er_formats.h"`

## Preprocessor definitions

`#define ER_H`

`#define EXTDEF extern`

`#define EXTINI( a, b )`

`#define MNELEN 16`

fatal error

`#define ER_SEV_F 0x20000000`

error

`#define ER_SEV_E 0x10000000`

warning

`#define ER_SEV_W 0x08000000`

information

`#define ER_SEV_I 0x04000000`

debug message

`#define ER_SEV_D 0x02000000`

library error

`#define ER_SEV_L 0x01000000`

`#define ER_SEV_TXT 20`

`#define ER_MSGLEN 384`

`#define ER_ERRLEN 2048`

`#define DEFFAC( a, b )`

`#define ER_LASTTXT 1`

`#define ERDUP( a )`

`#define ER_dbg_eq( mod, asp, typ, expr )`

`#define ERR( a )`

## Typedef er_mask_t

`typedef unsigned int er_mask_t`

## Typedef er_ret_t

`typedef int er_ret_t`

## Typedef er_path_mt

`typedef enum {...} er_path_mt`

`enum` |
`{` |
`ER_PATH_SOCK;` |
`ER_PATH_BUFPTR;` |
`ER_PATH_NAME;` |
`ER_PATH_EXEC;` |
`ER_PATH_SYSLOG;` |
`ER_PATH_CIRC;` |
`}` |

## Typedef er_path_descr_t

`typedef union {...} er_path_descr_t`

`union` |
`{` |
`struct` |
`{` |
`int fd;` |
`}` |
`sock;` |
`struct` |
`{` |
`FILE* fp;` |
`}` |
`bufptr;` |
`struct` |
`{` |
`char filename[80];` |
`int date;` |
`}` |
`name;` |
`struct` |
`{` |
`int usepath;` |
`char** argv;` |
`}` |
`exec;` |
`struct` |
`{` |
`int facility;` |
`int logopt;` |
`char ident[32];` |
`}` |
`syslog;` |
`}` |

## Typedef er_path_t

`typedef struct {...} er_path_t`

`struct` |
`{` |
`char name[32];` |
`char active;` |
`int format;` |
`pthread_mutex_t mutex;` |
`er_path_mt type;` |
`er_path_descr_t descr;` |
`GList* filters;` |
`}` |

## Typedef er_filter_t

`typedef struct {...} er_filter_t`

`struct` |
`{` |
`mask_t fac_mask;` |
`er_mask_t asp_mask;` |
`int sev_min;` |
`int sev_max;` |
`pthread_t thr_id;` |
`}` |

## Typedef lexerr_t

`typedef struct {...} lexerr_t`

`struct` |
`{` |
`char errtxt[1024];` |
`int errpos;` |
`char* token;` |
`er_path_t path;` |
`er_filter_t curfilt;` |
`int sock;` |
`}` |

## Typedef er_list_t

`typedef struct {...} er_list_t`

`struct` |
`{` |
`er_ret_t code;` |
`char mnem[16];` |
`char text[80];` |
`}` |

## Typedef er_fac_t

`typedef struct {...} er_fac_t`

`struct` |
`{` |
`er_ret_t code;` |
`char name[4];` |
`char desc[80];` |
`er_list_t* errs;` |
`}` |

## Typedef er_level_t

`typedef struct {...} er_level_t`

`struct` |
`{` |
`int sev;` |
`char chr[2];` |
`char txt[20];` |
`}` |

## External Variables

er_pathtypes
`extern char* er_pathtypes[]`

Defined in: | modules/er/er.c

er_level_a
`extern er_level_t er_level_a[]`

Defined in: | modules/er/er.c

er_pathlist
`extern GList* er_pathlist`

Defined in: | modules/er/er.c

er_asparray
`extern er_mask_t er_asparray[FAC_LAST]`

Defined in: | modules/er/er.c