-
Notifications
You must be signed in to change notification settings - Fork 6
/
ceph_posix.h
32 lines (26 loc) · 973 Bytes
/
ceph_posix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* This interface provides wrapper methods for using ceph through a POSIX API.
*/
#ifndef _CEPH_POSIX_H
#define _CEPH_POSIX_H
#include <sys/types.h>
#include <stdarg.h>
#include <dirent.h>
#ifdef __cplusplus
extern "C" {
#endif
void ceph_posix_set_defaults(const char* value);
void ceph_posix_disconnect_all();
void ceph_posix_set_logfunc(void (*logfunc) (char *, va_list argp));
int ceph_posix_open(const char *pathname, int flags, mode_t mode);
int ceph_posix_close(int fd);
off64_t ceph_posix_lseek64(int fd, off64_t offset, int whence);
ssize_t ceph_posix_write(int fd, const void *buf, size_t count);
ssize_t ceph_posix_read(int fd, void *buf, size_t count);
int ceph_posix_stat64(const char *pathname, struct stat64 *buf);
ssize_t ceph_posix_fgetxattr(int fd, const char* name, void* value, size_t size);
int ceph_posix_fsetxattr(int fd, const char* name, const void* value, size_t size, int flags);
#ifdef __cplusplus
}
#endif
#endif