CUBRID Engine
latest
|
#include "system.h"
Go to the source code of this file.
Macros | |
#define | ES_OWFS_PATH_PREFIX "owfs:" |
#define | ES_POSIX_PATH_PREFIX "file:" |
#define | ES_LOCAL_PATH_PREFIX "local:" |
#define | ES_OWFS_PATH_POS(uri) ((uri) + sizeof(ES_OWFS_PATH_PREFIX) - 1) |
#define | ES_POSIX_PATH_POS(uri) ((uri) + sizeof(ES_POSIX_PATH_PREFIX) - 1) |
#define | ES_LOCAL_PATH_POS(uri) ((uri) + sizeof(ES_LOCAL_PATH_PREFIX) - 1) |
#define | es_log(...) if (prm_get_bool_value (PRM_ID_DEBUG_ES)) _er_log_debug (ARG_FILE_LINE, __VA_ARGS__) |
Enumerations | |
enum | ES_TYPE { ES_NONE = -1, ES_OWFS = 0, ES_POSIX = 1, ES_LOCAL = 2 } |
Functions | |
ES_TYPE | es_get_type (const char *uri) |
const char * | es_get_type_string (ES_TYPE type) |
unsigned int | es_name_hash_func (int size, const char *name) |
UINT64 | es_get_unique_num (void) |
#define ES_LOCAL_PATH_POS | ( | uri | ) | ((uri) + sizeof(ES_LOCAL_PATH_PREFIX) - 1) |
Definition at line 42 of file es_common.h.
Referenced by es_get_file_size(), and es_read_file().
#define ES_LOCAL_PATH_PREFIX "local:" |
Definition at line 38 of file es_common.h.
Referenced by db_blob_from_file(), db_clob_from_file(), es_get_type(), and es_get_type_string().
#define es_log | ( | ... | ) | if (prm_get_bool_value (PRM_ID_DEBUG_ES)) _er_log_debug (ARG_FILE_LINE, __VA_ARGS__) |
Definition at line 45 of file es_common.h.
Referenced by es_copy_file(), es_create_file(), es_delete_file(), es_get_file_size(), es_local_get_file_size(), es_local_read_file(), es_posix_final(), es_read_file(), es_rename_file(), and es_write_file().
#define ES_OWFS_PATH_POS | ( | uri | ) | ((uri) + sizeof(ES_OWFS_PATH_PREFIX) - 1) |
Definition at line 40 of file es_common.h.
Referenced by es_copy_file(), es_create_file(), es_delete_file(), es_get_file_size(), es_read_file(), es_rename_file(), and es_write_file().
#define ES_OWFS_PATH_PREFIX "owfs:" |
Definition at line 36 of file es_common.h.
Referenced by es_copy_file(), es_create_file(), es_get_type(), es_get_type_string(), and es_rename_file().
#define ES_POSIX_PATH_POS | ( | uri | ) | ((uri) + sizeof(ES_POSIX_PATH_PREFIX) - 1) |
Definition at line 41 of file es_common.h.
Referenced by es_copy_file(), es_create_file(), es_delete_file(), es_get_file_size(), es_init(), es_read_file(), es_rename_file(), and es_write_file().
#define ES_POSIX_PATH_PREFIX "file:" |
Definition at line 37 of file es_common.h.
Referenced by es_copy_file(), es_create_file(), es_get_type(), es_get_type_string(), and es_rename_file().
enum ES_TYPE |
Enumerator | |
---|---|
ES_NONE | |
ES_OWFS | |
ES_POSIX | |
ES_LOCAL |
Definition at line 28 of file es_common.h.
Definition at line 43 of file es_common.c.
References ES_LOCAL, ES_LOCAL_PATH_PREFIX, ES_NONE, ES_OWFS, ES_OWFS_PATH_PREFIX, ES_POSIX, and ES_POSIX_PATH_PREFIX.
Referenced by boot_initialize_client(), db_blob_from_file(), db_clob_from_file(), elo_copy(), elo_create(), elo_delete(), es_copy_file(), es_delete_file(), es_get_file_size(), es_init(), es_read_file(), es_rename_file(), es_write_file(), xboot_copy(), and xboot_initialize_server().
Definition at line 67 of file es_common.c.
References ES_LOCAL, ES_LOCAL_PATH_PREFIX, ES_OWFS, ES_OWFS_PATH_PREFIX, ES_POSIX, and ES_POSIX_PATH_PREFIX.
Referenced by es_copy_file(), and es_rename_file().
UINT64 es_get_unique_num | ( | void | ) |
Definition at line 102 of file es_common.c.
References NULL.
unsigned int es_name_hash_func | ( | int | size, |
const char * | name | ||
) |
Definition at line 92 of file es_common.c.
References assert, and mht_5strhash().