10 #if !defined(FUSE_H_) && !defined(FUSE_LOWLEVEL_H_)
11 #error "Never include <fuse_common.h> directly; use <fuse.h> or <fuse_lowlevel.h> instead."
14 #ifndef FUSE_COMMON_H_
15 #define FUSE_COMMON_H_
20 #include <sys/types.h>
23 #define FUSE_MAJOR_VERSION 3
26 #define FUSE_MINOR_VERSION 11
28 #define FUSE_MAKE_VERSION(maj, min) ((maj) * 100 + (min))
29 #define FUSE_VERSION FUSE_MAKE_VERSION(FUSE_MAJOR_VERSION, FUSE_MINOR_VERSION)
69 unsigned int flush : 1;
78 unsigned int flock_release : 1;
92 unsigned int padding2 : 32;
145 #define FUSE_CAP_ASYNC_READ (1 << 0)
153 #define FUSE_CAP_POSIX_LOCKS (1 << 1)
162 #define FUSE_CAP_ATOMIC_O_TRUNC (1 << 3)
169 #define FUSE_CAP_EXPORT_SUPPORT (1 << 4)
177 #define FUSE_CAP_DONT_MASK (1 << 6)
185 #define FUSE_CAP_SPLICE_WRITE (1 << 7)
193 #define FUSE_CAP_SPLICE_MOVE (1 << 8)
202 #define FUSE_CAP_SPLICE_READ (1 << 9)
215 #define FUSE_CAP_FLOCK_LOCKS (1 << 10)
222 #define FUSE_CAP_IOCTL_DIR (1 << 11)
244 #define FUSE_CAP_AUTO_INVAL_DATA (1 << 12)
252 #define FUSE_CAP_READDIRPLUS (1 << 13)
280 #define FUSE_CAP_READDIRPLUS_AUTO (1 << 14)
291 #define FUSE_CAP_ASYNC_DIO (1 << 15)
300 #define FUSE_CAP_WRITEBACK_CACHE (1 << 16)
313 #define FUSE_CAP_NO_OPEN_SUPPORT (1 << 17)
323 #define FUSE_CAP_PARALLEL_DIROPS (1 << 18)
342 #define FUSE_CAP_POSIX_ACL (1 << 19)
351 #define FUSE_CAP_HANDLE_KILLPRIV (1 << 20)
364 #define FUSE_CAP_CACHE_SYMLINKS (1 << 23)
376 #define FUSE_CAP_NO_OPENDIR_SUPPORT (1 << 24)
399 #define FUSE_CAP_EXPLICIT_INVAL_DATA (1 << 25)
411 #define FUSE_IOCTL_COMPAT (1 << 0)
412 #define FUSE_IOCTL_UNRESTRICTED (1 << 1)
413 #define FUSE_IOCTL_RETRY (1 << 2)
414 #define FUSE_IOCTL_DIR (1 << 4)
416 #define FUSE_IOCTL_MAX_IOV 256
537 struct fuse_pollhandle;
538 struct fuse_conn_info_opts;
770 #define FUSE_BUFVEC_INIT(size__) \
771 ((struct fuse_bufvec) { \
777 (enum fuse_buf_flags) 0, \
841 #if !defined(FUSE_USE_VERSION) || FUSE_USE_VERSION < 30
842 # error only API version 30 or greater is supported
856 #if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 6) && !defined __cplusplus
857 _Static_assert(
sizeof(off_t) == 8,
"fuse: off_t must be 64bit");
859 struct _fuse_off_t_must_be_64bit_dummy_struct \
860 {
unsigned _fuse_off_t_must_be_64bit:((
sizeof(off_t) == 8) ? 1 : -1); };
int fuse_set_signal_handlers(struct fuse_session *se)
size_t fuse_buf_size(const struct fuse_bufvec *bufv)
void fuse_apply_conn_info_opts(struct fuse_conn_info_opts *opts, struct fuse_conn_info *conn)
ssize_t fuse_buf_copy(struct fuse_bufvec *dst, struct fuse_bufvec *src, enum fuse_buf_copy_flags flags)
const char * fuse_pkgversion(void)
void fuse_pollhandle_destroy(struct fuse_pollhandle *ph)
void fuse_remove_signal_handlers(struct fuse_session *se)
@ FUSE_BUF_SPLICE_NONBLOCK
int fuse_daemonize(int foreground)
struct fuse_conn_info_opts * fuse_parse_conn_info_opts(struct fuse_args *args)
enum fuse_buf_flags flags
unsigned congestion_threshold
unsigned int cache_readdir
unsigned int max_idle_threads