summaryrefslogtreecommitdiff
path: root/gnu/lib
diff options
context:
space:
mode:
authorhelg <helg@cvs.openbsd.org>2017-12-11 12:31:01 +0000
committerhelg <helg@cvs.openbsd.org>2017-12-11 12:31:01 +0000
commit92b6179204b5d676b419e1e1141287275f94cfec (patch)
tree3dff8147cf73ebca2eef677941633abfe7ade222 /gnu/lib
parent5c86e84ed2fc7dfc54a2dd42491cd11e26629f79 (diff)
Update to fuse_opt_parse(3) so that all option templates are now matched for
the supplied option. This allows the following templates to be supplied to set multiple members of a struct at the same time. e.g. #define FUSE_LIB_OPT(t, p, v) { t, offsetof(struct fuse_config, p), v } static const struct fuse_opt fuse_lib_opts[] = { FUSE_LIB_OPT("gid=", set_gid, 1), FUSE_LIB_OPT("gid=%u", gid, 0), FUSE_OPT_END }; If "-ogid=1000" is passed to fuse_opt_parse(3) it will set both: fuse_config.set_gid=1 fuse_config.gid=1000 ok mpi@
Diffstat (limited to 'gnu/lib')
0 files changed, 0 insertions, 0 deletions