FUSE helper function
struct fuse *
argc, char **argv,
const struct fuse_operations
*ops, size_t size,
is a helper function that mounts a FUSE file system, creates a new FUSE
session and installs signal handlers that will try to unmount the file
system on SIGINT, SIGTERM or SIGHUP.
will parse the arguments specified by argv and if neither the
-odebug options were specified, detach from the
controlling terminal and run in the background. On success,
mt will be 1 if the file system operations will be
invoked in parallel (multi-threaded) or 0 if file system operations are
serialized. File systems that do not support multi-threaded operation must
-s argument in
argv. OpenBSD does not
currently support multi-threaded operation.
The file system will be mounted on mp, which is the directory specified by the first argument that does not match one of the options recognised by fuse_parse_cmdline(3).
fuse_operations is a struct of size size that contains pointers to FUSE file system operations. See fuse_new(3).
fuse_setup() will return NULL on
fuse_main(3), fuse_mount(3), fuse_new(3), fuse_parse_cmdline(3), fuse_set_signal_handlers(3), fuse_teardown(3), fuse(4)
fuse_setup() function conforms to FUSE
fuse_setup() function first appeared
in OpenBSD 5.4.
Helg Bredow <firstname.lastname@example.org>