Home
last modified time | relevance | path

Searched refs:valstr (Results 1 – 6 of 6) sorted by relevance

/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dcpuinfo.c33 char *istr = NULL, *valstr = NULL, *saveptr = NULL; in get_cpu_baseinfo() local
62 valstr = strchr(saveptr, ':'); in get_cpu_baseinfo()
63 if (valstr == NULL) in get_cpu_baseinfo()
65 valstr++; in get_cpu_baseinfo()
66 sscanf(valstr, " %d\n", &data); in get_cpu_baseinfo()
/third_party/toybox/toys/pending/
Ddhcp.c389 char *option, *valstr, *grp, *tp; in strtoopt() local
423 valstr = strtok(NULL, "\n"); in strtoopt()
424 if (!valstr) error_exit("option %s has no value defined.\n", option); in strtoopt()
425 dbg(" value : %-20s \n ", valstr); in strtoopt()
430 convtmp = strtou32(valstr); in strtoopt()
431 if (convtmp < 0) error_exit("Invalid/wrong formatted number %s", valstr); in strtoopt()
438 convtmp = strtou32(valstr); in strtoopt()
439 if (convtmp < 0) error_exit("Invalid/malformed number %s", valstr); in strtoopt()
446 convtmp = strtou32(valstr); in strtoopt()
447 if (convtmp < 0) error_exit("Invalid/malformed number %s", valstr); in strtoopt()
[all …]
Ddhcpd.c544 char *option, *valstr, *grp, *tp; in strtoopt() local
579 if (!(valstr = strtok(NULL, " \t"))) { in strtoopt()
583 dbg(" value : %-20s : ", valstr); in strtoopt()
588 strtou32(valstr, &convtmp); in strtoopt()
594 strtou32(valstr, &convtmp); in strtoopt()
600 strtou32(valstr, &convtmp); in strtoopt()
606 striptovar(valstr, options_list[count].val); in strtoopt()
609 options_list[count].len = strlen(valstr); in strtoopt()
610 options_list[count].val = strdup(valstr); in strtoopt()
613 while(valstr){ in strtoopt()
[all …]
/third_party/nghttp2/src/
Dshrpx_config.cc1011 auto valstr = StringRef{first + str_size("fall="), end}; in parse_downstream_params()
1012 if (valstr.empty()) { in parse_downstream_params()
1017 auto n = util::parse_uint(valstr); in parse_downstream_params()
1025 auto valstr = StringRef{first + str_size("rise="), end}; in parse_downstream_params()
1026 if (valstr.empty()) { in parse_downstream_params()
1031 auto n = util::parse_uint(valstr); in parse_downstream_params()
1045 auto valstr = StringRef{first + str_size("affinity="), end}; in parse_downstream_params()
1046 if (util::strieq_l("none", valstr)) { in parse_downstream_params()
1048 } else if (util::strieq_l("ip", valstr)) { in parse_downstream_params()
1050 } else if (util::strieq_l("cookie", valstr)) { in parse_downstream_params()
[all …]
/third_party/cups-filters/filter/foomatic-rip/
Doptions.c879 const char * valstr; in composite_get_command() local
886 if (!(valstr = option_get_value(opt, optionset))) in composite_get_command()
890 copy = strdup(valstr); in composite_get_command()
936 const char *valstr; in option_get_command() local
947 valstr = option_get_value(opt, optionset); in option_get_command()
948 if (!valstr) in option_get_command()
952 choice = option_find_choice(opt, valstr); in option_get_command()
960 if (opt->type == TYPE_ENUM && !strcasecmp(valstr, "None")) in option_get_command()
965 !strcasecmp(valstr, "None")) in option_get_command()
966 valstr = ""; in option_get_command()
[all …]
/third_party/openssl/apps/lib/
Dapps.c1905 unsigned char *valstr; in parse_name() local
1923 valstr = (unsigned char *)bp; in parse_name()
1954 if (*valstr == '\0') { in parse_name()
1961 valstr, strlen((char *)valstr), in parse_name()
1966 opt_getprog(), desc, typestr ,valstr); in parse_name()