Searched refs:strlcpy (Results 1 - 25 of 112) sorted by relevance

12345

/xnu-2782.1.97/libsyscall/wrappers/string/
H A Dstrings.h69 size_t strlcpy(char *, const char *, size_t);
H A Dstrlcpy.c28 strlcpy(char * restrict dst, const char * restrict src, size_t maxlen) { function
/xnu-2782.1.97/bsd/vfs/
H A Dvfs_fslog.c72 strlcpy(c_name, caller->p_comm, sizeof(c_name));
81 strlcpy(t_name, target->p_comm, sizeof(t_name));
/xnu-2782.1.97/osfmk/libsa/
H A Dstring.h67 /* strcpy() is being deprecated. Please use strlcpy() instead. */
72 extern size_t strlcpy(char *, const char *, size_t);
/xnu-2782.1.97/bsd/net/
H A Dpf_ruleset.c203 strlcpy(key->path, path, sizeof (key->path));
264 strlcpy(p, path, MAXPATHLEN);
276 strlcpy(p, path, MAXPATHLEN);
297 strlcpy(anchor->name, q, sizeof (anchor->name));
299 strlcpy(anchor->path, parent->path,
383 strlcpy(path, name + 1, MAXPATHLEN);
390 strlcpy(path, s->anchor->path, MAXPATHLEN);
431 strlcpy(pr->anchor_call, "/", sizeof (pr->anchor_call));
443 strlcpy(a, rs->anchor->path, MAXPATHLEN);
H A Dnet_str_id.c130 strlcpy(entry->nsi_string, string, strlen(string) + 1);
192 strlcpy(iffmid->iffmid_str, entry->nsi_string, str_size);
H A Dpf_if.c150 strlcpy(s.pfik_name, kif_name, sizeof (s.pfik_name));
159 strlcpy(kif->pfik_name, kif_name, sizeof (kif->pfik_name));
336 strlcpy(tblname, aw->v.ifname, sizeof (tblname));
602 strlcpy(key.pfik_name, name, sizeof (key.pfik_name));
/xnu-2782.1.97/libkern/
H A DOSKextVersion.c416 strlcpy(buffer, "(invalid)", bufferLength);
420 strlcpy(buffer, "(missing)", bufferLength);
426 strlcpy(buffer, "(invalid)", bufferLength);
446 strlcpy(buffer, "(invalid)", bufferLength);
469 strlcpy(buffer, "(invalid)", bufferLength);
/xnu-2782.1.97/libkern/kxld/
H A Dkxld_sect.c68 strlcpy(sect->segname, src->segname, sizeof(sect->segname));
69 strlcpy(sect->sectname, src->sectname, sizeof(sect->sectname));
116 strlcpy(sect->segname, src->segname, sizeof(sect->segname));
117 strlcpy(sect->sectname, src->sectname, sizeof(sect->sectname));
160 strlcpy(sect->segname, KXLD_SEG_GOT, sizeof(sect->segname));
161 strlcpy(sect->sectname, KXLD_SECT_GOT, sizeof(sect->sectname));
193 strlcpy(sect->segname, segname, sizeof(sect->segname));
194 strlcpy(sect->sectname, sectname, sizeof(sect->sectname));
475 strlcpy(secthdr->sectname, sect->sectname, sizeof(secthdr->sectname));
476 strlcpy(secthd
[all...]
H A Dkxld_seg.c84 strlcpy(seg->segname, src->segname, sizeof(seg->segname));
113 strlcpy(seg->segname, src->segname, sizeof(seg->segname));
422 strlcpy(le->segname, SEG_LINKEDIT, sizeof(le->segname));
647 strlcpy(seghdr->segname, seg->segname, sizeof(seghdr->segname));
687 strlcpy(seghdr->segname, seg->segname, sizeof(seghdr->segname));
H A Dkxld_sym.c707 outlen = strlcpy(vtable_name, VTABLE_PREFIX, vtable_name_len);
732 outlen = strlcpy(meta_vtable_name, METACLASS_VTABLE_PREFIX,
763 outlen = strlcpy(final_sym_name, OSOBJ_PREFIX, final_sym_name_len);
793 outlen = strlcpy(function_prefix, OSOBJ_PREFIX, function_prefix_len);
882 strlcpy(str, sym->name, strsize - *stroff);
923 strlcpy(str, sym->name, strsize - *stroff);
/xnu-2782.1.97/bsd/security/audit/
H A Daudit_bsd.c153 strlcpy(nxt_ptr->md_shortdesc,
155 strlcpy(nxt_ptr->md_lastcaller,
334 strlcpy(mp->mtx_name, lckname, AU_MAX_LCK_NAME);
362 strlcpy(lp->rw_name, lckname, AU_MAX_LCK_NAME);
412 strlcpy(lp->rl_name, lckname, AU_MAX_LCK_NAME);
493 strlcpy(lp->sl_name, lckname, AU_MAX_LCK_NAME);
H A Daudit_bsm_klib.c808 strlcpy(cpath + len, bufp, MAXPATHLEN - len);
810 strlcpy(cpath, bufp, MAXPATHLEN);
/xnu-2782.1.97/libkern/net/
H A Dinet_ntop.c80 strlcpy(dst, tmp, size);
178 strlcpy(dst, tmp, size);
/xnu-2782.1.97/bsd/kern/
H A Dnetboot.c319 strlcpy(*str_p, path, *length_p);
367 strlcpy(info->server_name, server_name, info->server_name_length);
368 strlcpy(info->mount_point, mount_point, info->mount_point_length);
383 strlcpy(info->image_path + 1, image_path,
386 strlcpy(info->image_path, image_path,
474 strlcpy(path, S_netboot_info_p->mount_point, path_len);
475 strlcpy(name, S_netboot_info_p->server_name, name_len);
H A Dsocket_info.c208 strlcpy(ndrvsi->ndrvsi_if_name, ifp->if_name, IFNAMSIZ);
242 strlcpy(kcsi->kcsi_name, kctl->name, MAX_KCTL_NAME);
/xnu-2782.1.97/libkern/kxld/tests/
H A Dkextcopyright.c106 bytes_copied = strlcpy(converted_string, (const char *) data_bytes,
/xnu-2782.1.97/osfmk/kdp/
H A Dkdp_udp.c1491 cp += strlcpy (cp, corename, KDP_MAXPACKET);
1493 cp += strlcpy (cp, mode, KDP_MAXPACKET - strlen(corename));
1495 cp += strlcpy(cp, KDP_FEATURE_MASK_STRING, sizeof(KDP_FEATURE_MASK_STRING));
1737 strlcpy(vstr, "custom", 10);
1754 strlcpy(versionbuf, vstr, KDP_MAXPACKET);
1766 strlcpy(panicd_ip_str, destipstr, sizeof(panicd_ip_str));
1771 strlcpy(router_ip_str, routeripstr, sizeof(router_ip_str));
1776 strlcpy(corename_str, filename, sizeof(corename_str));
1831 strlcpy(destipstr, panicd_ip_str,
1839 strlcpy(routeripst
[all...]
/xnu-2782.1.97/bsd/dev/dtrace/
H A Dsdt_subr.c989 (void) strlcpy(desc->dtargd_native, a->sda_native, DTRACE_ARGTYPELEN);
992 (void) strlcpy(desc->dtargd_xlate, a->sda_xlate, DTRACE_ARGTYPELEN);
/xnu-2782.1.97/iokit/bsddev/
H A DIOKitBSDInit.cpp280 strlcpy( buf, kIODeviceTreePlane ":", len + 1 );
287 strlcpy( comp, path, len + 1 );
543 strlcpy( rootName, iostr->getCStringNoCopy(), rootNameSize );
557 strlcpy( rootName, "en0", rootNameSize );
676 strlcpy( serial_number_str, string->getCStringNoCopy( ), len );
H A DDINetBootHook.cpp199 strlcpy(devname, myDevName->getCStringNoCopy(), 16);
/xnu-2782.1.97/iokit/Kernel/
H A DIORegistryEntry.cpp197 strlcpy( key, name, kIOMaxPlaneName + 1 );
202 strlcpy( end, kIORegPlaneParentSuffix, kIORegPlaneParentSuffixLen + 1 );
205 strlcpy( end, kIORegPlaneChildSuffix, kIORegPlaneChildSuffixLen + 1 );
208 strlcpy( end, kIORegPlaneNameSuffix, kIORegPlaneNameSuffixLen + 1 );
211 strlcpy( end, kIORegPlaneLocationSuffix, kIORegPlaneLocationSuffixLen + 1 );
906 strlcpy( nextComp, plane->nameKey->getCStringNoCopy(), len + 1);
916 strlcpy( nextComp, alias->getCStringNoCopy(), aliasLen + 1);
957 strlcpy( nextComp, alias->getCStringNoCopy(), compLen + 1);
1000 strlcpy( path, compName, len + 1 );
1005 strlcpy( pat
[all...]
/xnu-2782.1.97/osfmk/kern/
H A Dledger.c289 strlcpy(et->et_key, key, LEDGER_NAME_MAX);
290 strlcpy(et->et_group, group, LEDGER_NAME_MAX);
291 strlcpy(et->et_units, units, LEDGER_NAME_MAX);
1506 strlcpy(lti->lti_name, et->et_key, LEDGER_NAME_MAX);
1507 strlcpy(lti->lti_group, et->et_group, LEDGER_NAME_MAX);
1508 strlcpy(lti->lti_units, et->et_units, LEDGER_NAME_MAX);
1592 strlcpy(info->li_name, l->l_template->lt_name, LEDGER_NAME_MAX);
H A Ddebug.c497 strlcpy(model_name, model_string, sizeof(model_name));
552 if (strlcpy(buf, PE_boot_args(), sizeof(buf)))
/xnu-2782.1.97/tools/tests/xnu_quick_test/
H A Dcontent_protection_test.c375 init_result |= (strlcpy(dirpath, filepath, PATH_MAX) == PATH_MAX);
378 init_result |= (strlcpy(subdirpath, dirpath, PATH_MAX) == PATH_MAX);
731 if ((strlcpy(filepath, dirpath, PATH_MAX) == PATH_MAX) || (strlcat(filepath, "cpt_test_file", PATH_MAX) == PATH_MAX))

Completed in 94 milliseconds

12345