Lines Matching refs:val
85 char *val; in skip_to_semi() local
89 token = peek_token(&val, cfile); in skip_to_semi()
92 token = next_token(&val, cfile); in skip_to_semi()
100 token = next_token(&val, cfile); in skip_to_semi()
109 token = next_token(&val, cfile); in skip_to_semi()
112 token = next_token(&val, cfile); in skip_to_semi()
120 char *val; in parse_semi() local
122 token = next_token(&val, cfile); in parse_semi()
137 char *val, *s; in parse_string() local
140 token = next_token(&val, cfile); in parse_string()
146 s = strdup(val); in parse_string()
148 fatalx("no memory for string %s.", val); in parse_string()
163 char *val, *s, *t; in parse_host_name() local
170 token = next_token(&val, cfile); in parse_host_name()
177 s = strdup(val); in parse_host_name()
186 token = peek_token(&val, cfile); in parse_host_name()
188 token = next_token(&val, cfile); in parse_host_name()
219 char *val; in parse_hardware_param() local
223 token = next_token(&val, cfile); in parse_hardware_param()
240 token = peek_token(&val, cfile); in parse_hardware_param()
244 if (ether_hostton(val, (struct ether_addr *)e) == 0) { in parse_hardware_param()
245 (void)next_token(&val, cfile); /* consume token */ in parse_hardware_param()
278 token = next_token(&val, cfile); in parse_hardware_param()
292 char *val; in parse_lease_time() local
295 next_token(&val, cfile); in parse_lease_time()
297 value = strtonum(val, 0, UINT32_MAX, &errstr); in parse_lease_time()
299 parse_warn("lease time is %s: %s", errstr, val); in parse_lease_time()
321 char *val, *t; in parse_numeric_aggregate() local
335 token = peek_token(&val, cfile); in parse_numeric_aggregate()
340 token = next_token(&val, cfile); in parse_numeric_aggregate()
346 token = next_token(&val, cfile); in parse_numeric_aggregate()
348 token = next_token(&val, cfile); in parse_numeric_aggregate()
364 convert_num(s, val, base, size); in parse_numeric_aggregate()
367 t = strdup(val); in parse_numeric_aggregate()
398 u_int32_t val = 0; in convert_num() local
440 val = val * base + tval; in convert_num()
447 if (val > max) { in convert_num()
451 negative ? "-" : "", val, max); in convert_num()
455 negative ? "-" : "", val, max); in convert_num()
459 negative ? "-" : "", val, max); in convert_num()
467 *buf = -(unsigned long)val; in convert_num()
470 putShort(buf, -(unsigned long)val); in convert_num()
473 putLong(buf, -(unsigned long)val); in convert_num()
482 *buf = (u_int8_t)val; in convert_num()
485 putUShort(buf, (u_int16_t)val); in convert_num()
488 putULong(buf, val); in convert_num()
510 char *val, *p; in parse_date() local
525 token = next_token(&val, cfile); in parse_date()
526 n = strlcat(timestr, val, sizeof(timestr)); in parse_date()