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 10
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;
88 unsigned int padding2 : 32;
141 #define FUSE_CAP_ASYNC_READ (1 << 0)
149 #define FUSE_CAP_POSIX_LOCKS (1 << 1)
158 #define FUSE_CAP_ATOMIC_O_TRUNC (1 << 3)
165 #define FUSE_CAP_EXPORT_SUPPORT (1 << 4)
173 #define FUSE_CAP_DONT_MASK (1 << 6)
181 #define FUSE_CAP_SPLICE_WRITE (1 << 7)
189 #define FUSE_CAP_SPLICE_MOVE (1 << 8)
198 #define FUSE_CAP_SPLICE_READ (1 << 9)
211 #define FUSE_CAP_FLOCK_LOCKS (1 << 10)
218 #define FUSE_CAP_IOCTL_DIR (1 << 11)
240 #define FUSE_CAP_AUTO_INVAL_DATA (1 << 12)
248 #define FUSE_CAP_READDIRPLUS (1 << 13)
276 #define FUSE_CAP_READDIRPLUS_AUTO (1 << 14)
287 #define FUSE_CAP_ASYNC_DIO (1 << 15)
296 #define FUSE_CAP_WRITEBACK_CACHE (1 << 16)
309 #define FUSE_CAP_NO_OPEN_SUPPORT (1 << 17)
319 #define FUSE_CAP_PARALLEL_DIROPS (1 << 18)
338 #define FUSE_CAP_POSIX_ACL (1 << 19)
347 #define FUSE_CAP_HANDLE_KILLPRIV (1 << 20)
360 #define FUSE_CAP_CACHE_SYMLINKS (1 << 23)
372 #define FUSE_CAP_NO_OPENDIR_SUPPORT (1 << 24)
395 #define FUSE_CAP_EXPLICIT_INVAL_DATA (1 << 25)
407 #define FUSE_IOCTL_COMPAT (1 << 0)
408 #define FUSE_IOCTL_UNRESTRICTED (1 << 1)
409 #define FUSE_IOCTL_RETRY (1 << 2)
410 #define FUSE_IOCTL_DIR (1 << 4)
412 #define FUSE_IOCTL_MAX_IOV 256
533 struct fuse_pollhandle;
534 struct fuse_conn_info_opts;
766 #define FUSE_BUFVEC_INIT(size__) \
767 ((struct fuse_bufvec) { \
773 (enum fuse_buf_flags) 0, \
837 #if !defined(FUSE_USE_VERSION) || FUSE_USE_VERSION < 30
838 # error only API version 30 or greater is supported
852 #if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 6) && !defined __cplusplus
853 _Static_assert(
sizeof(off_t) == 8,
"fuse: off_t must be 64bit");
855 struct _fuse_off_t_must_be_64bit_dummy_struct \
856 {
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