Home
last modified time | relevance | path

Searched refs:namebuf (Results 1 – 11 of 11) sorted by relevance

/xnu-11215/tests/vfs/
H A Do_search.c50 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 Dpf_ruleset.c482 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 Dnecp_client.c1860 (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 Dif.c1813 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 Dskywalk_test_common.h163 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 Dip_output.c2328 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 Dkern_credential.c2479 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 Dkern_prot.c1580 return copyout((caddr_t)buffer, uap->namebuf, uap->namelen); in getlogin()
1627 error = copyinstr(uap->namebuf, in setlogin()
/xnu-11215/bsd/netinet6/
H A Dip6_output.c3080 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 Dvfs_attrlist.c3729 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 Dvfs_syscalls.c13713 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()