/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_disk_event.c | 63 const char *strval; in zed_udev_event() local 69 if (nvlist_lookup_string(nvl, DEV_NAME, &strval) == 0) in zed_udev_event() 70 zed_log_msg(LOG_INFO, "\t%s: %s", DEV_NAME, strval); in zed_udev_event() 71 if (nvlist_lookup_string(nvl, DEV_PATH, &strval) == 0) in zed_udev_event() 72 zed_log_msg(LOG_INFO, "\t%s: %s", DEV_PATH, strval); in zed_udev_event() 73 if (nvlist_lookup_string(nvl, DEV_IDENTIFIER, &strval) == 0) in zed_udev_event() 74 zed_log_msg(LOG_INFO, "\t%s: %s", DEV_IDENTIFIER, strval); in zed_udev_event() 77 if (nvlist_lookup_string(nvl, DEV_PHYS_PATH, &strval) == 0) in zed_udev_event() 78 zed_log_msg(LOG_INFO, "\t%s: %s", DEV_PHYS_PATH, strval); in zed_udev_event() 109 char strval[128]; in dev_event_nvlist() local [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zcp_get.c | 229 char *strval = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP); in get_special_prop() local 253 kmem_free(strval, ZAP_MAXVALUELEN); in get_special_prop() 284 dsl_dir_get_origin(ds->ds_dir, strval); in get_special_prop() 295 error = get_objset_type_name(ds, strval); in get_special_prop() 298 error = dsl_get_prev_snap(ds, strval); in get_special_prop() 301 dsl_dataset_name(ds, strval); in get_special_prop() 304 error = dsl_get_mountpoint(ds, dsname, strval, setpoint); in get_special_prop() 348 (void) strlcpy(strval, token, ZAP_MAXVALUELEN); in get_special_prop() 415 kmem_free(strval, ZAP_MAXVALUELEN); in get_special_prop() 425 (void) lua_pushstring(state, strval); in get_special_prop() [all …]
|
H A D | vdev.c | 5818 vdev_prop_add_list(nvlist_t *nvl, const char *propname, const char *strval, in vdev_prop_add_list() argument 5826 if (strval != NULL) in vdev_prop_add_list() 5827 fnvlist_add_string(propval, ZPROP_VALUE, strval); in vdev_prop_add_list() 5872 const char *strval; in vdev_props_set_sync() local 5880 strval = fnvpair_value_string(elem); in vdev_props_set_sync() 5881 if (strlen(strval) == 0) { in vdev_props_set_sync() 5887 1, strlen(strval) + 1, strval, tx)); in vdev_props_set_sync() 5892 strval); in vdev_props_set_sync() 5902 strval = fnvpair_value_string(elem); in vdev_props_set_sync() 5904 1, strlen(strval) + 1, strval, tx)); in vdev_props_set_sync() [all …]
|
H A D | spa.c | 322 spa_prop_add_list(nvlist_t *nvl, zpool_prop_t prop, const char *strval, in spa_prop_add_list() argument 331 if (strval != NULL) in spa_prop_add_list() 332 fnvlist_add_string(propval, ZPROP_VALUE, strval); in spa_prop_add_list() 387 spa_prop_add_user(nvlist_t *nvl, const char *propname, char *strval, in spa_prop_add_user() argument 394 VERIFY(nvlist_add_string(propval, ZPROP_VALUE, strval) == 0); in spa_prop_add_user() 571 char *strval = NULL; in spa_prop_get() local 594 strval = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, in spa_prop_get() 596 dsl_dataset_name(ds, strval); in spa_prop_get() 599 strval = NULL; in spa_prop_get() 603 spa_prop_add_list(nv, prop, strval, intval, src); in spa_prop_get() [all …]
|
H A D | zfs_ioctl.c | 507 zfs_set_slabel_policy(const char *name, const char *strval, cred_t *cr) in zfs_set_slabel_policy() argument 523 if (strcasecmp(strval, ZFS_MLSLABEL_DEFAULT) == 0) in zfs_set_slabel_policy() 527 if (!new_default && (hexstr_to_label(strval, &new_sl) != 0)) in zfs_set_slabel_policy() 550 if (zfs_check_global_label(name, strval) != 0) in zfs_set_slabel_policy() 580 if (hexstr_to_label(strval, &new_sl) != 0) in zfs_set_slabel_policy() 606 const char *strval; in zfs_secpolicy_setprop() local 645 if (nvpair_value_string(propval, &strval) == 0) { in zfs_secpolicy_setprop() 648 err = zfs_set_slabel_policy(dsname, strval, CRED()); in zfs_secpolicy_setprop() 2483 const char *strval = NULL; in zfs_prop_set_special() local 2501 strval = fnvpair_value_string(pair); in zfs_prop_set_special() [all …]
|
/freebsd/contrib/bsnmp/snmpd/ |
H A D | config.c | 152 static char strval[_POSIX2_LINE_MAX]; variable 573 strval[strvallen] = '\0'; in _gettoken() 577 strval[strvallen++] = c; in _gettoken() 582 strval[strvallen++] = chr[end - esc]; in _gettoken() 593 strval[strvallen++] = c; in _gettoken() 608 strval[strvallen++] = c; in _gettoken() 618 strval[strvallen] = '\0'; in _gettoken() 626 strval[strvallen++] = c; in _gettoken() 631 strval[strvallen] = '\0'; in _gettoken() 669 printf("(STR %.*s)", (int)strvallen, strval); in gettoken() [all …]
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | v3_enum.c | 45 long strval; in i2s_ASN1_ENUMERATED_TABLE() local 47 strval = ASN1_ENUMERATED_get(e); in i2s_ASN1_ENUMERATED_TABLE() 49 if (strval == enam->bitnum) in i2s_ASN1_ENUMERATED_TABLE()
|
/freebsd/crypto/openssl/test/ |
H A D | params_test.c | 568 const char *strval; member 623 a.argname, a.strval, 0, NULL)) { in check_int_from_text() 626 a.argname, a.strval); in check_int_from_text() 634 a.argname, a.strval); in check_int_from_text() 642 "%d != %d", a.argname, a.strval, a.expected_res, res); in check_int_from_text() 647 a.argname, a.strval, a.expected_intval, val); in check_int_from_text() 652 a.argname, a.strval, in check_int_from_text()
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_pool.c | 288 const char *strval; in zpool_get_prop() local 450 if (zpool_prop_index_to_string(prop, intval, &strval) in zpool_get_prop() 453 (void) strlcpy(buf, strval, len); in zpool_get_prop() 532 const char *strval; in zpool_valid_proplist() local 561 retprops, &strval, &intval, errbuf) != 0) in zpool_valid_proplist() 600 (void) nvpair_value_string(elem, &strval); in zpool_valid_proplist() 601 if (strcmp(strval, ZFS_FEATURE_ENABLED) != 0 && in zpool_valid_proplist() 602 strcmp(strval, ZFS_FEATURE_DISABLED) != 0) { in zpool_valid_proplist() 611 strcmp(strval, ZFS_FEATURE_DISABLED) == 0) { in zpool_valid_proplist() 645 (void) nvpair_value_string(elem, &strval); in zpool_valid_proplist() [all …]
|
H A D | libzfs_dataset.c | 1036 const char *strval; in zfs_valid_proplist() local 1077 (void) nvpair_value_string(elem, &strval); in zfs_valid_proplist() 1078 if (nvlist_add_string(ret, propname, strval) != 0) { in zfs_valid_proplist() 1129 (void) nvpair_value_string(elem, &strval); in zfs_valid_proplist() 1130 if (strcmp(strval, "none") == 0) { in zfs_valid_proplist() 1133 strval, &intval) != 0) { in zfs_valid_proplist() 1213 &strval, &intval, errbuf) != 0) in zfs_valid_proplist() 1318 if (strcasecmp(strval, ZFS_MLSLABEL_DEFAULT) == 0) in zfs_valid_proplist() 1323 (str_to_label(strval, &new_sl, MAC_LABEL, in zfs_valid_proplist() 1338 if (strcmp(strval, he in zfs_valid_proplist() 2607 zcp_check(zfs_handle_t * zhp,zfs_prop_t prop,uint64_t intval,const char * strval) zcp_check() argument 2681 const char *strval; zfs_prop_get() local 4728 const char *strval; zfs_expand_proplist() local 5596 const char *strval; zvol_volsize_to_reservation() local [all...] |
H A D | libzfs_crypto.c | 946 const char *strval; in proplist_has_encryption_props() local 954 zfs_prop_to_name(ZFS_PROP_KEYLOCATION), &strval); in proplist_has_encryption_props() 955 if (ret == 0 && strcmp(strval, "none") != 0) in proplist_has_encryption_props()
|
/freebsd/contrib/atf/atf-c/ |
H A D | tc.c | 697 const char *strval; in atf_tc_get_config_var_as_bool() local 700 strval = atf_tc_get_config_var(tc, name); in atf_tc_get_config_var_as_bool() 701 err = atf_text_to_bool(strval, &val); in atf_tc_get_config_var_as_bool() 705 "boolean value; found %s", name, strval); in atf_tc_get_config_var_as_bool() 729 const char *strval; in atf_tc_get_config_var_as_long() local 732 strval = atf_tc_get_config_var(tc, name); in atf_tc_get_config_var_as_long() 733 err = atf_text_to_long(strval, &val); in atf_tc_get_config_var_as_long() 737 "long value; found %s", name, strval); in atf_tc_get_config_var_as_long()
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | fmd_api.c | 341 const char *strval; in zed_log_fault() local 349 if (nvlist_lookup_string(nvl, FM_CLASS, &strval) == 0) in zed_log_fault() 350 zed_log_msg(LOG_INFO, "\t%s: %s", FM_CLASS, strval); in zed_log_fault() 356 if (nvlist_lookup_string(rsrc, FM_FMRI_SCHEME, &strval) == 0) in zed_log_fault() 358 strval); in zed_log_fault()
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_value_fmts.c | 396 } strval; in bhnd_nvram_val_bcm_leddc_encode_elem() local 459 inp = &strval; in bhnd_nvram_val_bcm_leddc_encode_elem() 461 strval.u32 = ival; in bhnd_nvram_val_bcm_leddc_encode_elem() 464 strval.u16 = ival; in bhnd_nvram_val_bcm_leddc_encode_elem()
|
/freebsd/contrib/lua/src/ |
H A D | lparser.h | 73 TString *strval; /* for VKSTR */ member
|
H A D | lcode.c | 98 setsvalue(fs->ls->L, v, e->u.strval); in luaK_exp2const() 717 e->k = VKSTR; e->u.strval = tsvalue(v); in const2exp() 746 e->u.info = stringK(fs, e->u.strval); in str2K() 1014 case VKSTR: info = stringK(fs, e->u.strval); break; in luaK_exp2K()
|
H A D | lparser.c | 162 e->u.strval = s; in codestring()
|
/freebsd/sys/cam/ |
H A D | cam_periph.c | 560 const char *dname, *strval; in camperiphnextunit() local 599 if (resource_string_value(dname, dunit, "sn", &strval) == 0 || in camperiphnextunit() 602 resource_string_value(dname, dunit, "at", &strval) == 0) in camperiphnextunit() 618 const char *dname, *strval; in camperiphunit() local 629 if (resource_string_value(dname, dunit, "at", &strval) == 0) { in camperiphunit() 630 if (strcmp(strval, pathbuf) != 0) in camperiphunit() 644 if (resource_string_value(dname, dunit, "sn", &strval) == 0) { in camperiphunit() 645 if (sn == NULL || strcmp(strval, sn) != 0) in camperiphunit()
|
H A D | cam_xpt.c | 4007 const char *strval; in xptnextfreepathid() local 4024 if (resource_string_value("scbus", pathid, "at", &strval) == 0) { in xptnextfreepathid()
|
/freebsd/sys/contrib/openzfs/cmd/zfs/ |
H A D | zfs_main.c | 1065 const char *strval; in zfs_do_create() local 1188 nvlist_lookup_string(props, prop, &strval) != 0) { in zfs_do_create() 1228 &strval) != 0) { in zfs_do_create() 2013 const char *strval; in get_callback() local 2093 strval = "-"; in get_callback() 2095 strval = fnvlist_lookup_string(propval, in get_callback() 2119 pl->pl_user_prop, strval, sourcetype, in get_callback() 3195 const char *strval = "-"; in print_us_node() local 3211 strval = fnvpair_value_string(nvp); in print_us_node() 3222 strval = us_type2str(val32); in print_us_node() [all …]
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_wlan/ |
H A D | wlan_snmp.h | 237 char *strval, int len);
|
H A D | wlan_sys.c | 2052 char *strval, int len) in wlan_config_set_ioctl() argument 2058 return (wlan_config_set_country(wif, strval, in wlan_config_set_ioctl() 2064 return (wlan_config_set_dssid(wif, strval, len)); in wlan_config_set_ioctl() 2068 return (wlan_config_set_bssid(wif, strval)); in wlan_config_set_ioctl()
|
H A D | wlan_snmp.c | 491 char *strval; in op_wlan_iface_config() local 513 strval = NULL; in op_wlan_iface_config() 673 strval = val->v.octetstring.octets; in op_wlan_iface_config() 679 strval = NULL; in op_wlan_iface_config() 688 strval = ctx->scratch->ptr1; in op_wlan_iface_config() 855 strval, vlen); in op_wlan_iface_config()
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_main.c | 1277 const char *strval; in add_prop_list() local 1352 if (nvlist_lookup_string(proplist, normnm, &strval) == 0 && in add_prop_list() 1519 char strval[ZPOOL_MAXPROPLEN]; in zpool_do_add() local 1523 (void) sprintf(strval, "%" PRId32, intval); in zpool_do_add() 1524 verify(add_prop_list(ZPOOL_CONFIG_ASHIFT, strval, in zpool_do_add() 7597 char strval[ZPOOL_MAXPROPLEN]; in zpool_do_attach_or_replace() local 7601 (void) sprintf(strval, "%" PRId32, intval); in zpool_do_attach_or_replace() 7602 verify(add_prop_list(ZPOOL_CONFIG_ASHIFT, strval, in zpool_do_attach_or_replace()
|