| /xnu-11417.121.6/tests/skywalk/ |
| H A D | skt_flowswitch_ns_reserve.c | 123 char buf0[32], buf1[32]; in skt_flowswitch_ns_bsd() local 135 inet_ntop(AF_INET, &saddr.sin.sin_addr, buf1, sizeof(buf1)); in skt_flowswitch_ns_bsd() 138 inet_ntop(AF_INET6, &saddr.sin6.sin6_addr, buf1, sizeof(buf1)); in skt_flowswitch_ns_bsd() 144 buf1); in skt_flowswitch_ns_bsd() 216 "(flow %s)\n", handles->netif_ifname, buf0, buf1, in skt_flowswitch_ns_bsd() 241 char buf1[32]; in skt_flowswitch_ns_sky() local 253 (void) inet_ntop(AF_INET, &saddr.sin.sin_addr, buf1, in skt_flowswitch_ns_sky() 254 sizeof(buf1)); in skt_flowswitch_ns_sky() 258 (void) inet_ntop(AF_INET6, &saddr.sin6.sin6_addr, buf1, in skt_flowswitch_ns_sky() 259 sizeof(buf1)); in skt_flowswitch_ns_sky() [all …]
|
| /xnu-11417.121.6/bsd/tests/ |
| H A D | copyio_tests.c | 64 char *buf1, *buf2; member 126 char *out_buf = data->buf1; in copyin_test() 166 char *out_buf = data->buf1; in copyout_to_kernel() 173 char *out_buf = data->buf1; in copyout_test() 214 char *in_buf = data->buf1; in copyinstr_from_kernel() 222 char *in_buf = data->buf1; in copyinstr_test() 499 data.buf1 = kalloc_data(copyio_test_buf_size, Z_WAITOK); in copyio_test() 501 if (!data.buf1 || !data.buf2) { in copyio_test() 568 kfree_data(data.buf1, copyio_test_buf_size); in copyio_test()
|
| /xnu-11417.121.6/iokit/Tests/ |
| H A D | TestIOMemoryDescriptor.cpp | 964 uint32_t * buf1; in IOMemoryDescriptorTest() 974 buf1 = (uint32_t *) map1->getVirtualAddress(); in IOMemoryDescriptorTest() 984 memset(buf1, 0x11, 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() 990 assert(0x11111111 == buf1[0]); in IOMemoryDescriptorTest() 993 kprintf("redir md2(0x%x) 0x%08x, 0x%08x\n", err, buf1[0], buf2[0]); in IOMemoryDescriptorTest() 995 assert(0x22222222 == buf1[0]); in IOMemoryDescriptorTest() 997 kprintf("redir md1(0x%x) 0x%08x, 0x%08x\n", err, buf1[0], buf2[0]); in IOMemoryDescriptorTest() 998 assert(0x11111111 == buf1[0]); in IOMemoryDescriptorTest()
|
| /xnu-11417.121.6/doc/primitives/ |
| H A D | string-handling.md | 225 char buf1[10]; 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.121.6/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.121.6/bsd/net/ |
| H A D | nat464_utils.c | 716 char buf1[MAX_IPv4_STR_LEN], buf2[MAX_IPv4_STR_LEN]; in nat464_translate_64() local 720 inet_ntop(AF_INET, (void *)&ip4->ip_src, buf1, sizeof(buf1)), in nat464_translate_64() 766 char buf1[MAX_IPv6_STR_LEN], buf2[MAX_IPv6_STR_LEN]; in nat464_translate_46() local 770 inet_ntop(AF_INET6, (void *)&ip6->ip6_src, buf1, sizeof(buf1)), in nat464_translate_46()
|