File databases_file.c¶
FileList > base > databases_file.c
Go to the source code of this file
#include "config.h"#include <stdlib.h>#include <stdio.h>#include <string.h>#include <signal.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <assert.h>#include "porting.h"#include "chartype.h"#include "error_manager.h"#include "databases_file.h"#include "boot.h"#include "connection_defs.h"#include "memory_alloc.h"#include "environment_variable.h"#include "system_parameter.h"#include "memory_wrapper.hpp"
Public Static Attributes¶
| Type | Name |
|---|---|
| const char | CFG_HOST_SEPARATOR = ':' |
Public Functions¶
Public Static Functions¶
| Type | Name |
|---|---|
| char ** | cfg_copy_hosts (const char ** host_array, int * num_hosts) |
| int | cfg_ensure_directory_write (void) |
| void | cfg_get_directory_filename (char * buffer, int * local) |
| bool | cfg_host_exists (char * host_list, char * hostname, int num_items) |
| char * | cfg_next_char (char * str_p) |
| char * | cfg_next_line (char * str_p) |
| FILE * | cfg_open_directory_file (bool write_flag) |
| const char * | cfg_pop_host (const char * host_list, char * buffer, int * length) |
| char * | cfg_pop_linetoken (char * str_p, char ** token_p) |
| char * | cfg_pop_token (char * str_p, char ** token_p) |
Macros¶
| Type | Name |
|---|---|
| define | CFG_MAX_LINE 4096 |
Public Static Attributes Documentation¶
variable CFG_HOST_SEPARATOR¶
Public Functions Documentation¶
function cfg_add_db¶
DB_INFO * cfg_add_db (
DB_INFO ** dir,
const char * name,
const char * path,
const char * logpath,
const char * lobpath,
const char * host
)
function cfg_create_host_list¶
char * cfg_create_host_list (
const char * primary_host_name,
bool include_local_host,
int * count
)
function cfg_delete_db¶
function cfg_dump_directory¶
function cfg_find_db¶
function cfg_find_db_list¶
function cfg_free_directory¶
function cfg_free_hosts¶
function cfg_get_hosts¶
function cfg_maycreate_get_directory_filename¶
function cfg_new_db¶
DB_INFO * cfg_new_db (
const char * name,
const char * path,
const char * logpath,
const char * lobpath,
const char ** hosts
)
function cfg_os_working_directory¶
function cfg_read_directory¶
function cfg_read_directory_ex¶
function cfg_update_db¶
void cfg_update_db (
DB_INFO * db_info_p,
const char * path,
const char * logpath,
const char * lobpath,
const char * host
)
function cfg_write_directory¶
function cfg_write_directory_ex¶
Public Static Functions Documentation¶
function cfg_copy_hosts¶
function cfg_ensure_directory_write¶
function cfg_get_directory_filename¶
function cfg_host_exists¶
function cfg_next_char¶
function cfg_next_line¶
function cfg_open_directory_file¶
function cfg_pop_host¶
function cfg_pop_linetoken¶
function cfg_pop_token¶
Macro Definition Documentation¶
define CFG_MAX_LINE¶
The documentation for this class was generated from the following file cubrid/src/base/databases_file.c