Home
last modified time | relevance | path

Searched refs:strncpy (Results 1 – 25 of 601) sorted by relevance

12345678910>>...25

/freebsd/tests/sys/netgraph/
H A Dutil.c76 strncpy(c.ourhook, hook1, sizeof(c.ourhook)); in _ng_connect()
77 strncpy(c.peerhook, hook2, sizeof(c.peerhook)); in _ng_connect()
78 strncpy(c.path, path2, sizeof(c.path)); in _ng_connect()
92 strncpy(p.ourhook, hook1, sizeof(p.ourhook)); in _ng_mkpeer()
93 strncpy(p.peerhook, hook2, sizeof(p.peerhook)); in _ng_mkpeer()
94 strncpy(p.type, type, sizeof(p.type)); in _ng_mkpeer()
107 strncpy(h.ourhook, hook, sizeof(h.ourhook)); in _ng_rmhook()
120 strncpy(n.name, name, sizeof(n.name)); in _ng_name()
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c132 strncpy(ut.ut_line, line, sizeof(ut.ut_line)); in ftpd_logwtmp_wtmp()
133 strncpy(ut.ut_name, name, sizeof(ut.ut_name)); in ftpd_logwtmp_wtmp()
138 strncpy(ut.ut_host, host, sizeof(ut.ut_host)); in ftpd_logwtmp_wtmp()
144 strncpy(utx.ut_line, line, sizeof(utx.ut_line)); in ftpd_logwtmp_wtmp()
145 strncpy(utx.ut_user, name, sizeof(utx.ut_user)); in ftpd_logwtmp_wtmp()
146 strncpy(utx.ut_host, host, sizeof(utx.ut_host)); in ftpd_logwtmp_wtmp()
/freebsd/crypto/heimdal/appl/login/
H A Dutmp_login.c66 strncpy (dst, hostname, dst_sz); in shrink_hostname()
75 strncpy (dst, hostname, dst_sz); in shrink_hostname()
92 strncpy(utmp->ut_line, ttyx, sizeof(utmp->ut_line)); in prepare_utmp()
93 strncpy(utmp->ut_name, username, sizeof(utmp->ut_name)); in prepare_utmp()
96 strncpy(utmp->ut_user, username, sizeof(utmp->ut_user)); in prepare_utmp()
121 strncpy(utmp->ut_id, make_id(ttyx), sizeof(utmp->ut_id)); in prepare_utmp()
H A Dutmpx_login.c35 strncpy(ut->ut_line, clean_tty, sizeof(ut->ut_line)); in utmpx_update()
37 strncpy(ut->ut_id, make_id(clean_tty), sizeof(ut->ut_id)); in utmpx_update()
39 strncpy(ut->ut_user, user, sizeof(ut->ut_user)); in utmpx_update()
/freebsd/lib/libc/string/
H A Dstrncpy.c37 #undef strncpy /* FORTIFY_SOURCE */
44 __weak_reference(__strncpy, strncpy);
51 strncpy in __strncpy()
/freebsd/lib/lib80211/
H A Dlib80211_ioctl.c103 (void) strncpy(ireq.i_name, name, sizeof(ireq.i_name)); in lib80211_get80211()
116 (void) strncpy(ireq.i_name, name, sizeof(ireq.i_name)); in lib80211_get80211len()
133 (void) strncpy(ireq.i_name, name, sizeof(ireq.i_name)); in lib80211_get80211val()
147 (void) strncpy(ireq.i_name, name, sizeof(ireq.i_name)); in lib80211_set80211()
/freebsd/contrib/telnet/libtelnet/
H A Dkerberos.c163 strncpy(instance, realm, sizeof(instance)); in kerberos4_send()
422 strncpy((char *)buf, " REJECT ", buflen); in kerberos4_printsub()
426 strncpy((char *)buf, " ACCEPT ", buflen); in kerberos4_printsub()
439 strncpy((char *)buf, " AUTH", buflen); in kerberos4_printsub()
443 strncpy((char *)buf, " CHALLENGE", buflen); in kerberos4_printsub()
447 strncpy((char *)buf, " RESPONSE", buflen); in kerberos4_printsub()
452 strncpy((char *)buf, lbuf, buflen); in kerberos4_printsub()
457 strncpy((char *)buf, lbuf, buflen); in kerberos4_printsub()
H A Dkrb4encpwd.c358 strncpy((char *)buf, " REJECT ", buflen);
362 strncpy((char *)buf, " ACCEPT ", buflen);
375 strncpy((char *)buf, " AUTH", buflen);
379 strncpy((char *)buf, " CHALLENGE", buflen);
383 strncpy((char *)buf, " ACK", buflen);
388 strncpy((char *)buf, lbuf, buflen);
393 strncpy((char *)buf, lbuf, buflen);
H A Dsra.c365 strncpy((char *)buf, " CONTINUE ", buflen); in sra_printsub()
369 strncpy((char *)buf, " REJECT ", buflen); in sra_printsub()
373 strncpy((char *)buf, " ACCEPT ", buflen); in sra_printsub()
387 strncpy((char *)buf, " KEY ", buflen); in sra_printsub()
391 strncpy((char *)buf, " USER ", buflen); in sra_printsub()
395 strncpy((char *)buf, " PASS ", buflen); in sra_printsub()
400 strncpy((char *)buf, lbuf, buflen); in sra_printsub()
405 strncpy((char *)buf, lbuf, buflen); in sra_printsub()
H A Drsaencpwd.c409 strncpy((char *)buf, " REJECT ", buflen);
413 strncpy((char *)buf, " ACCEPT ", buflen);
426 strncpy((char *)buf, " AUTH", buflen);
430 strncpy((char *)buf, " CHALLENGEKEY", buflen);
435 strncpy((char *)buf, lbuf, buflen);
440 strncpy((char *)buf, lbuf, buflen);
/freebsd/libexec/ftpd/
H A Dlogwtmp.c55 (void)strncpy(ut.ut_user, user, sizeof(ut.ut_user)); in ftpd_logwtmp()
66 (void)strncpy(ut.ut_id, id, sizeof(ut.ut_id)); in ftpd_logwtmp()
67 (void)strncpy(ut.ut_line, "ftpd", sizeof(ut.ut_line)); in ftpd_logwtmp()
/freebsd/usr.bin/mkimg/
H A Dapm.c82 strncpy(ent->ent_type, APM_ENT_TYPE_SELF, sizeof(ent->ent_type)); in apm_write()
83 strncpy(ent->ent_name, "Apple", sizeof(ent->ent_name)); in apm_write()
91 strncpy(ent->ent_type, ALIAS_TYPE2PTR(part->type), in apm_write()
94 strncpy(ent->ent_name, part->label, in apm_write()
/freebsd/lib/libulog/
H A Dulog_login.c
/freebsd/sbin/ipf/ippool/
H A Dippool_y.y125 strncpy(ipht.iph_name, $3,
190 { strncpy(iplo.ipo_name, $4,
198 { strncpy(ipht.iph_name, $4,
210 strncpy(e->ipe_group,
223 | IPT_NAME '=' YY_STR { strncpy(poolname, $3,
234 strncpy(tmp, $3, FR_GROUPLEN);
295 strncpy($$->ipe_group, $3,
448 strncpy(ipld.ipld_name, $6,
460 strncpy(iplo.ipo_name, $6,
471 strncpy(iplo.ipo_name, $3,
[all …]
/freebsd/sbin/ipf/libipf/
H A Dload_pool.c30 strncpy(op.iplo_name, plp->ipo_name, sizeof(op.iplo_name)); in load_pool()
35 strncpy(pool.ipo_name, plp->ipo_name, sizeof(pool.ipo_name)); in load_pool()
49 strncpy(pool.ipo_name, op.iplo_name, sizeof(pool.ipo_name)); in load_pool()
H A Dload_hash.c36 strncpy(op.iplo_name, iphp->iph_name, sizeof(op.iplo_name)); in load_hash()
66 strncpy(iph.iph_name, op.iplo_name, sizeof(op.iplo_name)); in load_hash()
67 strncpy(iphp->iph_name, op.iplo_name, sizeof(op.iplo_name)); in load_hash()
/freebsd/crypto/heimdal/appl/telnet/telnetd/
H A Dsys_term.c1159 strncpy(wtmp.ut_user, "LOGIN", sizeof(wtmp.ut_user)); in startslave()
1160 strncpy(wtmp.ut_host, utmp_host, sizeof(wtmp.ut_host)); in startslave()
1161 strncpy(wtmp.ut_line, clean_ttyname(line), sizeof(wtmp.ut_line)); in startslave()
1163 strncpy(wtmp.ut_id, wtmp.ut_line + 3, sizeof(wtmp.ut_id)); in startslave()
1299 strncpy(utmpx.ut_user, ".telnet", sizeof(utmpx.ut_user)); in start_login()
1300 strncpy(utmpx.ut_line, clean_tty, sizeof(utmpx.ut_line)); in start_login()
1302 strncpy(utmpx.ut_id, make_id(clean_tty), sizeof(utmpx.ut_id)); in start_login()
1427 strncpy(utmpx.ut_line, clean_tty, sizeof(utmpx.ut_line)); in rmut()
1466 strncpy(wtmp.ut_line, clean_tty, sizeof(wtmp.ut_line)); in rmut()
1467 strncpy(wtmp.ut_name, "", sizeof(wtmp.ut_name)); in rmut()
[all …]
/freebsd/usr.sbin/bhyve/
H A Dqemu_loader.c91 strncpy(element->entry.alloc.name, name, QEMU_FWCFG_MAX_NAME); in qemu_loader_alloc()
122 strncpy(element->entry.add_checksum.name, name, QEMU_FWCFG_MAX_NAME); in qemu_loader_add_checksum()
150 strncpy(element->entry.add_pointer.dest_name, dest_name, in qemu_loader_add_pointer()
152 strncpy(element->entry.add_pointer.src_name, src_name, in qemu_loader_add_pointer()
178 strncpy(loader->fwcfg_name, fwcfg_name, QEMU_FWCFG_MAX_NAME); in qemu_loader_create()
/freebsd/lib/libutil/
H A Drealhostname.c73 strncpy(host, trimmed, hsize); in realhostname()
80 strncpy(host, inet_ntoa(*ip), hsize); in realhostname()
183 strncpy(host, buf, hsize); in realhostname_sa()
193 strncpy(host, buf, hsize); in realhostname_sa()
/freebsd/lib/libc/amd64/string/
H A Dstrncpy.c32 #undef strncpy /* _FORTIFY_SOURCE */
37 strncpy(char *restrict dst, const char *restrict src, size_t len) in strncpy() function
/freebsd/contrib/libpcap/
H A Dfad-glifc.c197 strncpy(ifrflags.lifr_name, ifrp->lifr_name, in pcapint_findalldevs_interfaces()
213 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name, in pcapint_findalldevs_interfaces()
240 strncpy(ifrbroadaddr.lifr_name, ifrp->lifr_name, in pcapint_findalldevs_interfaces()
275 strncpy(ifrdstaddr.lifr_name, ifrp->lifr_name, in pcapint_findalldevs_interfaces()
H A Dfad-gifc.c264 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcapint_findalldevs_interfaces()
280 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcapint_findalldevs_interfaces()
310 strncpy(ifrbroadaddr.ifr_name, ifrp->ifr_name, in pcapint_findalldevs_interfaces()
349 strncpy(ifrdstaddr.ifr_name, ifrp->ifr_name, in pcapint_findalldevs_interfaces()
/freebsd/tools/tools/ath/common/
H A Dctrl.c146 strncpy(ifr.ifr_name, req->ifname, sizeof (ifr.ifr_name)); in ath_driver_req_zero_stats()
167 strncpy(ifr.ifr_name, req->ifname, sizeof (ifr.ifr_name)); in ath_driver_req_fetch_stats()
189 strncpy(ifr.ifr_name, req->ifname, sizeof (ifr.ifr_name)); in ath_drive_req_fetch_aggr_stats()
/freebsd/lib/libc/secure/
H A Dstrncpy_chk.c38 #undef strncpy
50 return (strncpy(dst, src, len)); in __strncpy_chk()
/freebsd/stand/ficl/
H A Dloader.c87 strncpy(name, namep, names); in ficlSetenv()
92 strncpy(value, valuep, values); in ficlSetenv()
125 strncpy(name, namep, names); in ficlSetenvq()
130 strncpy(value, valuep, values); in ficlSetenvq()
160 strncpy(name, namep, names); in ficlGetenv()
195 strncpy(name, namep, names); in ficlUnsetenv()
271 strncpy(name, namep, names); in ficlFindfile()
276 strncpy(type, typep, types); in ficlFindfile()
365 strncpy(uuid, uuidp, uuids); in ficlUuidFromString()

12345678910>>...25