/illumos-gate/usr/src/test/crypto-tests/tests/common/ |
H A D | cryptotest_kcf.c | 482 const char *valstr = NULL; in cryptotest_errstr() local 486 valstr = "CRYPTO_SUCCESS"; in cryptotest_errstr() 489 valstr = "CRYPTO_CANCEL"; in cryptotest_errstr() 492 valstr = "CRYPTO_HOST_MEMORY"; in cryptotest_errstr() 495 valstr = "CRYPTO_GENERAL_ERROR"; in cryptotest_errstr() 498 valstr = "CRYPTO_FAILED"; in cryptotest_errstr() 501 valstr = "CRYPTO_ARGUMENTS_BAD"; in cryptotest_errstr() 504 valstr = "CRYPTO_ATTRIBUTE_READ_ONLY"; in cryptotest_errstr() 507 valstr = "CRYPTO_ATTRIBUTE_SENSITIVE"; in cryptotest_errstr() 510 valstr = "CRYPTO_ATTRIBUTE_TYPE_INVALID"; in cryptotest_errstr() [all …]
|
H A D | cryptotest_pkcs.c | 491 char *valstr = NULL; in cryptotest_errstr() local 493 valstr = pkcs11_strerror(e); in cryptotest_errstr() 502 if (strcmp(valstr, "CKR_") == 0) { in cryptotest_errstr() 503 (void) snprintf(buf, buflen, "%s (%08x)", valstr, e); in cryptotest_errstr() 505 (void) strlcpy(buf, valstr, buflen); in cryptotest_errstr()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_scf.c | 329 ilbd_algo_to_str(ilb_algo_t algo_type, char *valstr) in ilbd_algo_to_str() argument 335 (void) strlcpy(valstr, algo_tbl[i].algo_str, in ilbd_algo_to_str() 344 ilbd_scf_str_to_algo(ilb_algo_t *algo_type, char *valstr) in ilbd_scf_str_to_algo() argument 349 if (strcmp(valstr, algo_tbl[i].algo_str) == 0) { in ilbd_scf_str_to_algo() 370 ilbd_topo_to_str(ilb_topo_t topo_type, char *valstr) in ilbd_topo_to_str() argument 376 (void) strlcpy(valstr, topo_tbl[i].topo_str, in ilbd_topo_to_str() 385 ilbd_scf_str_to_topo(ilb_topo_t *topo_type, char *valstr) in ilbd_scf_str_to_topo() argument 390 if (strcmp(valstr, topo_tbl[i].topo_str) == 0) { in ilbd_scf_str_to_topo() 399 ilbd_get_svr_field(char *valstr, struct in6_addr *sgs_addr, in ilbd_get_svr_field() argument 408 ipaddr = strtok(valstr, ";"); in ilbd_get_svr_field() [all …]
|
H A D | ilbd_sg.c | 94 char *valstr) in i_ilbd_save_sg() argument 105 prop_name, valstr)); in i_ilbd_save_sg() 1208 char ipstr[INET6_ADDRSTRLEN], *valstr = NULL; in ilbd_Xable_server() local 1434 if ((valstr = malloc(scf_val_len)) == NULL) { in ilbd_Xable_server() 1439 (void) snprintf(valstr, scf_val_len, "%s;%d;%d-%d;%d", in ilbd_Xable_server() 1449 prop_name, valstr); in ilbd_Xable_server() 1455 prop_name, valstr); in ilbd_Xable_server() 1461 free(valstr); in ilbd_Xable_server()
|
/illumos-gate/usr/src/cmd/vscan/vscanadm/ |
H A D | vscanadm.c | 994 vs_adm_parse_maxsize(const char *valstr, void *vp) in vs_adm_parse_maxsize() argument 1002 maxsize = strtoll(valstr, &end, 10); in vs_adm_parse_maxsize() 1022 vs_adm_parse_maxsize_action(const char *valstr, void *vp) in vs_adm_parse_maxsize_action() argument 1026 if (strcmp(valstr, VS_ADM_ALLOW) == 0) { in vs_adm_parse_maxsize_action() 1031 if (strcmp(valstr, VS_ADM_DENY) == 0) { in vs_adm_parse_maxsize_action() 1047 vs_adm_parse_types(const char *valstr, void *vp) in vs_adm_parse_types() argument 1051 if (strlen(valstr) >= sizeof (svcp->vp_types)) in vs_adm_parse_types() 1054 if (strlcpy(svcp->vp_types, valstr, sizeof (svcp->vp_types)) in vs_adm_parse_types() 1072 vs_adm_parse_enable(const char *valstr, void *vp) in vs_adm_parse_enable() argument 1076 if (strcmp(valstr, VS_ADM_ON) == 0) { in vs_adm_parse_enable() [all …]
|
/illumos-gate/usr/src/cmd/pcidr/ |
H A D | pcidr_common.c | 172 char *valstr, *name; in pcidr_print_attrlist() local 186 rv = nvpair_value_string(nvpairp, &valstr); in pcidr_print_attrlist() 199 dprint(lvl, "%s%s = %s\n", prestr, name, valstr); in pcidr_print_attrlist() 210 pcidr_check_string(char *valstr, ...) in pcidr_check_string() argument 216 assert(valstr != NULL); in pcidr_check_string() 218 va_start(ap, valstr); in pcidr_check_string() 220 if (valstr[0] != '\0') in pcidr_check_string() 225 va_start(ap, valstr); in pcidr_check_string() 227 if (strcmp(argstr, valstr) == 0) { in pcidr_check_string()
|
/illumos-gate/usr/src/lib/libndmp/common/ |
H A D | libndmp_prop.c | 443 const char *valstr) in ndmp_smf_set_property() argument 477 if ((scf_value_set_astring(value, valstr)) != SCF_SUCCESS) in ndmp_smf_set_property() 481 valint = strtoll(valstr, 0, 0); in ndmp_smf_set_property() 485 if (strncmp(valstr, "yes", 3)) in ndmp_smf_set_property() 522 char *valstr, size_t sz) in ndmp_smf_get_property() argument 539 if (scf_value_get_astring(value, valstr, in ndmp_smf_get_property() 551 (void) strncpy(valstr, lltostr(valint, in ndmp_smf_get_property() 562 (void) strncpy(valstr, "yes", 4); in ndmp_smf_get_property() 564 (void) strncpy(valstr, "no", 3); in ndmp_smf_get_property()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_main.c | 4830 char valstr[64]; in nxge_priv_propinfo() local 4832 bzero(valstr, sizeof (valstr)); in nxge_priv_propinfo() 4841 (void) snprintf(valstr, sizeof (valstr), in nxge_priv_propinfo() 4845 (void) snprintf(valstr, sizeof (valstr), in nxge_priv_propinfo() 4856 (void) snprintf(valstr, sizeof (valstr), "%x", in nxge_priv_propinfo() 4860 (void) snprintf(valstr, sizeof (valstr), "%d", 0); in nxge_priv_propinfo() 4863 (void) snprintf(valstr, sizeof (valstr), "%d", 1); in nxge_priv_propinfo() 4866 (void) snprintf(valstr, sizeof (valstr), "%d", 1); in nxge_priv_propinfo() 4869 if (strlen(valstr) > 0) in nxge_priv_propinfo() 4870 mac_prop_info_set_default_str(prh, valstr); in nxge_priv_propinfo() [all …]
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | efienv.c | 97 efi_setenv_illumos_wcs(const char *var, CHAR16 *valstr) in efi_setenv_illumos_wcs() argument 101 var, valstr, (ucs2len(valstr) + 1) * sizeof (CHAR16))); in efi_setenv_illumos_wcs()
|
/illumos-gate/usr/src/lib/libnwam/common/ |
H A D | libnwam_files.c | 156 char **valstr, **newvalstr; in nwam_line_to_object() local 195 valstr = NULL; in nwam_line_to_object() 210 valstr = calloc(NWAM_MAX_NUM_VALUES, in nwam_line_to_object() 218 valstr == NULL) { in nwam_line_to_object() 249 valstr[nelem - 1] = in nwam_line_to_object() 313 if ((newvalstr = realloc(valstr, in nwam_line_to_object() 625 char **valstr; in nwam_object_to_line() local 693 if (nwam_value_get_string_array(val, &valstr, &nelem) in nwam_object_to_line() 701 value_add_escapes(valstr[i], evalstr); in nwam_object_to_line()
|
H A D | libnwam_values.c | 520 char **valstr; in nwam_get_prop_value() local 558 &valstr, &numvalues)) != 0) in nwam_get_prop_value() 560 if ((err = nwam_value_create_string_array(valstr, numvalues, in nwam_get_prop_value() 591 char **valstr; in nwam_set_prop_value() local 624 if ((err = nwam_value_get_string_array(value, &valstr, in nwam_set_prop_value() 628 valstr, numvalues)) != 0) in nwam_set_prop_value() 797 nwam_value_string_get_uint64(const char *propname, const char *valstr, in nwam_value_string_get_uint64() argument 803 assert(propname != NULL && valstr != NULL && valp != NULL); in nwam_value_string_get_uint64() 812 if (strcasecmp(value_entries[j].value_string, valstr) in nwam_value_string_get_uint64()
|
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | scfutil.c | 1441 sa_set_property(scfutilhandle_t *handle, char *propname, char *valstr) in sa_set_property() argument 1457 if (scf_value_set_astring(value, valstr) == 0) { in sa_set_property() 1533 char *valstr = NULL; in sa_set_resource_property() local 1568 valstr = sa_get_resource_attr(resource, "name"); in sa_set_resource_property() 1571 strsize = (valstr != NULL) ? strlen(valstr) : 0; in sa_set_resource_property() 1584 valstr ? valstr : ""); in sa_set_resource_property() 1587 idstr, valstr ? valstr : "", in sa_set_resource_property() 1606 if (valstr != NULL) { in sa_set_resource_property() 1607 sa_free_attr_string(valstr); in sa_set_resource_property() 1608 valstr = NULL; in sa_set_resource_property() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_prop.c | 618 const char *valstr = NULL; in dsl_prop_set_sync_impl() local 746 valstr = valbuf; in dsl_prop_set_sync_impl() 749 valstr = value; in dsl_prop_set_sync_impl() 754 valstr = tbuf; in dsl_prop_set_sync_impl() 760 "%s=%s", propname, (valstr == NULL ? "" : valstr)); in dsl_prop_set_sync_impl() 826 char *valstr = fnvpair_value_string(elem); in dsl_props_set_check() local 827 if (strlen(valstr) >= (version < in dsl_props_set_check() 940 char *valstr; in dsl_prop_get_all_impl() local 977 valstr = kmem_asprintf("%s%s", propname, in dsl_prop_get_all_impl() 979 err = zap_contains(mos, propobj, valstr); in dsl_prop_get_all_impl() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | config.c | 492 char *valstr, struct confvar *confvar) in parse_var_value() argument 499 (int)type, varstr, valstr); in parse_var_value() 510 if (!(*cip->ci_parsefunc)(valstr, &val)) { in parse_var_value() 511 conferr("Bad value: <%s>\n", valstr); in parse_var_value() 516 valstr, cip->ci_min, varstr); in parse_var_value() 521 valstr, cip->ci_max, varstr); in parse_var_value()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_scfutil.c | 191 char *propname, char *valstr) in smb_smf_set_string_property() argument 211 if (scf_value_set_astring(value, valstr) == 0) { in smb_smf_set_string_property() 253 char *valstr, size_t sz) in smb_smf_get_string_property() argument 267 if (scf_value_get_astring(value, valstr, sz) < 0) { in smb_smf_get_string_property()
|
/illumos-gate/usr/src/cmd/fmtmsg/ |
H A D | main.c | 362 char *valstr; /* Ptr to extracted sev value */ local 403 valstr = current; 409 val = (int) strtol(noesc(valstr), &p, 0);
|
/illumos-gate/usr/src/lib/pyzfs/common/ |
H A D | ioctl.c | 169 const char *valstr; in dict2nvl() local 171 valstr = PyUnicode_AsUTF8(value); in dict2nvl() 173 valstr = PyString_AsString(value); in dict2nvl() 175 err = nvlist_add_string(nvl, keystr, valstr); in dict2nvl()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | soconfig.c | 520 char *valstr; in parse_filter_params() local 536 while ((valstr = strsep(&socktup, ":")) != NULL && i < 3) { in parse_filter_params() 537 val = parse_int(valstr); in parse_filter_params()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_gld.c | 550 char valstr[64]; in oce_m_propinfo() local 561 (void) snprintf(valstr, sizeof (valstr), "%d", value); in oce_m_propinfo() 562 mac_prop_info_set_default_str(prh, valstr); in oce_m_propinfo()
|
/illumos-gate/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_gld.c | 809 char valstr[64]; in ixgbe_m_propinfo() local 812 bzero(valstr, sizeof (valstr)); in ixgbe_m_propinfo() 838 (void) snprintf(valstr, sizeof (valstr), "%x", value); in ixgbe_m_propinfo()
|
/illumos-gate/usr/src/lib/libshare/smbfs/ |
H A D | smbfs_scfutil.c | 568 char *propname, char *valstr) in smb_smf_set_string_property() argument 589 if (scf_value_set_astring(value, valstr) == 0) { in smb_smf_set_string_property() 631 char *valstr, size_t sz) in smb_smf_get_string_property() argument 646 if (scf_value_get_astring(value, valstr, sz) < 0) { in smb_smf_get_string_property()
|
/illumos-gate/usr/src/uts/common/io/simnet/ |
H A D | simnet.c | 1622 char valstr[MAXNAMELEN]; in simnet_priv_propinfo_wifi() local 1624 bzero(valstr, sizeof (valstr)); in simnet_priv_propinfo_wifi() 1627 (void) snprintf(valstr, sizeof (valstr), "%d", 0); in simnet_priv_propinfo_wifi() 1630 if (strlen(valstr) > 0) in simnet_priv_propinfo_wifi() 1631 mac_prop_info_set_default_str(prh, valstr); in simnet_priv_propinfo_wifi()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | fmtmsg.c | 402 char *valstr; /* Ptr to extracted sev value */ in getauxsevs() local 442 valstr = current; in getauxsevs() 449 val = (int)strtol(noesc(valstr), &p, 0); in getauxsevs()
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_main.c | 3350 char valstr[MAXNAMELEN]; in hxge_m_propinfo() local 3352 bzero(valstr, sizeof (valstr)); in hxge_m_propinfo() 3356 (void) snprintf(valstr, sizeof (valstr), "%d", in hxge_m_propinfo() 3359 (void) snprintf(valstr, sizeof (valstr), "%d", in hxge_m_propinfo() 3371 (void) snprintf(valstr, sizeof (valstr), "%d", in hxge_m_propinfo() 3375 if (strlen(valstr) > 0) in hxge_m_propinfo() 3376 mac_prop_info_set_default_str(prh, valstr); in hxge_m_propinfo() 3446 char valstr[MAXNAMELEN]; in hxge_get_priv_prop() local 3506 (void) snprintf(valstr, sizeof (valstr), "0x%x", value); in hxge_get_priv_prop() 3508 strsize = (uint_t)strlen(valstr); in hxge_get_priv_prop() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/routeadm/ |
H A D | routeadm.c | 1907 char *valstr; in ra_get_boolean_prop() local 1910 composed, required, NULL, &valstr) != 0) in ra_get_boolean_prop() 1912 *val = strcmp(valstr, RA_PROPVAL_BOOLEAN_TRUE) == 0; in ra_get_boolean_prop() 1913 free(valstr); in ra_get_boolean_prop() 2522 ra_str2oval(const char *valstr) in ra_str2oval() argument 2524 if (strcmp(valstr, "enabled") == 0) in ra_str2oval() 2526 else if (strcmp(valstr, "disabled") == 0) in ra_str2oval() 2528 else if (strcmp(valstr, "default") == 0) in ra_str2oval()
|