CUBRID Engine  latest
broker_error.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "broker_error.h"
#include "broker_filename.h"
Include dependency graph for broker_error.c:

Go to the source code of this file.

Functions

static int get_error_msg (int err_code, char *msg_buf)
 
void uw_set_error_code (const char *file_name, int line_no, int error_code, int os_errno)
 
int uw_get_error_code (void)
 
int uw_get_os_error_code (void)
 
const char * uw_get_error_message (int error_code, int os_error_code)
 

Variables

static int cur_error_code = UW_ER_NO_ERROR
 
static int cur_os_errno = 0
 

Function Documentation

static int get_error_msg ( int  err_code,
char *  msg_buf 
)
static

Definition at line 166 of file broker_error.c.

References BROKER_PATH_MAX, FID_UV_ERR_MSG, get_cubrid_file(), i, NULL, p, and UW_MIN_ERROR_CODE.

Referenced by uw_get_error_message().

Here is the caller graph for this function:

int uw_get_error_code ( void  )
const char* uw_get_error_message ( int  error_code,
int  os_error_code 
)

Definition at line 109 of file broker_error.c.

References get_error_msg(), NULL, p, and UW_MAX_ERROR_CODE.

Referenced by br_activate().

Here is the caller graph for this function:

int uw_get_os_error_code ( void  )
void uw_set_error_code ( const char *  file_name,
int  line_no,
int  error_code,
int  os_errno 
)

Definition at line 62 of file broker_error.c.

References cur_error_code, and cur_os_errno.

Variable Documentation

int cur_error_code = UW_ER_NO_ERROR
static

Definition at line 41 of file broker_error.c.

Referenced by uw_get_error_code(), and uw_set_error_code().

int cur_os_errno = 0
static

Definition at line 42 of file broker_error.c.

Referenced by uw_get_os_error_code(), and uw_set_error_code().