Home
last modified time | relevance | path

Searched refs:strbufcmp (Results 1 – 17 of 17) sorted by relevance

/xnu-11215.61.5/doc/primitives/
H A Dstring-handling.md29 | __indexable secnd | strlcmp(secnd, first, n2) | strbufcmp(first, n1, secnd, n2) |
107 * `strbufcmp(a, alen, b, len)`: like `strcmp`;
119 in lieu of a pointer+length pair: `strbuflen(array)`, `strbufcmp(a, b)`,
227 if (strbufcmp(f->buf1, f->buf2) == 0) { /* ... */ }
232 `strbufcmp` could be the only one that builds. If you do not have the privilege
241 `strbufcmp`, and you should prefer `strbufcmp`.
246 `strbufcmp`, `strlcmp` or even `strcmp` over `strncmp` (depending on whether
/xnu-11215.61.5/osfmk/libsa/
H A Dstring.h598 extern int strbufcmp(const char *__counted_by(s1len)s1, size_t s1len, const char *__counted_by(s2le…
602 strbufcmp( in strbufcmp() function
622 (strbufcmp)((A), sizeof(A), (B), sizeof(B)); \
624 #define strbufcmp_4 (strbufcmp)
625 #define strbufcmp(...) __xnu_argc_overload(strbufcmp, __VA_ARGS__) macro
/xnu-11215.61.5/tests/
H A Dtest_strings.c43 T_DECL(strbufcmp, "strbufcmp") {
287 T_ASSERT_LT(strbufcmp(buf, buf2), 0, "strbufcmp two arguments");
288 T_ASSERT_LT(strbufcmp(buf, sizeof(buf), buf2, sizeof(buf2)), 0, "strbufcmp four arguments");
/xnu-11215.61.5/bsd/net/
H A Dpf_ruleset.c139 int c = strbufcmp(a->path, b->path); in pf_anchor_compare()
564 if (strbufcmp(a, strbuflen(a, MAXPATHLEN), r->anchor->path, strbuflen(a, MAXPATHLEN))) { in pf_anchor_copyout()
H A Dpf_ioctl.c2569 if (strbufcmp(rule->owner, pr->rule.owner)) { in pf_delete_rule_by_ticket()
2576 ((strbufcmp(ruleset->anchor->owner, "")) == 0) && in pf_delete_rule_by_ticket()
2670 ((strbufcmp(rule->owner, "")) == 0)) { in pf_delete_rule_by_owner()
3276 ((strbufcmp(r->anchor->name, in pfioctl_ioc_rule()
3278 if (((strbufcmp(pr->rule.owner, in pfioctl_ioc_rule()
3280 ((strbufcmp(r->owner, "")) == 0)) { in pfioctl_ioc_rule()
3444 strbufcmp(psk->psk_ifname, s->kif->pfik_name)) { in pfioctl_ioc_state_kill()
3450 strbufcmp(psk->psk_ownername, s->rule.ptr->owner))) { in pfioctl_ioc_state_kill()
3486 strbufcmp(psk->psk_ifname, s->kif->pfik_name)) { in pfioctl_ioc_state_kill()
3492 strbufcmp(psk->psk_ownername, s->rule.ptr->owner))) { in pfioctl_ioc_state_kill()
H A Dpf_if.c628 return strbufcmp(p->pfik_name, q->pfik_name); in pfi_if_compare()
H A Dpf_table.c2025 if (strbufcmp(filter->pfrt_anchor, kt->pfrkt_anchor)) { in pfr_skip_table()
2220 if ((d = strbufcmp(p->pfrkt_name, q->pfrkt_name))) { in pfr_ktable_compare()
2223 return strbufcmp(p->pfrkt_anchor, q->pfrkt_anchor); in pfr_ktable_compare()
H A Dnecp_client.c2437strbufcmp(netagent_domain, NETAGENT_DOMAINSIZE, parameters->required_netagent_types[i].netagent_do… in necp_netagent_is_requested()
2439strbufcmp(netagent_type, NETAGENT_TYPESIZE, parameters->required_netagent_types[i].netagent_type, … in necp_netagent_is_requested()
2480strbufcmp(netagent_domain, NETAGENT_DOMAINSIZE, parameters->preferred_netagent_types[i].netagent_d… in necp_netagent_is_requested()
2482strbufcmp(netagent_type, NETAGENT_TYPESIZE, parameters->preferred_netagent_types[i].netagent_type,… in necp_netagent_is_requested()
2873 return strbufcmp(string1, string1_actual_length, string2, string2_actual_length) == 0; in necp_client_strings_are_equal()
4354 …if (strbufcmp(parsed_parameters->required_netagent_types[j].netagent_domain, sizeof(parsed_paramet… in necp_update_parsed_parameters()
4355strbufcmp(parsed_parameters->required_netagent_types[j].netagent_type, sizeof(parsed_parameters->r… in necp_update_parsed_parameters()
4396 strbufcmp(agent_domain2, NETAGENT_DOMAINSIZE, agent_domain1, NETAGENT_DOMAINSIZE) == 0) && in necp_agent_types_match()
4398 strbufcmp(agent_type2, NETAGENT_TYPESIZE, agent_type1, NETAGENT_TYPESIZE) == 0); in necp_agent_types_match()
H A Dif_fake.c3497 strbufcmp(sk_ll_prefix, FAKE_ETHER_NAME) == 0) { in feth_clone_create()
H A Dif.c761 if (strbufcmp(ifc->ifc_name, ifc->ifc_namelen, name, c_len) == 0) { in if_clone_lookup()
H A Dnecp.c9443strbufcmp(required_agent_type->netagent_domain, sizeof(required_agent_type->netagent_domain), kern… in necp_socket_check_policy()
9445strbufcmp(required_agent_type->netagent_type, sizeof(required_agent_type->netagent_type), kernel_p… in necp_socket_check_policy()
/xnu-11215.61.5/bsd/kern/
H A Dtracker.c297strbufcmp((char *)dst_domain_buffer, dst_domain_buffer_size, (char *)src_domain_buffer, src_domain… in copy_metadata()
310strbufcmp((char *)dst_domain_owner_buffer, dst_domain_owner_buffer_size, (char *)src_domain_owner_… in copy_metadata()
H A Duipc_usrreq.c1482 !strbufcmp(soun->sun_path, MDNSRESPONDER_PATH)) { in unp_connect()
/xnu-11215.61.5/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c987 if (strbufcmp(rif->rii_ifname, ntr->ntr_ifname) == 0) { in inet_traffic_rule_link()
1031 if (strbufcmp(rif->rii_ifname, ntr->ntr_ifname) == 0) { in inet_traffic_rule_unlink()
H A Dnexus_kern.c367 if (strbufcmp(nxprov1->nxdom_prov_name, sizeof(nxprov1->nxdom_prov_name), in nxdom_prov_add()
H A Dnexus.c1547 strbufcmp(nxdom_prov->nxdom_prov_name, sizeof(nxdom_prov->nxdom_prov_name), in nxprov_create()
/xnu-11215.61.5/bsd/skywalk/nexus/netif/
H A Dnx_netif.c370 strbufcmp(nxdom_prov_default[nxdom->nxdom_type]->nxdom_prov_name, in nx_netif_dom_init()
525 if (strbufcmp(nxdom_prov->nxdom_prov_name, in nx_netif_prov_params_adjust()
1347 compat = (strbufcmp(NX_DOM_PROV(nx)->nxdom_prov_name, in nx_netif_ctl_attach()