CUBRID Engine  latest
es_owfs.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 /*
20  * es_owfs.h - header for owfs supports (at client and server)
21  */
22 
23 #ifndef __ES_OWFS_H__
24 #define __ES_OWFS_H__
25 
26 #include "es_common.h"
27 #include "es_list.h"
28 
29 extern int es_owfs_init (const char *base_path);
30 extern void es_owfs_final (void);
31 
32 extern int es_owfs_create_file (char *new_path);
33 extern ssize_t es_owfs_write_file (const char *path, const void *buf, size_t count, off_t offset);
34 extern ssize_t es_owfs_read_file (const char *path, void *buf, size_t count, off_t offset);
35 extern int es_owfs_delete_file (const char *path);
36 extern int es_owfs_copy_file (const char *src_path, const char *metaname, char *new_path);
37 extern int es_owfs_rename_file (const char *src_path, const char *metaname, char *new_path);
38 extern off_t es_owfs_get_file_size (const char *path);
39 
40 #endif /* _ES_OWFS_H_ */
int es_owfs_create_file(char *new_path)
Definition: es_owfs.c:873
int es_owfs_delete_file(const char *path)
Definition: es_owfs.c:894
int es_owfs_copy_file(const char *src_path, const char *metaname, char *new_path)
Definition: es_owfs.c:901
ssize_t es_owfs_read_file(const char *path, void *buf, size_t count, off_t offset)
Definition: es_owfs.c:887
int count(int &result, const cub_regex_object &reg, const std::string &src, const int position, const INTL_CODESET codeset)
void es_owfs_final(void)
Definition: es_owfs.c:867
ssize_t es_owfs_write_file(const char *path, const void *buf, size_t count, off_t offset)
Definition: es_owfs.c:880
int es_owfs_init(const char *base_path)
Definition: es_owfs.c:860
off_t es_owfs_get_file_size(const char *path)
Definition: es_owfs.c:915
int es_owfs_rename_file(const char *src_path, const char *metaname, char *new_path)
Definition: es_owfs.c:908