Home
last modified time | relevance | path

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

/xnu-10063.101.15/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()
563 kfree_data(data.buf1, copyio_test_buf_size); in copyio_test()
/xnu-10063.101.15/doc/primitives/
H A Dstring-handling.md142 char buf1[10];
147 /* how do I test whether buf1 and buf2 contain the same string? */
148 if (strcmp(f->buf1, f->buf2) == 0) { /* ... */ }
149 if (strncmp(f->buf1, f->buf2, sizeof(f->buf1)) == 0) { /* ... */ }
150 if (strlcmp(f->buf1, f->buf2, sizeof(f->buf1)) == 0) { /* ... */ }
151 if (strbufcmp(f->buf1, f->buf2) == 0) { /* ... */ }
/xnu-10063.101.15/iokit/Tests/
H A DTestIOMemoryDescriptor.cpp961 uint32_t * buf1; in IOMemoryDescriptorTest()
971 buf1 = (uint32_t *) map1->getVirtualAddress(); in IOMemoryDescriptorTest()
981 memset(buf1, 0x11, 64 * 1024L); in IOMemoryDescriptorTest()
984 kprintf("md1 %p, map1 %p, buf2 %p; md2 %p, map2 %p, buf2 %p\n", md1, map1, buf1, md2, map2, buf2); in IOMemoryDescriptorTest()
986 kprintf("no redir 0x%08x, 0x%08x\n", buf1[0], buf2[0]); in IOMemoryDescriptorTest()
987 assert(0x11111111 == buf1[0]); in IOMemoryDescriptorTest()
990 kprintf("redir md2(0x%x) 0x%08x, 0x%08x\n", err, buf1[0], buf2[0]); in IOMemoryDescriptorTest()
992 assert(0x22222222 == buf1[0]); in IOMemoryDescriptorTest()
994 kprintf("redir md1(0x%x) 0x%08x, 0x%08x\n", err, buf1[0], buf2[0]); in IOMemoryDescriptorTest()
995 assert(0x11111111 == buf1[0]); in IOMemoryDescriptorTest()
/xnu-10063.101.15/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-10063.101.15/bsd/net/
H A Dnat464_utils.c704 char buf1[MAX_IPv4_STR_LEN], buf2[MAX_IPv4_STR_LEN]; in nat464_translate_64() local
708 inet_ntop(AF_INET, (void *)&ip4->ip_src, buf1, sizeof(buf1)), in nat464_translate_64()
754 char buf1[MAX_IPv6_STR_LEN], buf2[MAX_IPv6_STR_LEN]; in nat464_translate_46() local
758 inet_ntop(AF_INET6, (void *)&ip6->ip6_src, buf1, sizeof(buf1)), in nat464_translate_46()