FUSE_PARSE_CMDLINE(3) | Library Functions Manual | FUSE_PARSE_CMDLINE(3) |
fuse_parse_cmdline
—
FUSE helper function to parse command line
arguments
#include
<fuse.h>
int
fuse_parse_cmdline
(struct
fuse_args *args, char
**mp, int *mt,
int *fg);
fuse_parse_cmdline
()
is a helper function to parse standard FUSE arguments.
args can be constructed using the
FUSE_ARGS_INIT(3) macro.
fuse_parse_cmdline
()
supports the following arguments.
-d
,
-odebug
-f
.-f
-h
,
--help
, -ho
fuse_parse_cmdline
().-s
-s
is currently ignored and
mt will always be 0.-V
,
--version
If the first argument not recognised by
fuse_parse_cmdline
()
is a valid directory then mp will be set to the
canonicalized absolute pathname of this directory.
The fuse_parse_cmdline
() function will
return 0 on success and -1 if -h
,
--help
, -ho
,
-v
or --version
are included
in argv or mp does not exist or
is not a directory.
FUSE_ARGS_INIT(3), fuse_daemonize(3), fuse_main(3), fuse_setup(3)
The fuse_parse_cmdline
() function conforms
to FUSE 2.6.
The fuse_parse_cmdline
() function first
appeared in OpenBSD 5.4.
Sylvestre Gallon
<ccna.syl@gmail.com>
Helg Bredow
<helg@openbsd.org>
November 28, 2018 | OpenBSD-current |