22 #define FUSE_USE_VERSION 31 26 #include <fuse_lowlevel.h> 32 struct fuse_session *se;
34 static void pc_init(
void *userdata,
39 printf(
"Protocol version: %d.%d\n", conn->
proto_major,
41 printf(
"Capabilities:\n");
43 printf(
"\tFUSE_CAP_WRITEBACK_CACHE\n");
45 printf(
"\tFUSE_CAP_ASYNC_READ\n");
47 printf(
"\tFUSE_CAP_POSIX_LOCKS\n");
49 printf(
"\tFUSE_CAP_ATOMIC_O_TRUNC\n");
51 printf(
"\tFUSE_CAP_EXPORT_SUPPORT\n");
53 printf(
"\tFUSE_CAP_DONT_MASK\n");
55 printf(
"\tFUSE_CAP_SPLICE_MOVE\n");
57 printf(
"\tFUSE_CAP_SPLICE_READ\n");
59 printf(
"\tFUSE_CAP_SPLICE_WRITE\n");
61 printf(
"\tFUSE_CAP_FLOCK_LOCKS\n");
63 printf(
"\tFUSE_CAP_IOCTL_DIR\n");
65 printf(
"\tFUSE_CAP_AUTO_INVAL_DATA\n");
67 printf(
"\tFUSE_CAP_READDIRPLUS\n");
69 printf(
"\tFUSE_CAP_READDIRPLUS_AUTO\n");
71 printf(
"\tFUSE_CAP_ASYNC_DIO\n");
73 printf(
"\tFUSE_CAP_WRITEBACK_CACHE\n");
75 printf(
"\tFUSE_CAP_NO_OPEN_SUPPORT\n");
77 printf(
"\tFUSE_CAP_PARALLEL_DIROPS\n");
79 printf(
"\tFUSE_CAP_POSIX_ACL\n");
88 int main(
int argc,
char **argv)
94 mountpoint = strdup(
"/tmp/fuse_printcap_XXXXXX");
95 if(mkdtemp(mountpoint) == NULL) {
104 sizeof(pc_oper), NULL);
#define FUSE_CAP_ASYNC_DIO
#define FUSE_CAP_DONT_MASK
#define FUSE_CAP_ATOMIC_O_TRUNC
#define FUSE_CAP_IOCTL_DIR
#define FUSE_CAP_POSIX_LOCKS
#define FUSE_CAP_READDIRPLUS
#define FUSE_CAP_PARALLEL_DIROPS
const char * fuse_pkgversion(void)
#define FUSE_CAP_WRITEBACK_CACHE
void fuse_session_unmount(struct fuse_session *se)
#define FUSE_CAP_SPLICE_READ
#define FUSE_CAP_AUTO_INVAL_DATA
int fuse_session_loop(struct fuse_session *se)
int fuse_session_mount(struct fuse_session *se, const char *mountpoint)
#define FUSE_CAP_FLOCK_LOCKS
#define FUSE_ARGS_INIT(argc, argv)
#define FUSE_CAP_SPLICE_WRITE
#define FUSE_CAP_NO_OPEN_SUPPORT
int fuse_set_signal_handlers(struct fuse_session *se)
void fuse_session_destroy(struct fuse_session *se)
#define FUSE_CAP_POSIX_ACL
void fuse_session_exit(struct fuse_session *se)
void fuse_opt_free_args(struct fuse_args *args)
struct fuse_session * fuse_session_new(struct fuse_args *args, const struct fuse_lowlevel_ops *op, size_t op_size, void *userdata)
void fuse_lowlevel_version(void)
#define FUSE_CAP_EXPORT_SUPPORT
#define FUSE_CAP_SPLICE_MOVE
void(* init)(void *userdata, struct fuse_conn_info *conn)
void fuse_remove_signal_handlers(struct fuse_session *se)
#define FUSE_CAP_ASYNC_READ
#define FUSE_CAP_READDIRPLUS_AUTO