Lines Matching defs:opt
216 const char *opt;
243 for (i = 0; mount_flags[i].opt != NULL; i++) {
244 const char *opt = mount_flags[i].opt;
245 if (strlen(opt) == len && strncmp(opt, s, len) == 0) {
251 progname, opt);
259 static int add_option(char **optsp, const char *opt, unsigned expand)
263 newopts = strdup(opt);
266 unsigned newsize = oldsize + 1 + strlen(opt) + expand + 1;
269 sprintf(newopts + oldsize, ",%s", opt);
287 for (i = 0; mount_flags[i].opt != NULL; i++) {
289 add_option(mnt_optsp, mount_flags[i].opt, 0) == -1)
311 static int opt_eq(const char *s, unsigned len, const char *opt)
313 if(strlen(opt) == len && strncmp(s, opt, len) == 0)
319 static int get_string_opt(const char *s, unsigned len, const char *opt,
322 unsigned opt_len = strlen(opt);