Home
last modified time | relevance | path

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

12345678910>>...26

/freebsd-13.1/contrib/opie/libopie/
H A Dlogwtmp.c148 strncpy(ut.ut_id, id, sizeof(ut.ut_id));
153 strncpy(ut.ut_line, line, sizeof(ut.ut_line));
154 strncpy(ut.ut_name, name, sizeof(ut.ut_name));
156 strncpy(ut.ut_host, host, sizeof(ut.ut_host));
170 strncpy(utx.ut_line, line, sizeof(utx.ut_line));
171 strncpy(utx.ut_name, name, sizeof(utx.ut_name));
172 strncpy(utx.ut_host, host, sizeof(utx.ut_host));
180 strncpy(utx.ut_id, id, sizeof(utx.ut_id));
H A Dlogin.c59 strncpy(u.ut_line, line + 5, sizeof(u.ut_line));
61 strncpy(u.ut_line, line, sizeof(u.ut_line));
68 strncpy(id, u.ut_id, sizeof(u.ut_id));
80 strncpy(u.ut_name, name, sizeof(u.ut_name));
86 strncpy(u.ut_host, host, sizeof(u.ut_host));
H A Dgetutmpentry.c55 strncpy(u.ut_line, line + 5, sizeof(u.ut_line));
62 strncpy(u.ut_line + 4, line + 5, sizeof(u.ut_line) - 4);
69 strncpy(u.ut_line, line, sizeof(u.ut_line));
/freebsd-13.1/sys/contrib/openzfs/module/icp/core/
H A Dkcf_mech_tabs.c180 (void) strncpy(kcf_digest_mechs_tab[0].me_name, SUN_CKM_MD5, in kcf_init_mech_tabs()
184 (void) strncpy(kcf_digest_mechs_tab[1].me_name, SUN_CKM_SHA1, in kcf_init_mech_tabs()
189 (void) strncpy(kcf_cipher_mechs_tab[0].me_name, SUN_CKM_DES_CBC, in kcf_init_mech_tabs()
193 (void) strncpy(kcf_cipher_mechs_tab[1].me_name, SUN_CKM_DES3_CBC, in kcf_init_mech_tabs()
197 (void) strncpy(kcf_cipher_mechs_tab[2].me_name, SUN_CKM_DES_ECB, in kcf_init_mech_tabs()
213 (void) strncpy(kcf_cipher_mechs_tab[6].me_name, SUN_CKM_AES_CBC, in kcf_init_mech_tabs()
217 (void) strncpy(kcf_cipher_mechs_tab[7].me_name, SUN_CKM_AES_ECB, in kcf_init_mech_tabs()
221 (void) strncpy(kcf_cipher_mechs_tab[8].me_name, SUN_CKM_RC4, in kcf_init_mech_tabs()
227 (void) strncpy(kcf_mac_mechs_tab[0].me_name, SUN_CKM_MD5_HMAC, in kcf_init_mech_tabs()
235 (void) strncpy(kcf_mac_mechs_tab[2].me_name, SUN_CKM_SHA1_HMAC, in kcf_init_mech_tabs()
[all …]
/freebsd-13.1/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-13.1/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-13.1/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-13.1/lib/lib80211/
H A Dlib80211_ioctl.c105 (void) strncpy(ireq.i_name, name, sizeof(ireq.i_name)); in lib80211_get80211()
118 (void) strncpy(ireq.i_name, name, sizeof(ireq.i_name)); in lib80211_get80211len()
135 (void) strncpy(ireq.i_name, name, sizeof(ireq.i_name)); in lib80211_get80211val()
149 (void) strncpy(ireq.i_name, name, sizeof(ireq.i_name)); in lib80211_set80211()
/freebsd-13.1/contrib/telnet/libtelnet/
H A Dkerberos.c167 strncpy(instance, realm, sizeof(instance)); in kerberos4_send()
426 strncpy((char *)buf, " REJECT ", buflen); in kerberos4_printsub()
430 strncpy((char *)buf, " ACCEPT ", buflen); in kerberos4_printsub()
443 strncpy((char *)buf, " AUTH", buflen); in kerberos4_printsub()
447 strncpy((char *)buf, " CHALLENGE", buflen); in kerberos4_printsub()
451 strncpy((char *)buf, " RESPONSE", buflen); in kerberos4_printsub()
456 strncpy((char *)buf, lbuf, buflen); in kerberos4_printsub()
461 strncpy((char *)buf, lbuf, buflen); in kerberos4_printsub()
H A Dkrb4encpwd.c362 strncpy((char *)buf, " REJECT ", buflen);
366 strncpy((char *)buf, " ACCEPT ", buflen);
379 strncpy((char *)buf, " AUTH", buflen);
383 strncpy((char *)buf, " CHALLENGE", buflen);
387 strncpy((char *)buf, " ACK", buflen);
392 strncpy((char *)buf, lbuf, buflen);
397 strncpy((char *)buf, lbuf, buflen);
H A Dsra.c369 strncpy((char *)buf, " CONTINUE ", buflen); in sra_printsub()
373 strncpy((char *)buf, " REJECT ", buflen); in sra_printsub()
377 strncpy((char *)buf, " ACCEPT ", buflen); in sra_printsub()
391 strncpy((char *)buf, " KEY ", buflen); in sra_printsub()
395 strncpy((char *)buf, " USER ", buflen); in sra_printsub()
399 strncpy((char *)buf, " PASS ", buflen); in sra_printsub()
404 strncpy((char *)buf, lbuf, buflen); in sra_printsub()
409 strncpy((char *)buf, lbuf, buflen); in sra_printsub()
H A Drsaencpwd.c413 strncpy((char *)buf, " REJECT ", buflen);
417 strncpy((char *)buf, " ACCEPT ", buflen);
430 strncpy((char *)buf, " AUTH", buflen);
434 strncpy((char *)buf, " CHALLENGEKEY", buflen);
439 strncpy((char *)buf, lbuf, buflen);
444 strncpy((char *)buf, lbuf, buflen);
/freebsd-13.1/libexec/ftpd/
H A Dlogwtmp.c64 (void)strncpy(ut.ut_user, user, sizeof(ut.ut_user)); in ftpd_logwtmp()
75 (void)strncpy(ut.ut_id, id, sizeof(ut.ut_id)); in ftpd_logwtmp()
76 (void)strncpy(ut.ut_line, "ftpd", sizeof(ut.ut_line)); in ftpd_logwtmp()
/freebsd-13.1/usr.bin/mkimg/
H A Dapm.c84 strncpy(ent->ent_type, APM_ENT_TYPE_SELF, sizeof(ent->ent_type)); in apm_write()
85 strncpy(ent->ent_name, "Apple", sizeof(ent->ent_name)); in apm_write()
93 strncpy(ent->ent_type, ALIAS_TYPE2PTR(part->type), in apm_write()
96 strncpy(ent->ent_name, part->label, in apm_write()
/freebsd-13.1/lib/libulog/
H A Dulog_login.c55 strncpy(utx->ut_line, line, sizeof utx->ut_line); in ulog_fill()
72 strncpy(utx.ut_user, user, sizeof utx.ut_user); in ulog_login()
74 strncpy(utx.ut_host, host, sizeof utx.ut_host); in ulog_login()
/freebsd-13.1/sbin/ipf/libipf/
H A Dload_pool.c31 strncpy(op.iplo_name, plp->ipo_name, sizeof(op.iplo_name)); in load_pool()
36 strncpy(pool.ipo_name, plp->ipo_name, sizeof(pool.ipo_name)); in load_pool()
50 strncpy(pool.ipo_name, op.iplo_name, sizeof(pool.ipo_name)); in load_pool()
/freebsd-13.1/lib/ncurses/ncurses/
H A Dtermcap.c135 strncpy(pathbuf, termpath, PBUFSIZ); in _nc_read_termcap_entry()
138 strncpy(pathbuf, home, PBUFSIZ - 1); /* $HOME first */ in _nc_read_termcap_entry()
143 strncpy(p, _PATH_DEF, PBUFSIZ - (p - pathbuf)); in _nc_read_termcap_entry()
147 strncpy(pathbuf, cp, PBUFSIZ); /* still can be tokenized */ in _nc_read_termcap_entry()
/freebsd-13.1/sbin/ipf/ippool/
H A Dippool_y.y126 strncpy(ipht.iph_name, $3,
191 { strncpy(iplo.ipo_name, $4,
199 { strncpy(ipht.iph_name, $4,
211 strncpy(e->ipe_group,
235 strncpy(tmp, $3, FR_GROUPLEN);
296 strncpy($$->ipe_group, $3,
449 strncpy(ipld.ipld_name, $6,
461 strncpy(iplo.ipo_name, $6,
472 strncpy(iplo.ipo_name, $3,
485 strncpy(ipht.iph_name, $6,
[all …]
/freebsd-13.1/sbin/spppcontrol/
H A Dspppcontrol.c84 strncpy(ifr.ifr_name, ifname, sizeof ifr.ifr_name); in main()
132 strncpy(spr.defs.myauth.name, argv[0] + off, in main()
136 strncpy(spr.defs.myauth.secret, argv[0] + off, in main()
149 strncpy(spr.defs.hisauth.name, argv[0] + off, in main()
153 strncpy(spr.defs.hisauth.secret, argv[0] + off, in main()
/freebsd-13.1/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()
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()
1467 strncpy(wtmp.ut_name, "", sizeof(wtmp.ut_name)); in rmut()
1469 strncpy(wtmp.ut_host, "", sizeof(wtmp.ut_host)); in rmut()
1511 strncpy(u->ut_name, "", sizeof(u->ut_name)); in rmut()
1513 strncpy(u->ut_host, "", sizeof(u->ut_host)); in rmut()
1526 strncpy(wtmp.ut_name, "", sizeof(wtmp.ut_name)); in rmut()
[all …]
/freebsd-13.1/usr.sbin/wpa/wpa_supplicant/
H A DPacket32.c138 strncpy(ireq.i_name, iface, sizeof (ifr.ifr_name)); in PacketOpenAdapter()
149 strncpy(ifr.ifr_name, iface, sizeof (ifr.ifr_name)); in PacketOpenAdapter()
288 strncpy(plist, sdl->sdl_data, sdl->sdl_nlen); in PacketGetAdapterNames()
321 strncpy(plist, sdl->sdl_data, sdl->sdl_nlen); in PacketGetAdapterNames()
351 strncpy(ireq.i_name, a->name, sizeof (ifr.ifr_name)); in PacketCloseAdapter()
357 strncpy(ifr.ifr_name, a->name, sizeof (ifr.ifr_name)); in PacketCloseAdapter()
/freebsd-13.1/lib/libutil/
H A Drealhostname.c76 strncpy(host, trimmed, hsize); in realhostname()
83 strncpy(host, inet_ntoa(*ip), hsize); in realhostname()
186 strncpy(host, buf, hsize); in realhostname_sa()
196 strncpy(host, buf, hsize); in realhostname_sa()
/freebsd-13.1/lib/libc/string/
H A Dstrncpy.c48 __weak_reference(__strncpy, strncpy);
55 strncpy in __strncpy()
/freebsd-13.1/tools/tools/ath/common/
H A Dctrl.c148 strncpy(ifr.ifr_name, req->ifname, sizeof (ifr.ifr_name)); in ath_driver_req_zero_stats()
169 strncpy(ifr.ifr_name, req->ifname, sizeof (ifr.ifr_name)); in ath_driver_req_fetch_stats()
191 strncpy(ifr.ifr_name, req->ifname, sizeof (ifr.ifr_name)); in ath_drive_req_fetch_aggr_stats()

12345678910>>...26