Home
last modified time | relevance | path

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

12345678910>>...62

/openbsd/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_cgs.c256 strlcpy(fw_name, "radeon/tahiti_smc.bin", sizeof(fw_name)); in amdgpu_cgs_get_firmware_info()
281 strlcpy(fw_name, "radeon/verde_smc.bin", sizeof(fw_name)); in amdgpu_cgs_get_firmware_info()
295 strlcpy(fw_name, "radeon/oland_smc.bin", sizeof(fw_name)); in amdgpu_cgs_get_firmware_info()
313 strlcpy(fw_name, "radeon/hainan_smc.bin", sizeof(fw_name)); in amdgpu_cgs_get_firmware_info()
331 strlcpy(fw_name, "amdgpu/hawaii_smc.bin", sizeof(fw_name)); in amdgpu_cgs_get_firmware_info()
343 strlcpy(fw_name, "amdgpu/topaz_smc.bin", sizeof(fw_name)); in amdgpu_cgs_get_firmware_info()
351 strlcpy(fw_name, "amdgpu/tonga_smc.bin", sizeof(fw_name)); in amdgpu_cgs_get_firmware_info()
354 strlcpy(fw_name, "amdgpu/fiji_smc.bin", sizeof(fw_name)); in amdgpu_cgs_get_firmware_info()
395 strlcpy(fw_name, "amdgpu/vegam_smc.bin", sizeof(fw_name)); in amdgpu_cgs_get_firmware_info()
407 strlcpy(fw_name, "amdgpu/vega12_smc.bin", sizeof(fw_name)); in amdgpu_cgs_get_firmware_info()
[all …]
/openbsd/sbin/ifconfig/
H A Dbrconfig.c217 strlcpy(req.ifbr_name, ifname, sizeof(req.ifbr_name)); in bridge_ifsetflag()
233 strlcpy(req.ifbr_name, ifname, sizeof(req.ifbr_name)); in bridge_ifclrflag()
250 strlcpy(req.ifbr_name, ifname, sizeof(req.ifbr_name)); in bridge_flushall()
261 strlcpy(req.ifbr_name, ifname, sizeof(req.ifbr_name)); in bridge_flush()
336 strlcpy(buf, reqp->ifbr_ifsname, sizeof(buf)); in bridge_list()
371 strlcpy(req.ifbr_name, ifname, sizeof(req.ifbr_name)); in bridge_add()
385 strlcpy(req.ifbr_name, ifname, sizeof(req.ifbr_name)); in bridge_delete()
396 strlcpy(req.ifbr_name, ifname, sizeof(req.ifbr_name)); in bridge_addspan()
410 strlcpy(req.ifbr_name, ifname, sizeof(req.ifbr_name)); in bridge_delspan()
730 strlcpy(buf, ifba->ifba_ifsname, sizeof(buf)); in bridge_addrs()
[all …]
H A Difconfig.c1202 strlcpy(ifname, ifa->ifa_name, sizeof(ifname)); in printif()
1655 strlcpy(ifgr.ifgr_name, ifname, IFNAMSIZ); in setifgroup()
1665 strlcpy(ifgr.ifgr_group, group_name, IFNAMSIZ); in setifgroup()
1678 strlcpy(ifgr.ifgr_name, ifname, IFNAMSIZ); in unsetifgroup()
2447 strlcpy(psk.i_name, ifname, sizeof(psk.i_name)); in ieee80211_status()
2463 strlcpy(wpa.i_name, ifname, sizeof(wpa.i_name)); in ieee80211_status()
2668 strlcpy(ca.i_name, ifname, sizeof(ca.i_name)); in ieee80211_listchans()
3203 strlcpy(psrcaddr, "<error>", sizeof(psrcaddr)); in print_tunnel()
3602 strlcpy(hbuf, "", sizeof hbuf); in in6_alias()
3620 strlcpy(hbuf, "", sizeof hbuf); in in6_alias()
[all …]
/openbsd/games/hack/
H A Dhack.objnam.c119 strlcpy(buf, "wand", sizeof buf); in typename()
122 strlcpy(buf, "ring", sizeof buf); in typename()
126 strlcpy(buf, an, sizeof buf); in typename()
187 strlcpy(buf, dn, len); in xname()
190 strlcpy(buf,an,len); in xname()
215 strlcpy(buf,an,len); in xname()
223 strlcpy(buf, "potion", len); in xname()
237 strlcpy(buf, dn, len); in xname()
242 strlcpy(buf, "scroll", len); in xname()
281 strlcpy(buf, "gem", len); in xname()
[all …]
H A Dhack.main.c153 (void) strlcpy(plname, s, sizeof(plname)); in main()
155 (void) strlcpy(plname, s, sizeof(plname)); in main()
157 (void) strlcpy(plname, s, sizeof(plname)); in main()
211 (void) strlcpy(plname, argv[0]+2, sizeof(plname)); in main()
215 (void) strlcpy(plname, argv[0], sizeof(plname)); in main()
221 (void) strlcpy(pl_character, argv[0]+1, sizeof(pl_character)); in main()
240 if(wizard) (void) strlcpy(plname, "wizard", sizeof plname); else in main()
258 (void) strlcpy(lock,plname,sizeof lock); in main()
263 (void) strlcpy(lock,plname,sizeof lock); in main()
283 strlcpy(genocided, sfoo, sizeof genocided); in main()
[all …]
/openbsd/sys/dev/ic/
H A Dam7930.c431 strlcpy(dip->label.name, AudioNmicrophone, in am7930_query_devinfo()
441 strlcpy(dip->label.name, AudioNspeaker, in am7930_query_devinfo()
451 strlcpy(dip->label.name, AudioNheadphone, in am7930_query_devinfo()
461 strlcpy(dip->label.name, AudioNmonitor, in am7930_query_devinfo()
471 strlcpy(dip->label.name, AudioNsource, in am7930_query_devinfo()
482 strlcpy(dip->label.name, AudioNoutput, in am7930_query_devinfo()
497 strlcpy(dip->label.name, AudioNmute, in am7930_query_devinfo()
511 strlcpy(dip->label.name, AudioCinputs, in am7930_query_devinfo()
518 strlcpy(dip->label.name, AudioCoutputs, in am7930_query_devinfo()
525 strlcpy(dip->label.name, AudioCrecord, in am7930_query_devinfo()
[all …]
/openbsd/usr.sbin/smtpd/
H A Dto.c97 (void)strlcpy(buffer, maddr->user, sizeof buffer); in mailaddr_to_text()
116 (void)strlcpy(buf, "local", sizeof buf); in sa_to_text()
181 (void)strlcpy(dst, "0s", sizeof dst); in duration_to_text()
187 (void)strlcpy(dst, "-", sizeof dst); in duration_to_text()
417 (void)strlcpy(buf, "match", sizeof buf); in rule_to_text()
519 if (strlcpy(userinfo->username, buf, in text_to_userinfo()
543 if (strlcpy(userinfo->directory, s, in text_to_userinfo()
632 if (strlcpy(alias->u.buffer, line + v + 1, in alias_is_filter()
654 if (strlcpy(alias->u.user, line, in alias_is_username()
721 if (strlcpy(alias->u.buffer, line, in alias_is_filename()
[all …]
H A Dstat_ramstat.c72 (void)strlcpy(lk.key, name, sizeof (lk.key)); in ramstat_increment()
76 (void)strlcpy(np->key, name, sizeof (np->key)); in ramstat_increment()
90 (void)strlcpy(lk.key, name, sizeof (lk.key)); in ramstat_decrement()
94 (void)strlcpy(np->key, name, sizeof (np->key)); in ramstat_decrement()
108 (void)strlcpy(lk.key, name, sizeof (lk.key)); in ramstat_set()
112 (void)strlcpy(np->key, name, sizeof (np->key)); in ramstat_set()
H A Dmda_variables.c66 if (strlcpy(rtoken, token, sizeof rtoken) >= sizeof rtoken) in mda_expand_token()
109 (void)strlcpy(tmp, "", sizeof tmp); in mda_expand_token()
117 (void)strlcpy(tmp, "", sizeof tmp); in mda_expand_token()
125 (void)strlcpy(tmp, "", sizeof tmp); in mda_expand_token()
155 (void)strlcpy(tmp, "MAILER-DAEMON", sizeof tmp); in mda_expand_token()
164 if (strlcpy(tmp, string, sizeof tmp) >= sizeof tmp) in mda_expand_token()
315 if ((ret = strlcpy(buf, tmpbuf, len)) >= len) in mda_expand_format()
328 if (strlcpy(buf, tmp, len) >= len) in mod_lowercase()
340 if (strlcpy(buf, tmp, len) >= len) in mod_uppercase()
/openbsd/usr.sbin/snmpd/
H A Dmib.y338 if (strlcpy(module->name, $1,
417 strlcpy($$[i], $1[i], sizeof($$[i]));
484 strlcpy($$, $1, sizeof($$));
659 strlcpy($$, $2, sizeof($$));
667 strlcpy($$, $2, sizeof($$));
716 strlcpy($$, $2, sizeof($$));
841 strlcpy($$.name, $1, sizeof($$.name));
868 strlcpy($$.name, $1, sizeof($$.name));
1123 (void)strlcpy(yylval.string, buf + 1, in yylex()
1366 strlcpy(module->imports[im].name, name, in mib_imports_add()
[all …]
/openbsd/sys/dev/pci/
H A Deso.c1102 strlcpy(dip->un.v.units.name, AudioNvolume, in eso_query_devinfo()
1108 strlcpy(dip->label.name, AudioNmicrophone, in eso_query_devinfo()
1112 strlcpy(dip->un.v.units.name, AudioNvolume, in eso_query_devinfo()
1127 strlcpy(dip->label.name, AudioNfmsynth, in eso_query_devinfo()
1177 strlcpy(dip->label.name, AudioNmicrophone, in eso_query_devinfo()
1259 strlcpy(dip->label.name, AudioNspatial, in eso_query_devinfo()
1263 strlcpy(dip->un.v.units.name, "level", in eso_query_devinfo()
1283 strlcpy(dip->label.name, AudioCoutputs, in eso_query_devinfo()
1303 strlcpy(dip->label.name, AudioCmonitor, in eso_query_devinfo()
1346 strlcpy(dip->label.name, AudioNmicrophone, in eso_query_devinfo()
[all …]
H A Ditherm.c150 strlcpy(sc->sensors[ITHERM_SENSOR_THERMOMETER].desc, in itherm_attach()
154 strlcpy(sc->sensors[ITHERM_SENSOR_CORETEMP1].desc, in itherm_attach()
158 strlcpy(sc->sensors[ITHERM_SENSOR_CORETEMP2].desc, in itherm_attach()
162 strlcpy(sc->sensors[ITHERM_SENSOR_COREENERGY].desc, in itherm_attach()
166 strlcpy(sc->sensors[ITHERM_SENSOR_GPUTEMP].desc, in itherm_attach()
170 strlcpy(sc->sensors[ITHERM_SENSOR_MAXPROCTEMP].desc, in itherm_attach()
174 strlcpy(sc->sensors[ITHERM_SENSOR_DIMMTEMP1].desc, in itherm_attach()
178 strlcpy(sc->sensors[ITHERM_SENSOR_DIMMTEMP2].desc, in itherm_attach()
182 strlcpy(sc->sensors[ITHERM_SENSOR_DIMMTEMP3].desc, in itherm_attach()
186 strlcpy(sc->sensors[ITHERM_SENSOR_DIMMTEMP4].desc, in itherm_attach()
[all …]
H A Dcmpci.c879 strlcpy(dip->label.name, in cmpci_query_devinfo()
900 strlcpy(dip->un.v.units.name, AudioNvolume, in cmpci_query_devinfo()
919 strlcpy(dip->un.e.member[0].label.name, AudioNoff, in cmpci_query_devinfo()
922 strlcpy(dip->un.e.member[1].label.name, AudioNon, in cmpci_query_devinfo()
946 strlcpy(dip->un.s.member[1].label.name, AudioNcd, in cmpci_query_devinfo()
949 strlcpy(dip->un.s.member[2].label.name, AudioNline, in cmpci_query_devinfo()
952 strlcpy(dip->un.s.member[3].label.name, AudioNaux, in cmpci_query_devinfo()
955 strlcpy(dip->un.s.member[4].label.name, AudioNwave, in cmpci_query_devinfo()
977 strlcpy(dip->un.e.member[0].label.name, AudioNdac, in cmpci_query_devinfo()
1036 strlcpy(dip->un.e.member[0].label.name, AudioNwave, in cmpci_query_devinfo()
[all …]
/openbsd/sys/dev/i2c/
H A Dadt7460.c205 strlcpy(sc->sc_sensordev.xname, sc->sc_dev.dv_xname, in adt_attach()
209 strlcpy(sc->sc_sensor[ADT_2_5V].desc, "+2.5Vin", in adt_attach()
213 strlcpy(sc->sc_sensor[ADT_2_5V].desc, "+5VTR", in adt_attach()
216 strlcpy(sc->sc_sensor[ADT_2_5V].desc, "+5V", in adt_attach()
220 strlcpy(sc->sc_sensor[ADT_VCCP].desc, "Vccp", in adt_attach()
224 strlcpy(sc->sc_sensor[ADT_VCC].desc, "Vcc", in adt_attach()
228 strlcpy(sc->sc_sensor[ADT_V5].desc, "+5V", in adt_attach()
232 strlcpy(sc->sc_sensor[ADT_V12].desc, "+12V", in adt_attach()
236 strlcpy(sc->sc_sensor[ADT_VTR].desc, "+Vtr", in adt_attach()
240 strlcpy(sc->sc_sensor[ADT_VBAT].desc, "+Vbat", in adt_attach()
[all …]
H A Dadm1025.c139 strlcpy(sc->sc_sensor[ADMTM_INT].desc, "Internal", in admtm_attach()
143 strlcpy(sc->sc_sensor[ADMTM_EXT].desc, "External", in admtm_attach()
147 strlcpy(sc->sc_sensor[ADMTM_V2_5].desc, "2.5 V", in admtm_attach()
151 strlcpy(sc->sc_sensor[ADMTM_Vccp].desc, "Vccp", in admtm_attach()
155 strlcpy(sc->sc_sensor[ADMTM_V3_3].desc, "3.3 V", in admtm_attach()
159 strlcpy(sc->sc_sensor[ADMTM_V5].desc, "5 V", in admtm_attach()
163 strlcpy(sc->sc_sensor[ADMTM_V12].desc, "12 V", in admtm_attach()
167 strlcpy(sc->sc_sensor[ADMTM_Vcc].desc, "Vcc", in admtm_attach()
171 strlcpy(sc->sc_sensor[SMSC_V1_5].desc, "1.5 V", in admtm_attach()
175 strlcpy(sc->sc_sensor[SMSC_V1_8].desc, "1.8 V", in admtm_attach()
[all …]
H A Dlm87.c174 strlcpy(sc->sc_sensordev.xname, sc->sc_dev.dv_xname, in lmenv_attach()
178 strlcpy(sc->sc_sensor[LMENV_2_5V].desc, "+2.5Vin", in lmenv_attach()
182 strlcpy(sc->sc_sensor[LMENV_VCCP1].desc, "Vccp", in lmenv_attach()
186 strlcpy(sc->sc_sensor[LMENV_VCC].desc, "+Vcc", in lmenv_attach()
190 strlcpy(sc->sc_sensor[LMENV_5V].desc, "+5Vin/Vcc", in lmenv_attach()
194 strlcpy(sc->sc_sensor[LMENV_12V].desc, "+12Vin", in lmenv_attach()
198 strlcpy(sc->sc_sensor[LMENV_VCCP2].desc, "Vccp", in lmenv_attach()
202 strlcpy(sc->sc_sensor[LMENV_EXT_TEMP].desc, "External", in lmenv_attach()
208 strlcpy(sc->sc_sensor[LMENV_INT_TEMP].desc, "Internal", in lmenv_attach()
213 strlcpy(sc->sc_sensor[LMENV_FAN1].desc, "AIN1", in lmenv_attach()
[all …]
/openbsd/distrib/special/more/
H A Dtermcap.c90 strlcpy(pathbuf, _PATH_TERMCAP, sizeof(pathbuf)); in tgetent()
93 strlcpy(pathbuf, termpath, sizeof(pathbuf)); in tgetent()
97 strlcpy(pathbuf, _PATH_DEF, sizeof(pathbuf)); in tgetent()
100 strlcpy(pathbuf, cp, sizeof(pathbuf)); in tgetent()
129 strlcpy(bp, dummy, 1024); in tgetent()
203 strlcpy(*area, s, 1024); in tgetstr()
/openbsd/sys/dev/acpi/
H A Dacpibat.c150 strlcpy(sc->sc_sensdev.xname, DEVNAME(sc), in acpibat_monitor()
161 strlcpy(sc->sc_sens[1].desc, "warning capacity", in acpibat_monitor()
167 strlcpy(sc->sc_sens[2].desc, "low capacity", in acpibat_monitor()
178 strlcpy(sc->sc_sens[4].desc, "battery unknown", in acpibat_monitor()
196 strlcpy(sc->sc_sens[7].desc, "current voltage", in acpibat_monitor()
202 strlcpy(sc->sc_sens[8].desc, "design capacity", in acpibat_monitor()
209 strlcpy(sc->sc_sens[9].desc, "discharge cycles", in acpibat_monitor()
235 strlcpy(sc->sc_sens[4].desc, "battery removed", in acpibat_refresh()
271 strlcpy(sc->sc_sens[4].desc, "battery unknown", in acpibat_refresh()
274 strlcpy(sc->sc_sens[4].desc, "battery full", in acpibat_refresh()
[all …]
/openbsd/regress/lib/libc/strlcpy/
H A Dstrlcpytest.c57 len = strlcpy(NULL, "abcd", 0); in main()
65 len = strlcpy(buf, "abcd", bufsize); in main()
88 len = strlcpy(buf, buf2, bufsize / 2); in main()
110 len = strlcpy(buf, "abcd", 1); in main()
143 len = strlcpy(NULL, "abcd", sizeof(buf)); in main()
156 len = strlcpy(buf, NULL, sizeof(buf)); in main()
/openbsd/usr.sbin/vmctl/
H A Dvmctl.c145 if (strlcpy(vmc->vmc_disks[i], disks[i], in vm_start()
156 (void)strlcpy(vmc->vmc_ifswitch[i], "", in vm_start()
161 if (strlcpy(vmc->vmc_ifswitch[i], nics[i], in vm_start()
182 if (strlcpy(vcp->vcp_name, name, in vm_start()
199 if (strlcpy(vmc->vmc_cdrom, iso, in vm_start()
203 if (strlcpy(vmc->vmc_instance, instance, in vm_start()
307 strlcpy(vid.vid_name, name, sizeof(vid.vid_name)); in send_vm()
347 strlcpy(vid.vid_name, name, sizeof(vid.vid_name)); in vm_receive()
810 (void)strlcpy(user, name, sizeof(user)); in print_vm_info()
823 (void)strlcpy(curmem, "-", sizeof(curmem)); in print_vm_info()
[all …]
/openbsd/lib/libc/gen/
H A Dconfstr.c60 return (strlcpy(buf, _PATH_STDPATH, len) + 1); in confstr()
114 return (strlcpy(buf, "-lpthread", len) + 1); in confstr()
117 return (strlcpy(buf, v6_width_restricted_envs, len) + 1); in confstr()
120 return (strlcpy(buf, v7_width_restricted_envs, len) + 1); in confstr()
/openbsd/usr.sbin/vmd/
H A Dpriv.c138 strlcpy(ifbr.ifbr_name, vfr.vfr_name, in priv_dispatch_parent()
140 strlcpy(ifbr.ifbr_ifsname, vfr.vfr_value, in priv_dispatch_parent()
172 if (strlcpy(ifgr.ifgr_name, vfr.vfr_name, in priv_dispatch_parent()
174 strlcpy(ifgr.ifgr_group, vfr.vfr_value, in priv_dispatch_parent()
212 strlcpy(in6_ifra.ifra_name, vfr.vfr_name, in priv_dispatch_parent()
348 if (strlcpy(vfr.vfr_name, vif->vif_name, in vm_priv_ifconfig()
375 if (strlcpy(vfbr.vfr_name, vsw->sw_ifname, in vm_priv_ifconfig()
378 if (strlcpy(vfbr.vfr_value, vif->vif_name, in vm_priv_ifconfig()
410 if (strlcpy(vfr.vfr_value, vif->vif_group, in vm_priv_ifconfig()
423 if (strlcpy(vfr.vfr_value, vsw->sw_group, in vm_priv_ifconfig()
[all …]
/openbsd/lib/libfuse/
H A Ddict.c42 if (strlcpy(key.key, k, sizeof key.key) >= sizeof key.key) in dict_check()
53 if (strlcpy(key.key, k, sizeof key.key) >= sizeof key.key) in dict_set()
60 strlcpy(entry->key, k, sizeof entry->key); in dict_set()
74 if (strlcpy(key.key, k, sizeof key.key) >= sizeof key.key) in dict_get()
88 if (strlcpy(key.key, k, sizeof key.key) >= sizeof key.key) in dict_pop()
/openbsd/sys/dev/isa/
H A Dess.c1769 strlcpy(dip->un.v.units.name, AudioNvolume, in ess_query_devinfo()
1780 strlcpy(dip->label.name, AudioNmicrophone, in ess_query_devinfo()
1784 strlcpy(dip->un.v.units.name, AudioNvolume, in ess_query_devinfo()
1794 strlcpy(dip->un.v.units.name, AudioNvolume, in ess_query_devinfo()
1801 strlcpy(dip->label.name, AudioNfmsynth, in ess_query_devinfo()
1805 strlcpy(dip->un.v.units.name, AudioNvolume, in ess_query_devinfo()
1889 strlcpy(dip->un.e.member[0].label.name, in ess_query_devinfo()
1908 strlcpy(dip->un.s.member[1].label.name, in ess_query_devinfo()
1951 strlcpy(dip->label.name, AudioCmonitor, in ess_query_devinfo()
1974 strlcpy(dip->label.name, AudioNmicrophone, in ess_query_devinfo()
[all …]
/openbsd/games/battlestar/
H A Dparse.c120 strlcpy(words[i - 1], words[i], WORDLEN); in parse()
141 strlcpy(words[i - 1], words[i], WORDLEN); in parse()
162 strlcpy(tmpword, words[n - 1], WORDLEN); in parse()
163 strlcpy(words[n - 1], words[n + 1], WORDLEN); in parse()
164 strlcpy(words[n + 1], tmpword, WORDLEN); in parse()
175 strlcpy(words[i - 1], words[i + 1], WORDLEN); in parse()

12345678910>>...62