Lines Matching refs:optarg

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);
216 opts_set(struct opts *opts, const char *o, const char *optarg) in opts_set() argument
222 opts->op_raw = lut_add(opts->op_raw, o, (void *)optarg); in opts_set()
225 *rval = (*info->oi_parser)(o, optarg); in opts_set()
320 opts_parse_ctime(const char *o, const char *optarg) in opts_parse_ctime() argument
325 if (strptime(optarg, "%a %b %e %T %Z %Y", &tm) == NULL && in opts_parse_ctime()
326 strptime(optarg, "%c", &tm) == NULL) in opts_parse_ctime()
340 opts_parse_atopi(const char *o, const char *optarg) in opts_parse_atopi() argument
342 off_t ret = atoll(optarg); in opts_parse_atopi()
344 while (isdigit(*optarg)) in opts_parse_atopi()
345 optarg++; in opts_parse_atopi()
347 if (*optarg) in opts_parse_atopi()
358 opts_parse_bytes(const char *o, const char *optarg) in opts_parse_bytes() argument
360 off_t ret = atoll(optarg); in opts_parse_bytes()
361 while (isdigit(*optarg)) in opts_parse_bytes()
362 optarg++; in opts_parse_bytes()
364 switch (*optarg) { in opts_parse_bytes()
379 if (optarg[1] == '\0') in opts_parse_bytes()
393 opts_parse_seconds(const char *o, const char *optarg) in opts_parse_seconds() argument
397 if (strcasecmp(optarg, "now") == 0) in opts_parse_seconds()
400 if (strcasecmp(optarg, "never") == 0) in opts_parse_seconds()
403 ret = atoll(optarg); in opts_parse_seconds()
404 while (isdigit(*optarg)) in opts_parse_seconds()
405 optarg++; in opts_parse_seconds()
407 if (optarg[1] == '\0') in opts_parse_seconds()
408 switch (*optarg) { in opts_parse_seconds()