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_ 19 #include <sys/types.h> 22 #define FUSE_MAJOR_VERSION 3 25 #define FUSE_MINOR_VERSION 2 27 #define FUSE_MAKE_VERSION(maj, min) ((maj) * 10 + (min)) 28 #define FUSE_VERSION FUSE_MAKE_VERSION(FUSE_MAJOR_VERSION, FUSE_MINOR_VERSION) 56 unsigned int flush : 1;
65 unsigned int flock_release : 1;
103 unsigned int max_idle_threads;
120 #define FUSE_CAP_ASYNC_READ (1 << 0) 128 #define FUSE_CAP_POSIX_LOCKS (1 << 1) 137 #define FUSE_CAP_ATOMIC_O_TRUNC (1 << 3) 144 #define FUSE_CAP_EXPORT_SUPPORT (1 << 4) 152 #define FUSE_CAP_DONT_MASK (1 << 6) 160 #define FUSE_CAP_SPLICE_WRITE (1 << 7) 168 #define FUSE_CAP_SPLICE_MOVE (1 << 8) 177 #define FUSE_CAP_SPLICE_READ (1 << 9) 190 #define FUSE_CAP_FLOCK_LOCKS (1 << 10) 197 #define FUSE_CAP_IOCTL_DIR (1 << 11) 219 #define FUSE_CAP_AUTO_INVAL_DATA (1 << 12) 227 #define FUSE_CAP_READDIRPLUS (1 << 13) 235 #define FUSE_CAP_READDIRPLUS_AUTO (1 << 14) 246 #define FUSE_CAP_ASYNC_DIO (1 << 15) 255 #define FUSE_CAP_WRITEBACK_CACHE (1 << 16) 268 #define FUSE_CAP_NO_OPEN_SUPPORT (1 << 17) 278 #define FUSE_CAP_PARALLEL_DIROPS (1 << 18) 297 #define FUSE_CAP_POSIX_ACL (1 << 19) 306 #define FUSE_CAP_HANDLE_KILLPRIV (1 << 20) 318 #define FUSE_IOCTL_COMPAT (1 << 0) 319 #define FUSE_IOCTL_UNRESTRICTED (1 << 1) 320 #define FUSE_IOCTL_RETRY (1 << 2) 321 #define FUSE_IOCTL_DIR (1 << 4) 323 #define FUSE_IOCTL_MAX_IOV 256 336 unsigned proto_major;
341 unsigned proto_minor;
365 unsigned max_readahead;
408 unsigned max_background;
418 unsigned congestion_threshold;
440 unsigned reserved[22];
444 struct fuse_pollhandle;
445 struct fuse_conn_info_opts;
677 #define FUSE_BUFVEC_INIT(size__) \ 678 ((struct fuse_bufvec) { \ 684 (enum fuse_buf_flags) 0, \ 748 #if !defined(FUSE_USE_VERSION) || FUSE_USE_VERSION < 30 749 # error only API version 30 or greater is supported 763 #if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 6) && !defined __cplusplus 764 _Static_assert(
sizeof(off_t) == 8,
"fuse: off_t must be 64bit");
766 struct _fuse_off_t_must_be_64bit_dummy_struct \
767 {
unsigned _fuse_off_t_must_be_64bit:((
sizeof(off_t) == 8) ? 1 : -1); };
void fuse_apply_conn_info_opts(struct fuse_conn_info_opts *opts, struct fuse_conn_info *conn)
const char * fuse_pkgversion(void)
int fuse_daemonize(int foreground)
size_t fuse_buf_size(const struct fuse_bufvec *bufv)
ssize_t fuse_buf_copy(struct fuse_bufvec *dst, struct fuse_bufvec *src, enum fuse_buf_copy_flags flags)
int fuse_set_signal_handlers(struct fuse_session *se)
struct fuse_conn_info_opts * fuse_parse_conn_info_opts(struct fuse_args *args)
void fuse_pollhandle_destroy(struct fuse_pollhandle *ph)
void fuse_remove_signal_handlers(struct fuse_session *se)