Home | History | Annotate | Download | only in libutil

Lines Matching defs:opt

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