Lines Matching refs:opt
64 getmntoptstr(mntoptparse_t mp, const char *opt) in getmntoptstr() argument
69 if (strcasecmp(opt, m->m_option) == 0) in getmntoptstr()
74 errx(1, errmsg, opt); in getmntoptstr()
83 getmntoptnum(mntoptparse_t mp, const char *opt) in getmntoptnum() argument
88 const char *val = getmntoptstr(mp, opt); in getmntoptnum()
92 errx(1, "Missing %s argument", opt); in getmntoptnum()
109 (*fun)(1, "Invalid %s argument `%s'", opt, val); in getmntoptnum()
128 char *opt, *p; in getmntopts() local
154 for (opt = mp->optbuf; (opt = strtok(opt, ",")) != NULL; opt = NULL) { in getmntopts()
156 if (opt[0] == 'n' && opt[1] == 'o') { in getmntopts()
158 opt += 2; in getmntopts()
166 p = strchr(opt, '='); in getmntopts()
173 if (strcasecmp(opt, m->m_option) == 0) in getmntopts()
185 errx(1, errmsg, opt); in getmntopts()