Lines Matching defs:o
55 static off_t opts_parse_ctime(const char *o, const char *optarg);
56 static off_t opts_parse_bytes(const char *o, const char *optarg);
57 static off_t opts_parse_atopi(const char *o, const char *optarg);
58 static off_t opts_parse_seconds(const char *o, const char *optarg);
84 { "o", OPTTYPE_STRING, NULL, OPTF_CLI|OPTF_CONF },
216 opts_set(struct opts *opts, const char *o, const char *optarg)
219 struct optinfo *info = opt_info(*o);
222 opts->op_raw = lut_add(opts->op_raw, o, (void *)optarg);
225 *rval = (*info->oi_parser)(o, optarg);
226 opts->op_ints = lut_add(opts->op_ints, o, (void *)rval);
261 opts_optarg(struct opts *opts, const char *o)
263 return ((char *)lut_lookup(opts->op_raw, o));
270 opts_optarg_int(struct opts *opts, const char *o)
274 ret = (off_t *)lut_lookup(opts->op_ints, o);
320 opts_parse_ctime(const char *o, const char *optarg)
328 "Option '%c' requires ctime-style time", *o);
331 err(EF_FILE|EF_SYS|EF_JMP, "Option '%c' Illegal time", *o);
340 opts_parse_atopi(const char *o, const char *optarg)
349 "Option '%c' requires non-negative number", *o);
358 opts_parse_bytes(const char *o, const char *optarg)
384 "Option '%c' requires number with suffix from [bkmg]", *o);
393 opts_parse_seconds(const char *o, const char *optarg)
432 "Option '%c' requires number with suffix from [hdwmy]", *o);