CUBRID Engine  latest
cas_dbms_util.c File Reference
#include "assert.h"
#include "porting.h"
#include "environment_variable.h"
#include "cas.h"
#include "cas_execute.h"
#include "cas_error.h"
#include "broker_filename.h"
Include dependency graph for cas_dbms_util.c:

Go to the source code of this file.

Macros

#define _ENVVAR_MAX_LENGTH   255
 

Functions

static char * cfg_pop_token (char *str_p, char **token_p)
 
void cfg_free_dbinfo_all (DB_INFO *databases)
 
int cfg_get_dbinfo (char *alias, char *dbinfo)
 
int cfg_read_dbinfo (DB_INFO **db_info_p)
 
DB_INFOcfg_find_db_list (DB_INFO *db_info_list_p, const char *name)
 
int char_is_delim (int c, int delim)
 
char * char_get_next (char *str_p)
 
UINT64 ntohi64 (UINT64 from)
 
int char_islower (int c)
 
int char_isupper (int c)
 
int char_isalpha (int c)
 
int char_tolower (int c)
 

Variables

static const char envvar_Prefix_name [] = "CUBRID"
 
static const char * envvar_Prefix = NULL
 
static const char * envvar_Root = NULL
 

Macro Definition Documentation

#define _ENVVAR_MAX_LENGTH   255

Definition at line 46 of file cas_dbms_util.c.

Function Documentation

DB_INFO* cfg_find_db_list ( DB_INFO db_info_list_p,
const char *  name 
)

Definition at line 231 of file cas_dbms_util.c.

References database_info::alias, database_info::name, database_info::next, and NULL.

void cfg_free_dbinfo_all ( DB_INFO databases)

Definition at line 51 of file cas_dbms_util.c.

References database_info::alias, database_info::dbinfo, free_and_init, database_info::next, and NULL.

Referenced by cfg_read_dbinfo().

Here is the caller graph for this function:

static char * cfg_pop_token ( char *  str_p,
char **  token_p 
)
static

Definition at line 295 of file cas_dbms_util.c.

References char_is_delim(), NULL, and p.

Referenced by cfg_read_dbinfo().

Here is the caller graph for this function:

char* char_get_next ( char *  str_p)

Definition at line 268 of file cas_dbms_util.c.

References char_is_delim(), and p.

Referenced by cfg_read_dbinfo().

Here is the caller graph for this function:

int char_is_delim ( int  c,
int  delim 
)

Definition at line 255 of file cas_dbms_util.c.

Referenced by cfg_pop_token(), and char_get_next().

Here is the caller graph for this function:

int char_isalpha ( int  c)

Definition at line 378 of file cas_dbms_util.c.

References char_islower(), and char_isupper().

int char_islower ( int  c)

Definition at line 354 of file cas_dbms_util.c.

Referenced by char_isalpha().

Here is the caller graph for this function:

int char_isupper ( int  c)

Definition at line 366 of file cas_dbms_util.c.

Referenced by char_isalpha(), and char_tolower().

Here is the caller graph for this function:

int char_tolower ( int  c)

Definition at line 389 of file cas_dbms_util.c.

References char_isupper().

UINT64 ntohi64 ( UINT64  from)

Definition at line 328 of file cas_dbms_util.c.

Referenced by net_arg_get_bigint(), net_arg_get_lob_handle(), and net_arg_get_size().

Here is the caller graph for this function:

Variable Documentation

const char* envvar_Prefix = NULL
static

Definition at line 43 of file cas_dbms_util.c.

const char envvar_Prefix_name[] = "CUBRID"
static

Definition at line 42 of file cas_dbms_util.c.

const char* envvar_Root = NULL
static

Definition at line 44 of file cas_dbms_util.c.