Home
last modified time | relevance | path

Searched refs:value_str (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/lib/libprtdiag/common/
H A Ddisplay_funcs.c119 char *value_str; in disp_powerfail() local
127 value_str = get_prop_val(find_prop(pnode, pf_str)); in disp_powerfail()
128 if (value_str == NULL) { in disp_powerfail()
132 value = (time_t)atoi(value_str); in disp_powerfail()
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_error.c140 char *arg_str, *func_str, *entry_str, *value_str; in sbdp_passthru_inject_error()
182 if ((value_str = strchr(entry_str, ':')) == NULL) { in sbdp_passthru_inject_error()
193 *value_str++ = '\0'; in sbdp_passthru_inject_error()
219 value = sbdp_strtoi(value_str, NULL); in sbdp_passthru_inject_error()
/illumos-gate/usr/src/cmd/pcitool/
H A Dpcitool_ui.c80 static int get_value64(char *value_str, uint64_t *value, boolean_t hex_only);
842 get_value64(char *value_str, uint64_t *value, boolean_t hex_only) in get_value64() argument
853 if ((value_str == NULL) || (strlen(value_str) == 0)) { in get_value64()
858 if (!hex_only && (value_str[0] != '0')) { in get_value64()
860 string_to_check = value_str; in get_value64()
861 } else if ((value_str[1] == 'X') || (value_str[1] == 'x')) { in get_value64()
863 string_to_check = &value_str[2]; /* Ignore 0x of hex */ in get_value64()
866 string_to_check = value_str; /* Hex number, no 0x prefix */ in get_value64()
869 string_to_check = value_str; in get_value64()
884 *value = strtoull(value_str, NULL, (hex_only ? 16 : 0)); in get_value64()