Home
last modified time | relevance | path

Searched refs:strlcpy (Results 1 – 25 of 1143) sorted by relevance

12345678910>>...46

/illumos-gate/usr/src/cmd/nvmeadm/
H A Dnvmeadm_ofmt.c84 ret = strlcpy(buf, nvme_ctrl_info_model(ctrl), buflen); in nvmeadm_list_common_ofmt_cb()
87 ret = strlcpy(buf, nvme_ctrl_info_serial(ctrl), buflen); in nvmeadm_list_common_ofmt_cb()
90 ret = strlcpy(buf, nvme_ctrl_info_fwrev(ctrl), buflen); in nvmeadm_list_common_ofmt_cb()
98 ret = strlcpy(buf, list->nloa_name, buflen); in nvmeadm_list_common_ofmt_cb()
176 ret = strlcpy(buf, list->nloa_disk, buflen); in nvmeadm_list_nsid_ofmt_cb()
206 ret = strlcpy(buf, list->nloa_state, buflen); in nvmeadm_list_nsid_ofmt_cb()
293 ret = strlcpy(buf, list->nlloa_name, buflen); in nvmeadm_list_logs_ofmt_cb()
296 ret = strlcpy(buf, nvme_log_disc_name(disc), buflen); in nvmeadm_list_logs_ofmt_cb()
299 ret = strlcpy(buf, nvme_log_disc_desc(disc), buflen); in nvmeadm_list_logs_ofmt_cb()
313 ret = strlcpy(buf, "nvm", buflen); in nvmeadm_list_logs_ofmt_cb()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A DPzone.c177 (void) strlcpy(path, pn->pn_path, PATH_MAX); in pn_pop()
245 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot()
256 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot()
268 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot()
281 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot()
285 (void) strlcpy(zpath, tmp, sizeof (zpath)); in Pzoneroot()
292 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot()
326 (void) strlcpy(tmp, path, sizeof (tmp) - 1); in Plofspath()
396 (void) strlcpy(tmp2, special, sizeof (tmp2) - 1); in Plofspath()
402 (void) strlcpy(tmp, tmp2, sizeof (tmp) - 1); in Plofspath()
[all …]
/illumos-gate/usr/src/lib/print/libipp-core/common/
H A Dstrings.c272 (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/pam_modules/authtok_check/
H A Drules.c131 (void) strlcpy(area, string, PATH_MAX); in Pluralise()
369 (void) strlcpy(area, input, PATH_MAX); in Mangle()
376 (void) strlcpy(area, Reverse(area), PATH_MAX); in Mangle()
379 (void) strlcpy(area, Uppercase(area), PATH_MAX); in Mangle()
382 (void) strlcpy(area, Lowercase(area), PATH_MAX); in Mangle()
385 (void) strlcpy(area, Capitalise(area), in Mangle()
389 (void) strlcpy(area, Pluralise(area), PATH_MAX); 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()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Dstpaul.c116 (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()
370 (void) strlcpy(card->bus_type, "PCIE", sizeof (card->bus_type)); in get_bus_type()
372 (void) strlcpy(card->bus_type, "PCIE", sizeof (card->bus_type)); in get_bus_type()
374 (void) strlcpy(card->bus_type, "PCIE", sizeof (card->bus_type)); in get_bus_type()
376 (void) strlcpy(card->bus_type, "PCIE", sizeof (card->bus_type)); in get_bus_type()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dchgpwd.c91 (void) strlcpy(strresult, "Request was truncated", in process_chpw_request()
131 (void) strlcpy(strresult, "Request was truncated in AP-REQ", in process_chpw_request()
148 (void) strlcpy(strresult, "Failed initializing auth context", in process_chpw_request()
161 (void) strlcpy(strresult, "Failed initializing auth context", in process_chpw_request()
174 (void) strlcpy(strresult, in process_chpw_request()
211 (void) strlcpy(strresult, "Failed reading application request", 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()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/ddi_ufm/
H A Dufm-test.c389 (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()
443 (void) strlcpy(ugc.ufmg_devpath, "/usr/bin/ls", MAXPATHLEN); in do_negative_ioctl_tests()
453 (void) strlcpy(ugc.ufmg_devpath, "/dev/stdout", MAXPATHLEN); in do_negative_ioctl_tests()
473 (void) strlcpy(ugc.ufmg_devpath, (char *)not_ascii, 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()
527 (void) strlcpy(ubz.ufbz_devpath, "/usr/bin/ls", MAXPATHLEN); in do_negative_ioctl_tests()
538 (void) strlcpy(ubz.ufbz_devpath, "/dev/stdout", MAXPATHLEN); in do_negative_ioctl_tests()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_autohome.c146 (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()
168 (void) strlcpy(si.shr_container, ai->ah_container, MAXPATHLEN); in smb_autohome_add_private()
169 (void) strlcpy(si.shr_cmnt, "Autohome", SMB_SHARE_CMNT_MAX); 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()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Denv.c224 (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/cmd/svr4pkg/pkgproto/
H A Dmain.c185 (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()
190 (void) strlcpy(entry.ainfo.group, BADGROUP, sizeof (entry.ainfo.group)); 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()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrlcpy.c27 #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/lib/print/libhttp-core/common/
H A Dhttp-support.c116 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 Dilbadm_hc.c100 (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/lib/libipadm/common/
H A Dipadm_if.c80 (void) strlcpy(cifname, ifap->ifa_name, sizeof (cifname)); in i_ipadm_is_if_down()
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()
363 (void) strlcpy(ipmp_member->if_name, iflistp->il_ifs[i], in i_ipadm_fill_cmembers()
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()
581 (void) strlcpy(garg.ia_ifname, ifname, sizeof (garg.ia_ifname)); in i_ipadm_get_db_if()
700 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_create_ipmp()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dlockinst.c127 (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/test/libsec-tests/cmd/
H A Dlib_stubs.c228 (void) strlcpy(*sidprefix, mp->sid, len + 1); in idmap_get_sidbypid()
333 (void) strlcpy(pwname, nam, len + 1); in getpwnam()
336 (void) strlcpy(pwname, nam, sizeof (pwname)); in getpwnam()
353 (void) strlcpy(pwname, mp->name, sizeof (pwname)); in getpwnam()
381 (void) strlcpy(pwname, mp->name, sizeof (pwname)); in getpwuid()
401 (void) strlcpy(grname, nam, len + 1); in getgrnam()
404 (void) strlcpy(grname, nam, sizeof (grname)); in getgrnam()
421 (void) strlcpy(grname, mp->name, sizeof (grname)); in getgrnam()
449 (void) strlcpy(grname, mp->name, sizeof (grname)); in getgrgid()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_kmod.c125 (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/sun_sas/common/
H A DSun_sasGetVendorLibraryAttributes.c42 (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 Ddevtree_hba_disco.c167 (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/libilb/common/
H A Dilb_rules.c114 (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 Dilb_sg.c52 (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/libutempter/common/
H A Dutempter.c57 (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/libzfs_core/common/
H A Dlibzfs_core.c188 (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()
330 (void) strlcpy(zc.zc_value, target, sizeof (zc.zc_value)); 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()
482 (void) strlcpy(zc.zc_name, dataset, sizeof (zc.zc_name)); in lzc_exists()
537 (void) strlcpy(pool, nvpair_name(elem), sizeof (pool)); in lzc_hold()
[all …]
/illumos-gate/usr/src/cmd/ldap/ns_ldap/
H A Dldapaddent.c616 (void) strlcpy(parse_err_msg, gettext("line too long"), in genent_hosts()
651 (void) strlcpy(parse_err_msg, gettext("no host"), in genent_hosts()
658 (void) strlcpy(parse_err_msg, gettext("Internal error"), in genent_hosts()
686 (void) strlcpy(parse_err_msg, gettext("no cname"), in genent_hosts()
874 (void) strlcpy(parse_err_msg, gettext("line too long"), in genent_rpc()
902 (void) strlcpy(parse_err_msg, gettext("no number"), in genent_rpc()
914 (void) strlcpy(parse_err_msg, gettext("no number"), in genent_rpc()
1085 (void) strlcpy(parse_err_msg, gettext("line too long"), in genent_protocols()
1113 (void) strlcpy(parse_err_msg, gettext("no number"), in genent_protocols()
1125 (void) strlcpy(parse_err_msg, gettext("no number"), in genent_protocols()
[all …]
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_backup_reader.c173 (void) strlcpy(tar_hdr->th_name, "UFSACL", TLM_NAME_SIZE); in output_acl_header()
182 (void) strlcpy(tar_hdr->th_magic, TLM_MAGIC, in output_acl_header()
287 (void) strlcpy(tar_hdr->th_name, section_name, TLM_NAME_SIZE); in output_xattr_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()
334 (void) strlcpy(&xbuf->h_names[strlen(fname) + 1], aname, in output_xattr_header()
374 (void) strlcpy(section_name, name, TLM_MAX_PATH_NAME); in output_file_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()
488 (void) strlcpy(tar_hdr->th_name, section_name, TLM_NAME_SIZE); in output_file_header()
[all …]

12345678910>>...46