| /xnu-11417.101.15/tests/ |
| H A D | test_strings.c | 282 char buf2[32] = "world, hello"; variable 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"); 290 T_ASSERT_LT(strbufcasecmp(buf, buf2), 0, "strbufcasecmp two arguments"); 291 …T_ASSERT_LT(strbufcasecmp(buf, sizeof(buf), buf2, sizeof(buf2)), 0, "strbufcasecmp four arguments"… 293 T_ASSERT_NE(strbufcpy(buf, buf2), NULL, "strbufcpy two arguments"); 294 T_ASSERT_NE(strbufcpy(buf, sizeof(buf), buf2, sizeof(buf2)), NULL, "strbufcpy four arguments"); 296 T_ASSERT_NE(strbufcat(buf, buf2), NULL, "strbufcat two arguments"); 297 T_ASSERT_NE(strbufcat(buf, sizeof(buf), buf2, sizeof(buf2)), NULL, "strbufcat four arguments");
|
| /xnu-11417.101.15/bsd/net/ |
| H A D | nat464_utils.c | 561 char buf2[MAX_IPv6_STR_LEN]; in nat464_translate_icmp_ip() local 565 inet_ntop(AF_INET6, (void *)&ip6->ip6_src, buf2, sizeof(buf2)), in nat464_translate_icmp_ip() 566 inet_ntop(AF_INET6, (void *)&ip6->ip6_dst, buf2, sizeof(buf2)))); in nat464_translate_icmp_ip() 710 char buf1[MAX_IPv4_STR_LEN], buf2[MAX_IPv4_STR_LEN]; in nat464_translate_64() local 715 inet_ntop(AF_INET, (void *)&ip4->ip_dst, buf2, sizeof(buf2)))); in nat464_translate_64() 760 char buf1[MAX_IPv6_STR_LEN], buf2[MAX_IPv6_STR_LEN]; in nat464_translate_46() local 765 inet_ntop(AF_INET6, (void *)&ip6->ip6_dst, buf2, sizeof(buf2)))); in nat464_translate_46()
|
| /xnu-11417.101.15/iokit/Tests/ |
| H A D | TestIOMemoryDescriptor.cpp | 965 uint32_t * buf2; in IOMemoryDescriptorTest() 982 buf2 = (uint32_t *) map2->getVirtualAddress(); in IOMemoryDescriptorTest() 985 memset(buf2, 0x22, 64 * 1024L); in IOMemoryDescriptorTest() 987 kprintf("md1 %p, map1 %p, buf2 %p; md2 %p, map2 %p, buf2 %p\n", md1, map1, buf1, md2, map2, buf2); in IOMemoryDescriptorTest() 989 kprintf("no redir 0x%08x, 0x%08x\n", buf1[0], buf2[0]); in IOMemoryDescriptorTest() 991 assert(0x22222222 == buf2[0]); in IOMemoryDescriptorTest() 993 kprintf("redir md2(0x%x) 0x%08x, 0x%08x\n", err, buf1[0], buf2[0]); in IOMemoryDescriptorTest() 994 assert(0x11111111 == buf2[0]); in IOMemoryDescriptorTest() 997 kprintf("redir md1(0x%x) 0x%08x, 0x%08x\n", err, buf1[0], buf2[0]); in IOMemoryDescriptorTest() 999 assert(0x22222222 == buf2[0]); in IOMemoryDescriptorTest()
|
| /xnu-11417.101.15/bsd/tests/ |
| H A D | copyio_tests.c | 64 char *buf1, *buf2; member 119 char *in_buf = data->buf2; in copyin_from_kernel() 127 char *in_buf = data->buf2; in copyin_test() 500 data.buf2 = kalloc_data(copyio_test_buf_size, Z_WAITOK); in copyio_test() 501 if (!data.buf1 || !data.buf2) { in copyio_test() 567 kfree_data(data.buf2, copyio_test_buf_size); in copyio_test()
|
| /xnu-11417.101.15/osfmk/corecrypto/ |
| H A D | cc_internal.h | 57 int cc_memcmp(const void *buf1, const void *buf2, size_t len); 59 #define cc_memcmp(buf1, buf2, len) memcmp(buf1, buf2, len) argument
|
| /xnu-11417.101.15/doc/primitives/ |
| H A D | string-handling.md | 226 char buf2[16]; 230 /* how do I test whether buf1 and buf2 contain the same string? */ 231 if (strcmp(f->buf1, f->buf2) == 0) { /* ... */ } 232 if (strncmp(f->buf1, f->buf2, sizeof(f->buf1)) == 0) { /* ... */ } 233 if (strlcmp(f->buf1, f->buf2, sizeof(f->buf1)) == 0) { /* ... */ } 234 if (strbufcmp(f->buf1, f->buf2) == 0) { /* ... */ }
|
| /xnu-11417.101.15/bsd/netinet/ |
| H A D | udp_usrreq.c | 690 char buf2[MAX_IPv4_STR_LEN]; in udp_input() local 698 &ip->ip_src, buf2, sizeof(buf2)), in udp_input() 707 &ip->ip_src, buf2, sizeof(buf2)), in udp_input()
|
| H A D | in_arp.c | 2053 char buf2[3 * MAX_HW_LEN]; in arp_ip_handle_input() local 2058 sdl_addr_to_hex(sender_hw, buf2, (int)sizeof(buf2)), in arp_ip_handle_input()
|
| H A D | ip_input.c | 2906 char buf2[MAX_IPv4_STR_LEN]; in ip_dooptions() local 2917 buf2, sizeof(buf2))); in ip_dooptions()
|