Home
last modified time | relevance | path

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

12345678910>>...50

/freebsd/contrib/openbsm/bin/auditdistd/
H A Dparse.y136 if (strlcpy(lconfig->adc_name, $2,
162 if (strlcpy(lconfig->adc_pidfile, $2,
192 (void)strlcpy(depth1_directory, ADIST_DIRECTORY_SENDER,
204 (void)strlcpy(curhost->adh_directory,
209 (void)strlcpy(curhost->adh_localaddr,
273 (void)strlcpy(lst->adl_addr,
287 (void)strlcpy(lst->adl_addr,
302 (void)strlcpy(depth1_directory,
409 if (strlcpy(depth1_directory, $2,
421 if (strlcpy(curhost->adh_directory, $2,
[all …]
H A Dtrail.c100 if (strlcpy(trail->tr_dirname, dirname, sizeof(trail->tr_dirname)) >= in trail_new()
192 PJDLOG_VERIFY(strlcpy(trail->tr_filename, dp->d_name, in trail_find()
211 PJDLOG_VERIFY(strlcpy(trail->tr_filename, filename, in trail_start()
357 PJDLOG_VERIFY(strlcpy(curfile, dp->d_name, sizeof(curfile)) < in trail_next()
391 PJDLOG_VERIFY(strlcpy(trail->tr_filename, curfile, in trail_next()
400 PJDLOG_VERIFY(strlcpy(trail->tr_filename, curfile, in trail_next()
483 strlcpy(filename, trail->tr_filename, sizeof(filename)); in trail_switch()
547 PJDLOG_VERIFY(strlcpy(curfile, dp->d_name, sizeof(curfile)) < in trail_last()
558 PJDLOG_VERIFY(strlcpy(filename, curfile, filenamesize) < filenamesize); in trail_last()
/freebsd/sbin/hastd/
H A Dparse.y142 if (strlcpy(depth0_control, $2,
153 if (strlcpy(lconfig->hc_controladdr, $2,
172 if (strlcpy(depth0_pidfile, $2,
183 if (strlcpy(lconfig->hc_pidfile, $2,
208 if (strlcpy(lst->hl_addr, $2, sizeof(lst->hl_addr)) >=
329 if (strlcpy(depth0_exec, $2, sizeof(depth0_exec)) >=
338 if (strlcpy(curres->hr_exec, $2,
445 strlcpy(curres->hr_provname, depth1_provname,
455 strlcpy(curres->hr_localpath, depth1_localpath,
471 strlcpy(curres->hr_provname, curres->hr_name,
[all …]
/freebsd/lib/libifconfig/
H A Dlibifconfig.c65 strlcpy(ndifreq.ifname, name, sizeof(ndifreq.ifname)); in isnd6defif()
176 (void)strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in ifconfig_get_description()
235 (void)strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in ifconfig_set_description()
260 (void)strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in ifconfig_unset_description()
284 (void)strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in ifconfig_set_name()
345 (void)strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in ifconfig_get_fib()
361 (void)strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in ifconfig_set_mtu()
377 (void)strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in ifconfig_get_mtu()
392 strlcpy(nd->ifname, name, sizeof(nd->ifname)); in ifconfig_get_nd6()
411 (void)strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in ifconfig_set_metric()
[all …]
H A Dlibifconfig_lagg.c58 strlcpy(rp->rp_ifname, name, sizeof(rp->rp_portname)); in ifconfig_lagg_get_laggport_status()
59 strlcpy(rp->rp_portname, name, sizeof(rp->rp_portname)); in ifconfig_lagg_get_laggport_status()
84 strlcpy(ls->ro.ro_ifname, name, sizeof(ls->ro.ro_ifname)); in ifconfig_lagg_get_lagg_status()
87 strlcpy(ls->rf.rf_ifname, name, sizeof(ls->rf.rf_ifname)); in ifconfig_lagg_get_lagg_status()
92 strlcpy(ls->ra.ra_ifname, name, sizeof(ls->ra.ra_ifname)); in ifconfig_lagg_get_lagg_status()
/freebsd/crypto/openssh/
H A Dlogintest.c101 strlcpy(username, pw->pw_name, sizeof(username)); in testAPI()
109 strlcpy(li1->progname, "OpenSSH-logintest", sizeof(li1->progname)); in testAPI()
123 strlcpy(li1->hostname, "localhost", sizeof(li1->hostname)); in testAPI()
144 strlcpy(s_t0, ctime(&t0), sizeof(s_t0)); in testAPI()
146 strlcpy(s_t1, ctime(&t1), sizeof(s_t1)); in testAPI()
155 strlcpy(s_logintime, ctime(&logintime), sizeof(s_logintime)); in testAPI()
171 strlcpy(s_logouttime, ctime(&logouttime), sizeof(s_logouttime)); in testAPI()
186 strlcpy(s_t2, ctime(&t2), sizeof(s_t2)); in testAPI()
/freebsd/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_sys.c139 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_get_conf_param()
226 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_get_op_param()
285 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_priority()
328 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_maxage()
350 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_hello_time()
372 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_forward_delay()
394 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_aging_time()
416 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_max_cache()
441 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_tx_hold_count()
463 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_stp_version()
[all …]
/freebsd/sys/contrib/openzfs/config/
H A Dkernel-strlcpy.m42 dnl # 6.8 removed strlcpy.
11 len = strlcpy(dst, src, sizeof (dst));
16 AC_MSG_CHECKING([whether strlcpy() exists])
20 [strlcpy() exists])
/freebsd/sys/dev/qat/qat_common/
H A Dadf_cfg_section.c67 strlcpy(tokens[token_index++], core_val, ADF_CFG_MAX_TOKEN_LEN); in adf_cfg_set_core_number_for_instance()
68 strlcpy(core_val, pos + 1, ADF_CFG_MAX_VAL_LEN_IN_BYTES); in adf_cfg_set_core_number_for_instance()
71 strlcpy(tokens[token_index++], in adf_cfg_set_core_number_for_instance()
78 strlcpy(tokens[token_index++], in adf_cfg_set_core_number_for_instance()
211 strlcpy(key, ADF_CY_RING_ASYM_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES); in adf_cfg_add_cy_inst_info()
222 strlcpy(key, ADF_CY_RING_SYM_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES); in adf_cfg_add_cy_inst_info()
264 strlcpy(key, ADF_DC_RING_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES); in adf_cfg_add_dc_inst_info()
318 strlcpy(key, ADF_CY_RING_ASYM_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES); in adf_cfg_add_asym_inst_info()
376 strlcpy(key, ADF_CY_RING_SYM_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES); in adf_cfg_add_sym_inst_info()
468 strlcpy(key, ADF_NUM_DC, ADF_CFG_MAX_KEY_LEN_IN_BYTES); in adf_cfg_create_rings_entries_for_cy_inst()
[all …]
H A Dadf_cfg_sysctl.c116 strlcpy(buf, dev_cfg_data->cfg_services, sizeof(buf)); in adf_cfg_sysctl_services_handle()
134 strlcpy(dev_cfg_data->cfg_services, in adf_cfg_sysctl_services_handle()
167 strlcpy(buf, dev_cfg_data->cfg_mode, sizeof(buf)); in adf_cfg_sysctl_mode_handle()
185 strlcpy(dev_cfg_data->cfg_mode, buf, ADF_CFG_MAX_VAL); in adf_cfg_sysctl_mode_handle()
216 strlcpy(buf, ADF_CFG_UP_STR, sizeof(buf)); in adf_cfg_sysctl_handle()
218 strlcpy(buf, ADF_CFG_DOWN_STR, sizeof(buf)); in adf_cfg_sysctl_handle()
/freebsd/sys/netpfil/pf/
H A Dpf_ruleset.c142 strlcpy(key->path, path, sizeof(key->path)); in pf_find_kanchor()
210 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_kruleset()
222 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_kruleset()
242 strlcpy(anchor->name, q, sizeof(anchor->name)); in pf_find_or_create_kruleset()
244 strlcpy(anchor->path, parent->path, in pf_find_or_create_kruleset()
329 strlcpy(path, name + 1, MAXPATHLEN); in pf_kanchor_setup()
336 strlcpy(path, s->anchor->path, MAXPATHLEN); in pf_kanchor_setup()
378 strlcpy(anchor_call, "/", anchor_call_len); in pf_kanchor_copyout()
388 strlcpy(a, rs->anchor->path, MAXPATHLEN); in pf_kanchor_copyout()
439 strlcpy(anchor_call, "/", sizeof(anchor_call)); in pf_keth_anchor_nvcopyout()
[all …]
/freebsd/sbin/pfctl/
H A Dpf_ruleset.c151 strlcpy(key->path, path, sizeof(key->path)); in pf_find_anchor()
190 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_ruleset()
202 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_ruleset()
222 strlcpy(anchor->name, q, sizeof(anchor->name)); in pf_find_or_create_ruleset()
224 strlcpy(anchor->path, parent->path, in pf_find_or_create_ruleset()
382 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_eth_ruleset()
394 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_eth_ruleset()
413 strlcpy(anchor->name, q, sizeof(anchor->name)); in pf_find_or_create_eth_ruleset()
415 strlcpy(anchor->path, parent->path, in pf_find_or_create_eth_ruleset()
450 strlcpy(path, name + 1, MAXPATHLEN); in pfctl_anchor_setup()
[all …]
/freebsd/contrib/tnftp/src/
H A Ddomacro.c77 (void)strlcpy(line2, line, sizeof(line2)); in domacro()
96 (void)strlcpy(cp2, argv[j+1], in domacro()
106 (void)strlcpy(cp2, argv[count], in domacro()
137 (void)strlcpy(cmdbuf, c->c_name, sizeof(cmdbuf)); in domacro()
142 (void)strlcpy(line, line2, sizeof(line)); in domacro()
H A Dcomplete.c188 (void)strlcpy(dir, word, file - word + 1); in complete_local()
196 (void)strlcpy(dir, p, sizeof(dir)); in complete_local()
231 (void)strlcpy(path, dir, sizeof(path)); in complete_local()
293 (void)strlcpy(cmdbuf, "complete", sizeof(cmdbuf)); in complete_remote()
304 (void)strlcpy(dir, word, cp - word + 2); in complete_remote()
339 (void)strlcpy(lastdir, dir, sizeof(lastdir)); in complete_remote()
374 (void)strlcpy(line, lf->buffer, len + 1); in complete()
390 (void)strlcpy(word, margv[cursor_argc], cursor_argo + 1); in complete()
/freebsd/tools/coccinelle/
H A Dcopystr9.cocci8 +strlcpy(__dst, __src, __len);
22 +strlcpy(__dst, __src, __len) >= __len
33 +__done = strlcpy(__dst, __src, __len);
37 + *__done = strlcpy(__dst, __src, __len);
/freebsd/sbin/ifconfig/
H A Diflagg.c41 strlcpy(rp.rp_ifname, ctx->ifname, sizeof(rp.rp_ifname)); in setlaggport()
42 strlcpy(rp.rp_portname, val, sizeof(rp.rp_portname)); in setlaggport()
62 strlcpy(rp.rp_ifname, ctx->ifname, sizeof(rp.rp_ifname)); in unsetlaggport()
63 strlcpy(rp.rp_portname, val, sizeof(rp.rp_portname)); in unsetlaggport()
87 strlcpy(ra.ra_ifname, ctx->ifname, sizeof(ra.ra_ifname)); in setlaggproto()
98 strlcpy(ro.ro_ifname, ctx->ifname, sizeof(ro.ro_ifname)); in setlaggflowidshift()
112 strlcpy(ro.ro_ifname, ctx->ifname, sizeof(ro.ro_ifname)); in setlaggrr_limit()
145 strlcpy(ro.ro_ifname, ctx->ifname, sizeof(ro.ro_ifname)); in setlaggsetopt()
174 strlcpy(rf.rf_ifname, ctx->ifname, sizeof(rf.rf_ifname)); in setlagghash()
H A Difgroup.c50 strlcpy(ifgr.ifgr_name, ctx->ifname, IFNAMSIZ); in setifgroup()
55 if (strlcpy(ifgr.ifgr_group, group_name, IFNAMSIZ) >= IFNAMSIZ) in setifgroup()
66 strlcpy(ifgr.ifgr_name, ctx->ifname, IFNAMSIZ); in unsetifgroup()
71 if (strlcpy(ifgr.ifgr_group, group_name, IFNAMSIZ) >= IFNAMSIZ) in unsetifgroup()
115 strlcpy(ifgr.ifgr_name, groupname, sizeof(ifgr.ifgr_name)); in printgroup()
/freebsd/usr.sbin/syslogd/
H A Dsyslogd_cap_config.c178 (void)strlcpy(filed->f_host, nvlist_get_string(nvl_filed, "f_host"), in nvlist_to_filed()
180 (void)strlcpy(filed->f_program, nvlist_get_string(nvl_filed, in nvlist_to_filed()
206 (void)strlcpy(filed->f_uname[i], f_uname[i], in nvlist_to_filed()
210 (void)strlcpy(filed->f_fname, nvlist_get_string(nvl_filed, in nvlist_to_filed()
215 (void)strlcpy(filed->f_hname, nvlist_get_string(nvl_filed, in nvlist_to_filed()
230 (void)strlcpy(filed->f_pname, nvlist_get_string(nvl_filed, in nvlist_to_filed()
289 strlcpy(LocalHostName, nvlist_get_string(nvlin, "LocalHostName"), in casper_readconfigfile()
316 strlcpy(cfiled->pipe_cmd, pipe_cmd, sizeof(cfiled->pipe_cmd)); in casper_readconfigfile()
/freebsd/contrib/ntp/sntp/tests/
H A Dcrypto.c45 strlcpy(sk.typen, "SHAKE128", sizeof(sk.typen)); in test_MakeMd5Mac()
78 strlcpy(sha1.typen, "SHA1", sizeof(sha1.typen)); in test_MakeSHA1Mac()
147 strlcpy(sk.typen, "SHAKE128", sizeof(sk.typen)); in test_VerifySHA1()
182 strlcpy(sha1.typen, "SHA1", sizeof(sha1.typen)); in test_VerifyCMAC()
267 strlcpy(sk.typen, "SHAKE128", sizeof(sk.typen));
307 strlcpy(sk.typen, "SHAKE128", sizeof(sk.typen));
/freebsd/lib/libc/gen/
H A D__xuname.c53 strlcpy(q, p, namesize); in __xuname()
81 strlcpy(q, p, namesize); in __xuname()
97 strlcpy(q, p, namesize); in __xuname()
126 strlcpy(q, p, namesize); in __xuname()
/freebsd/crypto/heimdal/appl/ftp/ftp/
H A Ddomacro.c59 strlcpy(line2, line, sizeof(line2)); in domacro()
84 if (strlcpy(cp2, argv[j+1], len) >= len) in domacro()
95 if (strlcpy(cp2, argv[count], len) >= len) in domacro()
136 strlcpy(line, line2, sizeof(line)); in domacro()
/freebsd/contrib/ntp/libntp/
H A Dsystime.c427 strlcpy(ut.ut_line, OTIME_MSG, sizeof(ut.ut_line)); in update_uwtmp()
432 strlcpy(ut.ut_line, NTIME_MSG, sizeof(ut.ut_line)); in update_uwtmp()
446 strlcpy(utx.ut_line, OTIME_MSG, sizeof(utx.ut_line)); in update_uwtmp()
451 strlcpy(utx.ut_line, NTIME_MSG, sizeof(utx.ut_line)); in update_uwtmp()
469 strlcpy(ut.ut_line, OTIME_MSG, sizeof(ut.ut_line)); in update_uwtmp()
474 strlcpy(ut.ut_line, NTIME_MSG, sizeof(ut.ut_line)); in update_uwtmp()
489 strlcpy(utx.ut_line, OTIME_MSG, sizeof(utx.ut_line)); in update_uwtmp()
499 strlcpy(utx.ut_line, NTIME_MSG, sizeof(utx.ut_line)); in update_uwtmp()
/freebsd/tools/regression/netinet/msocket/
H A Dmsocket.c249 strlcpy(buf, inet_ntoa(imr.imr_multiaddr), 128); in test_add_multi()
254 strlcpy(buf, inet_ntoa(imr.imr_multiaddr), 128); in test_add_multi()
264 strlcpy(buf, inet_ntoa(imr.imr_multiaddr), 128); in test_add_multi()
270 strlcpy(buf, inet_ntoa(imr.imr_multiaddr), 128); in test_add_multi()
291 strlcpy(buf, inet_ntoa(imr.imr_multiaddr), 128); in test_drop_multi()
296 strlcpy(buf, inet_ntoa(imr.imr_multiaddr), 128); in test_drop_multi()
306 strlcpy(buf, inet_ntoa(imr.imr_multiaddr), 128); in test_drop_multi()
312 strlcpy(buf, inet_ntoa(imr.imr_multiaddr), 128); in test_drop_multi()
/freebsd/usr.bin/iscsictl/
H A Discsictl.c220 strlcpy(conf->isc_initiator, targ->t_initiator_name, in conf_from_target()
223 strlcpy(conf->isc_initiator_addr, targ->t_initiator_address, in conf_from_target()
226 strlcpy(conf->isc_initiator_alias, targ->t_initiator_alias, in conf_from_target()
229 strlcpy(conf->isc_target, targ->t_name, in conf_from_target()
232 strlcpy(conf->isc_target_addr, targ->t_address, in conf_from_target()
235 strlcpy(conf->isc_user, targ->t_user, in conf_from_target()
238 strlcpy(conf->isc_secret, targ->t_secret, in conf_from_target()
241 strlcpy(conf->isc_mutual_user, targ->t_mutual_user, in conf_from_target()
244 strlcpy(conf->isc_mutual_secret, targ->t_mutual_secret, in conf_from_target()
253 strlcpy(conf->isc_offload, targ->t_offload, in conf_from_target()
[all …]
/freebsd/lib/libbluetooth/
H A Ddev.c51 strlcpy(di.devname, devname, sizeof(di.devname)); in bt_devaddr()
79 strlcpy(devname, arg.devname, HCI_DEVNAME_SIZE); in bt_devname()
92 strlcpy(m->devname, di->devname, sizeof(m->devname)); in bt_devaddr_match()

12345678910>>...50