CUBRID Engine  latest
broker_filename.c File Reference
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "broker_admin_pub.h"
#include "broker_filename.h"
#include "environment_variable.h"
#include "error_manager.h"
#include "system_parameter.h"
Include dependency graph for broker_filename.c:

Go to the source code of this file.

Macros

#define NUM_CUBRID_FILE   MAX_CUBRID_FILE
 

Functions

void set_cubrid_home ()
 
char * get_cubrid_home ()
 
void set_cubrid_file (T_CUBRID_FILE_ID fid, char *value)
 
char * get_cubrid_file_ptr (T_CUBRID_FILE_ID fid)
 
char * get_cubrid_file (T_CUBRID_FILE_ID fid, char *buf, size_t len)
 
const char * getenv_cubrid_broker ()
 

Variables

static char cubrid_Dir [BROKER_PATH_MAX] = ""
 
static T_CUBRID_FILE_INFO cubrid_file [NUM_CUBRID_FILE]
 

Macro Definition Documentation

#define NUM_CUBRID_FILE   MAX_CUBRID_FILE

Definition at line 46 of file broker_filename.c.

Function Documentation

char* get_cubrid_file_ptr ( T_CUBRID_FILE_ID  fid)

Definition at line 189 of file broker_filename.c.

References t_cubrid_file_info::file_name.

Referenced by access_control_set_shm(), and admin_acl_reload_cmd().

Here is the caller graph for this function:

char* get_cubrid_home ( void  )

Definition at line 92 of file broker_filename.c.

References cubrid_Dir, and set_cubrid_home().

Referenced by dir_repath(), and set_cubrid_file().

Here is the caller graph for this function:

const char* getenv_cubrid_broker ( void  )

Definition at line 313 of file broker_filename.c.

References envvar_root(), and p.

Referenced by set_cubrid_home().

Here is the caller graph for this function:

void set_cubrid_home ( void  )

Definition at line 72 of file broker_filename.c.

References assert, BROKER_PATH_MAX, cubrid_Dir, dirname(), getenv_cubrid_broker(), and p.

Referenced by get_cubrid_file(), get_cubrid_home(), and main().

Here is the caller graph for this function:

Variable Documentation

char cubrid_Dir[BROKER_PATH_MAX] = ""
static

Definition at line 44 of file broker_filename.c.

Referenced by get_cubrid_file(), get_cubrid_home(), and set_cubrid_home().

T_CUBRID_FILE_INFO cubrid_file[NUM_CUBRID_FILE]
static
Initial value:
= {
{FID_VAR_DIR, ""},
{FID_SOCK_DIR, ""},
{FID_ER_HTML, ""},
}

Definition at line 47 of file broker_filename.c.