Lines Matching defs:opt
114 fuse_opt_add_opt(char **opts, const char *opt)
123 *opts = libfuse_strdup(opt);
130 optlen = strlen(opt);
136 (void) strlcat(newopts, opt, newlen);
206 const struct fuse_opt *opt;
210 for (opt = opts; opt->templ != NULL; opt++) {
211 chop = strrchr(opt->templ, '=');
213 chop = strrchr(opt->templ, ' ');
215 cmplen = sep = (uintptr_t)chop - (uintptr_t)opt->templ;
218 if (strncmp(arg, opt->templ, cmplen) == 0) {
223 if (strcmp(arg, opt->templ) == 0) {
230 if (opt->templ == NULL)
231 opt = NULL;
232 return (opt);
263 const struct fuse_opt *opt, fuse_opt_proc_t proc, void *data)
268 if ((opt->offset == -1U) || (opt->offset == -1UL)) {
269 rc = fuse_opt_proc(new, arg, opt->value, proc, data);
271 valaddr = (uintptr_t)data + opt->offset;
272 *(int *)valaddr = opt->value;
291 const struct fuse_opt *opt;
298 opt = fuse_opt_next_match(opts, arg, &sep);
299 if ((opt == NULL) || (opt->templ == NULL))
304 post = opt->templ + sep;
309 rc = fuse_opt_proc(new, arg, opt->value,
315 opt->offset;
326 rc = fuse_opt_apply(new, buffy, opt,
330 rc = fuse_opt_apply(new, arg, opt, proc, data);
335 ++opt;
336 opt = fuse_opt_next_match(opt, arg, &sep);
337 } while ((rc != -1) && (opt != NULL) && (opt->templ != NULL));
347 char buffy[BUFSIZ], *opt, *lasts;
351 for (opt = strtok_r(buffy, ", ", &lasts); opt != NULL;
352 opt = strtok_r(NULL, ", ", &lasts)) {
353 rc = fuse_opt_opt(old, new, opt, opts, proc, data);
357 rc = fuse_opt_add_opt(allopts, opt);