Home
last modified time | relevance | path

Searched refs:buf1 (Results 1 – 6 of 6) sorted by relevance

/xnu-11215.61.5/tests/skywalk/
H A Dskt_flowswitch_ns_reserve.c123 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-11215.61.5/bsd/tests/
H A Dcopyio_tests.c63 char *buf1, *buf2; member
125 char *out_buf = data->buf1; in copyin_test()
165 char *out_buf = data->buf1; in copyout_to_kernel()
172 char *out_buf = data->buf1; in copyout_test()
213 char *in_buf = data->buf1; in copyinstr_from_kernel()
221 char *in_buf = data->buf1; in copyinstr_test()
498 data.buf1 = kalloc_data(copyio_test_buf_size, Z_WAITOK); in copyio_test()
500 if (!data.buf1 || !data.buf2) { in copyio_test()
567 kfree_data(data.buf1, copyio_test_buf_size); in copyio_test()
/xnu-11215.61.5/doc/primitives/
H A Dstring-handling.md218 char buf1[10];
223 /* how do I test whether buf1 and buf2 contain the same string? */
224 if (strcmp(f->buf1, f->buf2) == 0) { /* ... */ }
225 if (strncmp(f->buf1, f->buf2, sizeof(f->buf1)) == 0) { /* ... */ }
226 if (strlcmp(f->buf1, f->buf2, sizeof(f->buf1)) == 0) { /* ... */ }
227 if (strbufcmp(f->buf1, f->buf2) == 0) { /* ... */ }
/xnu-11215.61.5/iokit/Tests/
H A DTestIOMemoryDescriptor.cpp963 uint32_t * buf1; in IOMemoryDescriptorTest()
973 buf1 = (uint32_t *) map1->getVirtualAddress(); in IOMemoryDescriptorTest()
983 memset(buf1, 0x11, 64 * 1024L); in IOMemoryDescriptorTest()
986 kprintf("md1 %p, map1 %p, buf2 %p; md2 %p, map2 %p, buf2 %p\n", md1, map1, buf1, md2, map2, buf2); in IOMemoryDescriptorTest()
988 kprintf("no redir 0x%08x, 0x%08x\n", buf1[0], buf2[0]); in IOMemoryDescriptorTest()
989 assert(0x11111111 == buf1[0]); in IOMemoryDescriptorTest()
992 kprintf("redir md2(0x%x) 0x%08x, 0x%08x\n", err, buf1[0], buf2[0]); in IOMemoryDescriptorTest()
994 assert(0x22222222 == buf1[0]); in IOMemoryDescriptorTest()
996 kprintf("redir md1(0x%x) 0x%08x, 0x%08x\n", err, buf1[0], buf2[0]); in IOMemoryDescriptorTest()
997 assert(0x11111111 == buf1[0]); in IOMemoryDescriptorTest()
/xnu-11215.61.5/osfmk/corecrypto/
H A Dcc_internal.h57 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-11215.61.5/bsd/net/
H A Dnat464_utils.c710 char buf1[MAX_IPv4_STR_LEN], buf2[MAX_IPv4_STR_LEN]; in nat464_translate_64() local
714 inet_ntop(AF_INET, (void *)&ip4->ip_src, buf1, sizeof(buf1)), in nat464_translate_64()
760 char buf1[MAX_IPv6_STR_LEN], buf2[MAX_IPv6_STR_LEN]; in nat464_translate_46() local
764 inet_ntop(AF_INET6, (void *)&ip6->ip6_src, buf1, sizeof(buf1)), in nat464_translate_46()