Lines Matching refs:opt
19 const struct fuse_opt *opt;
97 static int next_arg(struct fuse_opt_context *ctx, const char *opt)
100 fprintf(stderr, "fuse: missing argument after `%s'\n", opt);
112 int fuse_opt_add_opt(char **opts, const char *opt)
116 newopts = strdup(opt);
119 newopts = realloc(*opts, oldlen + 1 + strlen(opt) + 1);
122 strcpy(newopts + oldlen + 1, opt);
132 static int add_opt(struct fuse_opt_context *ctx, const char *opt)
134 return fuse_opt_add_opt(&ctx->opts, opt);
175 static const struct fuse_opt *find_opt(const struct fuse_opt *opt,
178 for (; opt && opt->templ; opt++)
179 if (match_template(opt->templ, arg, sepp))
180 return opt;
184 int fuse_opt_match(const struct fuse_opt *opts, const char *opt)
187 return find_opt(opts, opt, &dummy) ? 1 : 0;
210 const struct fuse_opt *opt, unsigned sep,
213 if (opt->offset == -1U) {
214 if (call_proc(ctx, arg, opt->value, iso) == -1)
217 void *var = (char*)ctx->data + opt->offset;
218 if (sep && opt->templ[sep + 1]) {
220 if (opt->templ[sep] == '=')
222 if (process_opt_param(var, opt->templ + sep + 1,
226 *(int *)var = opt->value;
232 const struct fuse_opt *opt, unsigned sep,
249 res = process_opt(ctx, opt, sep, newarg, iso);
258 const struct fuse_opt *opt = find_opt(ctx->opt, arg, &sep);
259 if (opt) {
260 for (; opt; opt = find_opt(opt + 1, arg, &sep)) {
262 if (sep && opt->templ[sep] == ' ' && !arg[sep])
263 res = process_opt_sep_arg(ctx, opt, sep, arg,
266 res = process_opt(ctx, opt, sep, arg, iso);
364 .opt = opts,