Skip to content

File es_posix.h

FileList > cubrid > src > storage > es_posix.h

Go to the source code of this file

  • #include <sys/types.h>
  • #include "es_common.h"

Public Attributes

Type Name
char es_base_dir

Public Functions

Type Name
off_t es_local_get_file_size (const char * path)
int es_local_read_file (const char * path, void * buf, size_t count, off_t offset)
int es_make_dirs (const char * dirname1, const char * dirname2)
void es_posix_final (void)
int es_posix_init (const char * base_path)
int xes_posix_copy_file (const char * src_path, char * metaname, char * new_path)
int xes_posix_copy_file_with_prefix (const char * src_path, char * metaname, const char * prefix, char * new_path)
int xes_posix_create_file (char * new_path)
int xes_posix_delete_file (const char * path)
off_t xes_posix_get_file_size (const char * path)
int xes_posix_move_file_with_prefix (const char * src_path, const char * metaname, const char * prefix, char * new_path)
ssize_t xes_posix_read_file (const char * path, void * buf, size_t count, off_t offset)
int xes_posix_rename_file (const char * src_path, const char * metaname, char * new_path)
ssize_t xes_posix_write_file (const char * path, const void * buf, size_t count, off_t offset)

Macros

Type Name
define ES_PATH_SEPARATOR "/"
define ES_POSIX_HASH1 (769)
define ES_POSIX_HASH2 (381)

Public Attributes Documentation

variable es_base_dir

char es_base_dir[PATH_MAX];

Public Functions Documentation

function es_local_get_file_size

off_t es_local_get_file_size (
    const  char * path
) 

function es_local_read_file

int es_local_read_file (
    const  char * path,
    void * buf,
    size_t count,
    off_t offset
) 

function es_make_dirs

int es_make_dirs (
    const  char * dirname1,
    const  char * dirname2
) 

function es_posix_final

void es_posix_final (
    void
) 

function es_posix_init

int es_posix_init (
    const  char * base_path
) 

function xes_posix_copy_file

int xes_posix_copy_file (
    const  char * src_path,
    char * metaname,
    char * new_path
) 

function xes_posix_copy_file_with_prefix

int xes_posix_copy_file_with_prefix (
    const  char * src_path,
    char * metaname,
    const  char * prefix,
    char * new_path
) 

function xes_posix_create_file

int xes_posix_create_file (
    char * new_path
) 

function xes_posix_delete_file

int xes_posix_delete_file (
    const  char * path
) 

function xes_posix_get_file_size

off_t xes_posix_get_file_size (
    const  char * path
) 

function xes_posix_move_file_with_prefix

int xes_posix_move_file_with_prefix (
    const  char * src_path,
    const  char * metaname,
    const  char * prefix,
    char * new_path
) 

function xes_posix_read_file

ssize_t xes_posix_read_file (
    const  char * path,
    void * buf,
    size_t count,
    off_t offset
) 

function xes_posix_rename_file

int xes_posix_rename_file (
    const  char * src_path,
    const  char * metaname,
    char * new_path
) 

function xes_posix_write_file

ssize_t xes_posix_write_file (
    const  char * path,
    const  void * buf,
    size_t count,
    off_t offset
) 

Macro Definition Documentation

define ES_PATH_SEPARATOR

#define ES_PATH_SEPARATOR `"/"`

define ES_POSIX_HASH1

#define ES_POSIX_HASH1 `(769)`

define ES_POSIX_HASH2

#define ES_POSIX_HASH2 `(381)`


The documentation for this class was generated from the following file cubrid/src/storage/es_posix.h