11#if !defined(FUSE_H_) && !defined(FUSE_LOWLEVEL_H_)
12#error "Never include <fuse_common.h> directly; use <fuse.h> or <fuse_lowlevel.h> instead."
18#ifdef HAVE_LIBFUSE_PRIVATE_CONFIG_H
19#include "fuse_config.h"
22#include "libfuse_config.h"
30#define FUSE_MAKE_VERSION(maj, min) ((maj) * 100 + (min))
31#define FUSE_VERSION FUSE_MAKE_VERSION(FUSE_MAJOR_VERSION, FUSE_MINOR_VERSION)
33#if (defined(__cplusplus) && __cplusplus >= 201103L) || \
34 (!defined(__cplusplus) && defined(__STDC_VERSION__) && \
35 __STDC_VERSION__ >= 201112L)
36#define fuse_static_assert(condition, message) static_assert(condition, message)
38#define fuse_static_assert(condition, message)
91 uint32_t flock_release : 1;
109 uint32_t padding2 : 32;
110 uint32_t padding3 : 32;
132 uint64_t reserved[2];
135 "fuse_file_info size mismatch");
147#if FUSE_USE_VERSION < FUSE_MAKE_VERSION(3, 12)
148struct fuse_loop_config_v1;
151struct fuse_loop_config_v1 {
187#define FUSE_CAP_ASYNC_READ (1 << 0)
195#define FUSE_CAP_POSIX_LOCKS (1 << 1)
204#define FUSE_CAP_ATOMIC_O_TRUNC (1 << 3)
216#define FUSE_CAP_EXPORT_SUPPORT (1 << 4)
224#define FUSE_CAP_DONT_MASK (1 << 6)
232#define FUSE_CAP_SPLICE_WRITE (1 << 7)
240#define FUSE_CAP_SPLICE_MOVE (1 << 8)
249#define FUSE_CAP_SPLICE_READ (1 << 9)
262#define FUSE_CAP_FLOCK_LOCKS (1 << 10)
269#define FUSE_CAP_IOCTL_DIR (1 << 11)
291#define FUSE_CAP_AUTO_INVAL_DATA (1 << 12)
299#define FUSE_CAP_READDIRPLUS (1 << 13)
327#define FUSE_CAP_READDIRPLUS_AUTO (1 << 14)
338#define FUSE_CAP_ASYNC_DIO (1 << 15)
347#define FUSE_CAP_WRITEBACK_CACHE (1 << 16)
362#define FUSE_CAP_NO_OPEN_SUPPORT (1 << 17)
370#define FUSE_CAP_PARALLEL_DIROPS (1 << 18)
389#define FUSE_CAP_POSIX_ACL (1 << 19)
398#define FUSE_CAP_HANDLE_KILLPRIV (1 << 20)
415#define FUSE_CAP_HANDLE_KILLPRIV_V2 (1 << 21)
428#define FUSE_CAP_CACHE_SYMLINKS (1 << 23)
443#define FUSE_CAP_NO_OPENDIR_SUPPORT (1 << 24)
466#define FUSE_CAP_EXPLICIT_INVAL_DATA (1 << 25)
482#define FUSE_CAP_EXPIRE_ONLY (1 << 26)
489#define FUSE_CAP_SETXATTR_EXT (1 << 27)
498#define FUSE_CAP_DIRECT_IO_ALLOW_MMAP (1 << 28)
510#define FUSE_CAP_PASSTHROUGH (1 << 29)
518#define FUSE_CAP_NO_EXPORT_SUPPORT (1 << 30)
530#define FUSE_IOCTL_COMPAT (1 << 0)
531#define FUSE_IOCTL_UNRESTRICTED (1 << 1)
532#define FUSE_IOCTL_RETRY (1 << 2)
533#define FUSE_IOCTL_DIR (1 << 4)
535#define FUSE_IOCTL_MAX_IOV 256
675#define FUSE_BACKING_STACKED_UNDER (0)
676#define FUSE_BACKING_STACKED_OVER (1)
677 uint32_t max_backing_stack_depth;
690 uint32_t padding : 31;
711 uint32_t reserved[16];
714 "Size of struct fuse_conn_info must be 128 bytes");
717struct fuse_pollhandle;
718struct fuse_conn_info_opts;
970#define FUSE_BUFVEC_INIT(size__) \
971 ((struct fuse_bufvec) { \
977 (enum fuse_buf_flags) 0, \
1060#if FUSE_USE_VERSION >= FUSE_MAKE_VERSION(3, 12)
1077 unsigned int value);
1083 unsigned int value);
1089 unsigned int value);
1098 struct fuse_loop_config_v1 *v1_conf);
1102static inline bool fuse_set_feature_flag(
struct fuse_conn_info *conn,
1112static inline void fuse_unset_feature_flag(
struct fuse_conn_info *conn,
1118static inline bool fuse_get_feature_flag(
struct fuse_conn_info *conn,
1128#if !defined(FUSE_USE_VERSION) || FUSE_USE_VERSION < 30
1129# error only API version 30 or greater is supported
1143#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
1144_Static_assert(
sizeof(off_t) == 8,
"fuse: off_t must be 64bit");
1146struct _fuse_off_t_must_be_64bit_dummy_struct \
1147 {
unsigned _fuse_off_t_must_be_64bit:((
sizeof(off_t) == 8) ? 1 : -1); };
int fuse_set_fail_signal_handlers(struct fuse_session *se)
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)
struct fuse_conn_info_opts * fuse_parse_conn_info_opts(struct fuse_args *args)
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)
enum fuse_buf_flags flags
uint32_t congestion_threshold
uint32_t parallel_direct_writes
unsigned int max_idle_threads