| /xnu-11215/tests/vfs/ |
| H A D | o_search.c | 50 char namebuf[(sizeof(struct dirent) * (NUMDIRS + 2))]; variable 74 …T_ASSERT_POSIX_SUCCESS(retval = (int)__getdirentries64(tmpdir_fd, namebuf, sizeof(namebuf), &dirby… 78 retval = (int)__getdirentries64(tmpdir_fd, namebuf, sizeof(namebuf), &dirbyte);
|
| /xnu-11215/bsd/net/ |
| H A D | pf_ruleset.c | 482 char const *namebuf = (char const *__bidi_indexable) name; in pf_anchor_setup() local 487 if (!namebuf[0]) { in pf_anchor_setup() 491 if (namebuf[0] == '/') { in pf_anchor_setup() 492 strbufcpy(path, MAXPATHLEN, namebuf + 1, name_len - 1); in pf_anchor_setup() 501 while (namebuf[0] == '.' && namebuf[1] == '.' && namebuf[2] == '/') { in pf_anchor_setup() 513 namebuf += 3; in pf_anchor_setup() 518 strbufcat(path, MAXPATHLEN, namebuf, name_len); in pf_anchor_setup()
|
| H A D | necp_client.c | 1860 (void) strlcpy(namebuf, "unknown", sizeof(namebuf)); in necp_process_defunct_list() 1861 proc_name(flow_defunct->proc_pid, namebuf, sizeof(namebuf)); in necp_process_defunct_list() 6546 char namebuf[MAXCOMLEN + 1]; in necp_request_tcp_netstats() local 6547 (void) strlcpy(namebuf, "unknown", sizeof(namebuf)); in necp_request_tcp_netstats() 6548 proc_name(client->proc_pid, namebuf, sizeof(namebuf)); in necp_request_tcp_netstats() 6722 char namebuf[MAXCOMLEN + 1]; in necp_request_udp_netstats() local 6723 (void) strlcpy(namebuf, "unknown", sizeof(namebuf)); in necp_request_udp_netstats() 6724 proc_name(client->proc_pid, namebuf, sizeof(namebuf)); in necp_request_udp_netstats() 6850 char namebuf[MAXCOMLEN + 1]; in necp_request_quic_netstats() local 6851 (void) strlcpy(namebuf, "unknown", sizeof(namebuf)); in necp_request_quic_netstats() [all …]
|
| H A D | if.c | 1813 char namebuf[IFNAMSIZ + 1]; in ifunit_common() local 1817 if (ifunit_extract(name, namebuf, sizeof(namebuf), &unit) < 0) { in ifunit_common() 1822 namebuf[sizeof(namebuf) - 1] = '\0'; in ifunit_common() 1833 if (strlcmp(namebuf, ifp->if_name, sizeof(namebuf))) { in ifunit_common()
|
| /xnu-11215/tests/skywalk/ |
| H A D | skywalk_test_common.h | 163 sktc_feth_name_for_unit(char * namebuf, size_t namebuf_size, int unit) in sktc_feth_name_for_unit() argument 165 snprintf(namebuf, namebuf_size, FETH_FORMAT, unit); in sktc_feth_name_for_unit() 205 sktc_rd_name_for_unit(char * namebuf, size_t namebuf_size, int unit) in sktc_rd_name_for_unit() argument 207 snprintf(namebuf, namebuf_size, RD_FORMAT, unit); in sktc_rd_name_for_unit()
|
| /xnu-11215/bsd/netinet/ |
| H A D | ip_output.c | 2328 char namebuf[IFNAMSIZ + 1] = {}; in ip_ctloutput() local 2330 error = sooptcopyin_bindtodevice(sopt, namebuf, sizeof(namebuf)); in ip_ctloutput() 2334 namebuf[IFNAMSIZ] = 0; in ip_ctloutput() 2336 …error = inp_bindtodevice(inp, __unsafe_null_terminated_from_indexable(namebuf, namebuf + IFNAMSIZ)… in ip_ctloutput() 2631 char namebuf[IFNAMSIZ + 1] = {}; in ip_ctloutput() local 2634 strlcpy(namebuf, inp->inp_boundifp->if_xname, IFNAMSIZ); in ip_ctloutput() 2636 error = sooptcopyout(sopt, &namebuf, IFNAMSIZ); in ip_ctloutput()
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_credential.c | 2479 char *namebuf = NULL; in kauth_cred_cache_lookup() local 2494 namebuf = dst; in kauth_cred_cache_lookup() 2495 *namebuf = '\0'; in kauth_cred_cache_lookup() 2500 error = kauth_identity_find_uid(*(uid_t *)src, &ki, namebuf); in kauth_cred_cache_lookup() 2503 error = kauth_identity_find_gid(*(gid_t *)src, &ki, namebuf); in kauth_cred_cache_lookup() 2506 error = kauth_identity_find_guid((guid_t *)src, &ki, namebuf); in kauth_cred_cache_lookup() 2509 error = kauth_identity_find_ntsid((ntsid_t *)src, &ki, namebuf); in kauth_cred_cache_lookup()
|
| H A D | kern_prot.c | 1580 return copyout((caddr_t)buffer, uap->namebuf, uap->namelen); in getlogin() 1627 error = copyinstr(uap->namebuf, in setlogin()
|
| /xnu-11215/bsd/netinet6/ |
| H A D | ip6_output.c | 3080 char namebuf[IFNAMSIZ + 1] = {}; in ip6_ctloutput() local 3084 error = sooptcopyin_bindtodevice(sopt, namebuf, sizeof(namebuf)); in ip6_ctloutput() 3088 namebuf[IFNAMSIZ] = 0; in ip6_ctloutput() 3090 error = inp_bindtodevice(in6p, __unsafe_null_terminated_from_indexable(namebuf)); in ip6_ctloutput() 3095 strlcpy(namebuf, in6p->inp_boundifp->if_xname, IFNAMSIZ); in ip6_ctloutput() 3097 error = sooptcopyout(sopt, &namebuf, IFNAMSIZ); in ip6_ctloutput()
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_attrlist.c | 3729 caddr_t namebuf, vfs_context_t ctx) in get_error_attributes() argument 3771 namelen = strlen(namebuf); in get_error_attributes() 3821 attrlist_pack_string(&ab, namebuf, namelen); in get_error_attributes()
|
| H A D | vfs_syscalls.c | 13713 if (uap->namebuf != 0 && uap->bufsize > 0) { in listxattr() 13716 uio_addiov(auio, uap->namebuf, uap->bufsize); in listxattr() 13756 if (uap->namebuf != 0 && uap->bufsize > 0) { in flistxattr() 13759 uio_addiov(auio, uap->namebuf, uap->bufsize); in flistxattr()
|