/illumos-gate/usr/src/cmd/nvmeadm/ |
H A D | nvmeadm_ofmt.c | 292 ret = strlcpy(buf, "nvm", buflen); in nvmeadm_list_logs_ofmt_cb() 295 ret = strlcpy(buf, "kv", buflen); in nvmeadm_list_logs_ofmt_cb() 298 ret = strlcpy(buf, "zns", buflen); in nvmeadm_list_logs_ofmt_cb() 336 ret = strlcpy(buf, "mandatory", buflen); in nvmeadm_list_logs_ofmt_cb() 339 ret = strlcpy(buf, "optional", buflen); in nvmeadm_list_logs_ofmt_cb() 460 ret = strlcpy(buf, "optional", buflen); in nvmeadm_list_features_ofmt_cb() 473 ret = strlcpy(buf, "none", buflen); in nvmeadm_list_features_ofmt_cb() 502 ret = strlcpy(buf, "-", buflen); in nvmeadm_list_features_ofmt_cb() 511 ret = strlcpy(buf, "unknown", buflen); in nvmeadm_list_features_ofmt_cb() 514 ret = strlcpy(buf, "no", buflen); in nvmeadm_list_features_ofmt_cb() [all …]
|
/illumos-gate/usr/src/lib/print/libipp-core/common/ |
H A D | strings.c | 272 (void) strlcpy(ret, tag_strings[id], len); in ipp_tag_string() 274 (void) strlcpy(ret, "extension", len); in ipp_tag_string() 285 (void) strlcpy(ret, opid_strings[id], len); in ipp_opid_string() 289 (void) strlcpy(ret, in ipp_opid_string() 317 (void) strlcpy(ret, ok_status_strings[id], len); in ipp_status_string() 319 (void) strlcpy(ret, in ipp_status_string() 322 (void) strlcpy(ret, in ipp_status_string() 325 (void) strlcpy(ret, in ipp_status_string()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pzone.c | 245 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot() 256 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot() 292 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot() 449 (void) strlcpy(s, tmp, n); in Plofspath() 549 (void) strlcpy(s, zroot, n); in Pzonepath() 560 (void) strlcpy(s, zroot, n); in Pzonepath() 642 (void) strlcpy(s, tmp, n); in Pzonepath() 740 (void) strlcpy(s, zpath, n); in Pzonepath() 791 (void) strlcpy(s, buf, n); in Pfindmap() 808 (void) strlcpy(s, buf, n); in Pfindmap() [all …]
|
/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | rules.c | 131 (void) strlcpy(area, string, PATH_MAX); in Pluralise() 369 (void) strlcpy(area, input, PATH_MAX); in Mangle() 385 (void) strlcpy(area, Capitalise(area), in Mangle() 395 (void) strlcpy(area2, area, PATH_MAX); in Mangle() 429 (void) strlcpy(area2 + 1, area, in Mangle() 431 (void) strlcpy(area, area2, PATH_MAX); in Mangle() 459 (void) strlcpy(area2, area, PATH_MAX); in Mangle() 504 (void) strlcpy(p2, p1, PATH_MAX); in Mangle() 515 (void) strlcpy(area, Purge(area, in Mangle() 518 (void) strlcpy(area, PolyPurge(area, in Mangle() [all …]
|
/illumos-gate/usr/src/lib/krb5/kadm5/srv/ |
H A D | chgpwd.c | 91 (void) strlcpy(strresult, "Request was truncated", in process_chpw_request() 174 (void) strlcpy(strresult, in process_chpw_request() 224 (void) strlcpy(strresult, in process_chpw_request() 251 (void) strlcpy(strresult, in process_chpw_request() 269 (void) strlcpy(strresult, in process_chpw_request() 302 (void) strlcpy(strresult, in process_chpw_request() 313 (void) strlcpy(strresult, in process_chpw_request() 324 (void) strlcpy(strresult, in process_chpw_request() 408 (void) strlcpy(strresult, "", sizeof (strresult)); in process_chpw_request() 437 (void) strlcpy(strresult, in process_chpw_request() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/ |
H A D | stpaul.c | 116 (void) strlcpy(pci_card.notes, path, sizeof (pci_card.notes)); in stpaul_pci_callback() 125 (void) strlcpy(name, "", sizeof (name)); in stpaul_pci_callback() 204 (void) strlcpy(pci_card.name, name, sizeof (pci_card.name)); in stpaul_pci_callback() 211 (void) strlcpy(model, "", sizeof (model)); in stpaul_pci_callback() 214 (void) strlcpy(pci_card.model, model, sizeof (pci_card.model)); in stpaul_pci_callback() 342 (void) strlcpy(device_path, path, sizeof (device_path)); in stpaul_hw_rev_callback() 390 (void) strlcpy(card->slot_str, "0", sizeof (card->slot_str)); in get_slot_number() 393 (void) strlcpy(card->slot_str, "0", sizeof (card->slot_str)); in get_slot_number() 396 (void) strlcpy(card->slot_str, "1", sizeof (card->slot_str)); in get_slot_number() 399 (void) strlcpy(card->slot_str, "1", sizeof (card->slot_str)); in get_slot_number() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/ddi_ufm/ |
H A D | ufm-test.c | 389 (void) strlcpy(ubz.ufbz_devpath, UFMTEST_DEV, MAXPATHLEN); in do_negative_ioctl_tests() 406 (void) strlcpy(ugc.ufmg_devpath, UFMTEST_DEV, MAXPATHLEN); in do_negative_ioctl_tests() 417 (void) strlcpy(ugc.ufmg_devpath, UFMTEST_DEV, MAXPATHLEN); in do_negative_ioctl_tests() 488 (void) strlcpy(ubz.ufbz_devpath, UFMTEST_DEV, MAXPATHLEN); in do_negative_ioctl_tests() 500 (void) strlcpy(ubz.ufbz_devpath, UFMTEST_DEV, MAXPATHLEN); in do_negative_ioctl_tests() 577 (void) strlcpy(urep.ufmr_devpath, UFMTEST_DEV, MAXPATHLEN); in do_negative_ioctl_tests() 750 (void) strlcpy(ubz.ufbz_devpath, UFMTEST_DEV, MAXPATHLEN); in do_negative_callback_tests() 771 (void) strlcpy(ugc.ufmg_devpath, UFMTEST_DEV, MAXPATHLEN); in do_negative_callback_tests() 795 (void) strlcpy(ubz.ufbz_devpath, UFMTEST_DEV, MAXPATHLEN); in do_negative_callback_tests() 822 (void) strlcpy(ubz.ufbz_devpath, UFMTEST_DEV, MAXPATHLEN); in do_negative_callback_tests() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_autohome.c | 146 (void) strlcpy(shr_name, username, sizeof (shr_name)); in smb_autohome_add_private() 164 (void) strlcpy(si.shr_path, ai->ah_path, MAXPATHLEN); in smb_autohome_add_private() 167 (void) strlcpy(si.shr_name, username, MAXNAMELEN); in smb_autohome_add_private() 402 (void) strlcpy(key, buf, SMB_AUTOHOME_KEYSIZ); in smb_autohome_keysub() 416 (void) strlcpy(key, name, SMB_AUTOHOME_KEYSIZ); in smb_autohome_keysub() 425 (void) strlcpy(ampersand, key, bufsize); in smb_autohome_keysub() 472 if (strlcpy(buf, si->shr_container, MAXPATHLEN) == 0) in smb_autohome_parse_options() 518 (void) strlcpy(si->shr_cmnt, (value + 12), in smb_autohome_parse_options() 524 (void) strlcpy(si->shr_access_rw, (value + 3), in smb_autohome_parse_options() 530 (void) strlcpy(si->shr_access_ro, (value + 3), in smb_autohome_parse_options() [all …]
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | env.c | 224 (void) strlcpy(*np, path, sz); in set_smf_env() 231 (void) strlcpy(*np, "SMF_FMRI=", sz); in set_smf_env() 239 (void) strlcpy(*np, "SMF_METHOD=", sz); in set_smf_env() 246 (void) strlcpy(*np, "SMF_RESTARTER=", sz); in set_smf_env() 252 (void) strlcpy(*np, "SMF_ZONENAME=", sz); in set_smf_env() 260 (void) strlcpy(*np, *p, sz); in set_smf_env() 276 (void) strlcpy(*dup_pos, *p, sz); in set_smf_env() 280 (void) strlcpy(*np, *p, sz); in set_smf_env()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | strlcpy.c | 27 #define strlcpy ______strlcpy macro 31 #undef strlcpy 38 NoN(strlcpy) 53 strlcpy(register char* s, register const char* t, register size_t n)
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgproto/ |
H A D | main.c | 185 (void) strlcpy(entry.pkg_class, def_class, sizeof (entry.pkg_class)); in output() 186 (void) strlcpy(entry.path, path, PATH_MAX); in output() 189 (void) strlcpy(entry.ainfo.owner, BADOWNER, sizeof (entry.ainfo.owner)); in output() 239 (void) strlcpy(entry.ainfo.local, entry.path, in output() 245 (void) strlcpy(entry.path, local, PATH_MAX); in output() 248 (void) strlcpy(entry.path, in output() 291 (void) strlcpy(local, pt, sizeof (local)); in follow() 428 (void) strlcpy(tptr, in scan_raw_ln() 432 (void) strlcpy(tptr, targ_ptr, in scan_raw_ln() 463 (void) strlcpy(ept->ainfo.local, in findlink() [all …]
|
/illumos-gate/usr/src/lib/print/libhttp-core/common/ |
H A D | http-support.c | 116 strlcpy(method, "ipp", methodlen); in httpSeparate2() 138 strlcpy(resource, ptr, resourcelen); in httpSeparate2() 153 strlcpy(resource, uri, resourcelen); in httpSeparate2() 158 strlcpy(method, "http", methodlen); in httpSeparate2() 163 strlcpy(method, host, methodlen); in httpSeparate2() 172 strlcpy(resource, uri, resourcelen); in httpSeparate2()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_hc.c | 100 (void) strlcpy(buf, info->hci_name, bufsize); in print_hc() 195 (void) strlcpy(buf, srv->hcs_rule_name, bufsize); in print_hc_result() 198 (void) strlcpy(buf, srv->hcs_hc_name, bufsize); in print_hc_result() 201 (void) strlcpy(buf, srv->hcs_ID, bufsize); in print_hc_result() 206 (void) strlcpy(buf, "un-init", bufsize); in print_hc_result() 209 (void) strlcpy(buf, "unreach", bufsize); in print_hc_result() 212 (void) strlcpy(buf, "alive", bufsize); in print_hc_result() 215 (void) strlcpy(buf, "dead", bufsize); in print_hc_result() 218 (void) strlcpy(buf, "disabled", bufsize); in print_hc_result() 401 (void) strlcpy(hc_info.hci_name, argv[optind], in ilbadm_create_hc()
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | lockinst.c | 127 (void) strlcpy(lock_name, LOCK_NAME_OLD_PKG, in rdlockdata() 130 (void) strlcpy(lock_pkg, LOCK_PKG_UNKNOWN, in rdlockdata() 133 (void) strlcpy(lock_place, LOCK_PLACE_UNKNOWN, in rdlockdata() 226 (void) strlcpy(lock_name, (util_name) ? in lockinst() 229 (void) strlcpy(lock_pkg, (pkg_name) ? in lockinst()
|
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasGetVendorLibraryAttributes.c | 42 (void) strlcpy(attrs->LibPath, SUN_SMHBA_VENDOR_LIB_PATH, in Sun_sasGetVendorLibraryAttributes() 44 (void) strlcpy(attrs->VName, SUN_SMHBA_VENDOR_LIB, in Sun_sasGetVendorLibraryAttributes() 46 (void) strlcpy(attrs->VVersion, SUN_SMHBA_VENDOR_LIB_VERSION, in Sun_sasGetVendorLibraryAttributes()
|
H A D | devtree_hba_disco.c | 167 (void) strlcpy(port_ptr->device_path, portDevpath, MAXPATHLEN + 1); in add_hba_port_info() 171 (void) strlcpy(port_ptr->port_attributes.OSDeviceName, cntlLink, in add_hba_port_info() 416 (void) strlcpy(new_hba->device_path, hbaDevpath, in devtree_get_one_hba() 427 (void) strlcpy(new_hba->adapter_attributes.Manufacturer, in devtree_get_one_hba() 431 (void) strlcpy(new_hba->adapter_attributes.Manufacturer, in devtree_get_one_hba() 441 (void) strlcpy(new_hba->adapter_attributes.SerialNumber, in devtree_get_one_hba() 451 (void) strlcpy(new_hba->adapter_attributes.Model, in devtree_get_one_hba() 463 (void) strlcpy(new_hba->adapter_attributes.FirmwareVersion, in devtree_get_one_hba() 475 (void) strlcpy(new_hba->adapter_attributes.HardwareVersion, in devtree_get_one_hba() 487 (void) strlcpy(new_hba->adapter_attributes.DriverVersion, in devtree_get_one_hba() [all …]
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_if.c | 148 (void) strlcpy(ifp->ifi_name, lifrp->lifr_name, in i_ipadm_active_if_info() 162 (void) strlcpy(lifrl.lifr_name, in i_ipadm_active_if_info() 272 (void) strlcpy(ific->ifi_name, strval, in i_ipadm_nvl2ifinfo() 327 (void) strlcpy(ipmp_member->if_name, members[nelem], in i_ipadm_fill_pmembers() 491 (void) strlcpy(aifp->ifi_name, pifp->ifi_name, in i_ipadm_get_all_if_info() 537 (void) strlcpy(ap_ipmp_member->if_name, in i_ipadm_add_persistent_if_info() 1033 (void) strlcpy(newif, ifname, sizeof (newif)); in i_ipadm_plumb_if() 1105 (void) strlcpy(ifname, newif, LIFNAMSIZ); in i_ipadm_plumb_if() 1264 (void) strlcpy(lifrl.lifr_name, ifaddrp->ia_name, in i_ipadm_unplumb_if() 1430 (void) strlcpy(ipaddr.ipadm_ifname, tmp_ifname, in i_ipadm_delete_if() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_kmod.c | 125 (void) strlcpy(ioc.nbdomain, cfg->skc_nbdomain, sizeof (ioc.nbdomain)); in smb_kmod_setcfg() 126 (void) strlcpy(ioc.fqdn, cfg->skc_fqdn, sizeof (ioc.fqdn)); in smb_kmod_setcfg() 127 (void) strlcpy(ioc.hostname, cfg->skc_hostname, sizeof (ioc.hostname)); in smb_kmod_setcfg() 128 (void) strlcpy(ioc.system_comment, cfg->skc_system_comment, in smb_kmod_setcfg() 229 (void) strlcpy(ioc.shrname, shrname, MAXNAMELEN); in smb_kmod_shareinfo() 252 (void) strlcpy(ioc.shrname, si->shr_name, MAXNAMELEN); in smb_kmod_shareaccess() 267 (void) strlcpy(ioc.qualifier, opennum->qualifier, MAXNAMELEN); in smb_kmod_get_open_num() 290 (void) strlcpy(username, ioc.username, MAXNAMELEN); in smb_kmod_get_spool_doc() 291 (void) strlcpy(path, ioc.path, MAXPATHLEN); in smb_kmod_get_spool_doc() 467 (void) strlcpy(ioc.client, client, MAXNAMELEN); in smb_kmod_session_close() [all …]
|
/illumos-gate/usr/src/lib/libutempter/common/ |
H A D | utempter.c | 57 (void) strlcpy(ut.ut_user, pw->pw_name, sizeof (ut.ut_user)); in utempter_update_utmpx() 70 (void) strlcpy(ut.ut_line, ut1->ut_line, sizeof (ut.ut_line)); in utempter_update_utmpx() 75 (void) strlcpy(ut.ut_line, line + strlen("/dev/"), in utempter_update_utmpx() 80 (void) strlcpy(ut.ut_host, host, sizeof (ut.ut_host)); in utempter_update_utmpx()
|
/illumos-gate/usr/src/lib/libilb/common/ |
H A D | ilb_rules.c | 114 (void) strlcpy(rl->rl_name, rd->r_name, sizeof (rl->rl_name)); in ilb_create_rule() 115 (void) strlcpy(rl->rl_sgname, rd->r_sgname, sizeof (rl->rl_sgname)); in ilb_create_rule() 116 (void) strlcpy(rl->rl_hcname, rd->r_hcname, sizeof (rl->rl_hcname)); in ilb_create_rule() 166 (void) strlcpy((char *)&ic->ic_data, name, in i_ilb_rule_action() 246 (void) strlcpy((char *)&ic->ic_data, name, sizeof (ilbd_name_t)); in i_ilb_walk_one_rule() 261 (void) strlcpy(rd.r_name, rl->rl_name, sizeof (rd.r_name)); in i_ilb_walk_one_rule() 262 (void) strlcpy(rd.r_hcname, rl->rl_hcname, sizeof (rd.r_hcname)); in i_ilb_walk_one_rule() 263 (void) strlcpy(rd.r_sgname, rl->rl_sgname, sizeof (rd.r_sgname)); in i_ilb_walk_one_rule()
|
H A D | ilb_sg.c | 52 (void) strlcpy((char *)&ic->ic_data, sgname, sizeof (ilbd_name_t)); in i_ilb_addrem_sg() 101 (void) strlcpy(sg->sg_name, sgname, sizeof (sg->sg_name)); in i_ilb_addrem_server_to_group() 116 (void) strlcpy(sgs->sgs_srvID, srv->sd_srvID, in i_ilb_addrem_server_to_group() 190 (void) strlcpy((char *)&ic->ic_data, sgname, sizeof (ilbd_name_t)); in i_ilb_retrieve_sg_hosts() 239 (void) strlcpy(sgd.sgd_name, sg_info->sg_name, in i_ilb_walk_one_sg() 256 (void) strlcpy(sd.sd_srvID, srv->sgs_srvID, in i_ilb_walk_one_sg() 365 (void) strlcpy(sgs->sgs_srvID, srv->sd_srvID, sizeof (sgs->sgs_srvID)); in ilb_Xable_server() 422 (void) strlcpy(sg_info->sg_name, sgname, sizeof (sg_info->sg_name)); in i_ilb_fillin_srvdata() 427 (void) strlcpy(sgs->sgs_srvID, srv->sd_srvID, in i_ilb_fillin_srvdata() 442 (void) strlcpy(srv->sd_srvID, sgs->sgs_srvID, in i_ilb_fillin_srvdata()
|
/illumos-gate/usr/src/lib/libzfs_core/common/ |
H A D | libzfs_core.c | 188 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name)); in lzc_ioctl() 300 (void) strlcpy(zc.zc_name, fsname, sizeof (zc.zc_name)); in lzc_promote() 304 (void) strlcpy(snapnamebuf, zc.zc_string, snapnamelen); in lzc_promote() 329 (void) strlcpy(zc.zc_name, source, sizeof (zc.zc_name)); in lzc_rename() 377 (void) strlcpy(pool, nvpair_name(elem), sizeof (pool)); in lzc_snapshot() 427 (void) strlcpy(pool, nvpair_name(elem), sizeof (pool)); in lzc_destroy_snaps() 452 (void) strlcpy(fs, firstsnap, sizeof (fs)); in lzc_snaprange_space() 537 (void) strlcpy(pool, nvpair_name(elem), sizeof (pool)); in lzc_hold() 582 (void) strlcpy(pool, nvpair_name(elem), sizeof (pool)); in lzc_release() 747 (void) strlcpy(fsname, snapname, sizeof (fsname)); in recv_impl() [all …]
|
/illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
H A D | ldapaddent.c | 651 (void) strlcpy(parse_err_msg, gettext("no host"), in genent_hosts() 686 (void) strlcpy(parse_err_msg, gettext("no cname"), in genent_hosts() 1802 (void) strlcpy(parse_err_msg, gettext("no gid"), in genent_group() 2011 (void) strlcpy(parse_err_msg, in genent_ethers() 2363 (void) strlcpy(auth_type, "DH192-0", BUFSIZ+1); in genent_publickey() 2637 (void) strlcpy(parse_err_msg, in genent_netgroup() 2648 (void) strlcpy(parse_err_msg, in genent_netgroup() 2716 (void) strlcpy(parse_err_msg, in genent_netgroup() 2979 (void) strlcpy(parse_err_msg, gettext("no uid"), in genent_passwd() 3679 (void) strlcpy(parse_err_msg, in genent_project() [all …]
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | putprmpt.c | 46 (void) strlcpy(buffer, defstr ? defstr : "No default prompt.", in putprmpt() 58 (void) strlcpy(buffer, prompt, sizeof (buffer)); in putprmpt() 60 (void) strlcpy(buffer, "", sizeof (buffer)); in putprmpt()
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_backup_reader.c | 182 (void) strlcpy(tar_hdr->th_magic, TLM_MAGIC, in output_acl_header() 300 (void) strlcpy(tar_hdr->th_magic, TLM_MAGIC, in output_xattr_header() 333 (void) strlcpy(xbuf->h_names, fname, TLM_NAME_SIZE); in output_xattr_header() 423 (void) strlcpy(tar_hdr->th_magic, TLM_MAGIC, in output_file_header() 466 (void) strlcpy(tar_hdr->th_magic, TLM_MAGIC, in output_file_header() 551 (void) strlcpy(tar_hdr->th_magic, TLM_MAGIC, in output_file_header() 1229 (void) strlcpy(mpp->mp_name, zfs_prop_to_name(prop), in zfs_put_prop_cb() 1231 (void) strlcpy(mpp->mp_value, vbuf, ZFS_MAXPROPLEN); in zfs_put_prop_cb() 1410 (void) strlcpy(mhp->nh_plname, nctx->nc_plname, in ndmp_include_zfs() 1412 (void) strlcpy(mhp->nh_magic, ZFS_META_MAGIC_EXT, in ndmp_include_zfs() [all …]
|