Lines Matching defs:sep_idx
183 static bool match_templ(const char *templ, const char *opt, ssize_t *sep_idx)
192 if (sep_idx != NULL)
193 *sep_idx = (ssize_t)(sep - templ);
202 if (sep_idx != NULL)
203 *sep_idx = -1;
213 find_opt(const struct fuse_opt *opts, const char *opt, ssize_t *sep_idx)
216 if (match_templ(opts->templ, opt, sep_idx))
286 const struct fuse_opt* opt, ssize_t sep_idx, void* data,
298 if (sep_idx > 0 && opt->templ[sep_idx + 1] == '%') {
301 opt->templ[sep_idx] == '=' ? &arg[sep_idx + 1] : &arg[sep_idx];
303 if (opt->templ[sep_idx + 2] == 's') {
316 if (sscanf(param, &opt->templ[sep_idx + 1], var) == -1) {
320 param, (int)sep_idx, opt->templ);
339 ssize_t sep_idx;
340 const struct fuse_opt *opt = find_opt(opts, arg, &sep_idx);
346 opt = find_opt(++opt, arg, &sep_idx)) {
348 if (sep_idx > 0 && opt->templ[sep_idx] == ' ' &&
349 arg[sep_idx] == '\0') {
360 if ((new_arg = malloc((size_t)sep_idx +
364 strncpy(new_arg, arg, (size_t)sep_idx); /* -x */
365 strcpy(new_arg + sep_idx, args->argv[*argi]); /* foo */
366 rv = parse_matched_arg(new_arg, outargs, opt, sep_idx,
375 rv = parse_matched_arg(arg, outargs, opt, sep_idx,