Home
last modified time | relevance | path

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

/xnu-11417.121.6/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-11417.121.6/bsd/tests/
H A Dcopyio_tests.c64 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 DTestIOMemoryDescriptor.cpp964 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 Dstring-handling.md225 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 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-11417.121.6/bsd/net/
H A Dnat464_utils.c716 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()