| /xnu-11215/bsd/kern/ |
| H A D | bsd_stubs.c | 112 if (memcmp((const char *)devsw, (const char *)&nobdev, sizeof(struct bdevsw)) == 0) { in bdevsw_isfree() 123 if ((memcmp((const char *)devsw, (const char *)&nobdev, sizeof(struct bdevsw)) != 0)) { in bdevsw_isfree() 166 if ((memcmp((const char *)devsw, (const char *)bsw, sizeof(struct bdevsw)) != 0)) { in bdevsw_remove() 197 if (memcmp((const char *)devsw, (const char *)&nocdev, sizeof(struct cdevsw)) == 0) { in cdevsw_isfree() 208 if ((memcmp((const char *)devsw, (const char *)&nocdev, sizeof(struct cdevsw)) != 0)) { in cdevsw_isfree() 256 if ((memcmp((const char *)devsw, (const char *)csw, sizeof(struct cdevsw)) != 0)) { in cdevsw_remove() 297 if ((memcmp((const char *)devsw, (const char *)csw, sizeof(struct cdevsw)) != 0)) { in cdevsw_setkqueueok()
|
| /xnu-11215/libsyscall/wrappers/spawn/ |
| H A D | posix_spawn_filtering.c | 60 if (p_len >= var_len && memcmp(*p, var, var_len) == 0 && in _simple_getenv() 180 if (memcmp(line, "binary_name:", strlen("binary_name:")) == 0) { in evaluate_rules() 185 } else if (memcmp(line, "path_start:", strlen("path_start:")) == 0) { in evaluate_rules() 190 } else if (memcmp(line, "add_env:", strlen("add_env:")) == 0) { in evaluate_rules() 202 } else if (memcmp(line, "binpref:", strlen("binpref:")) == 0) { in evaluate_rules() 208 } else if (memcmp(line, "alt_rosetta:", strlen("alt_rosetta:")) == 0) { in evaluate_rules() 213 } else if (memcmp(line, "has_sec_transition:", strlen("has_sec_transition:")) == 0) { in evaluate_rules()
|
| /xnu-11215/bsd/tests/ |
| H A D | copyio_tests.c | 135 int cmp = memcmp(out_buf, in_buf, copyio_test_buf_size); in copyin_test() 151 cmp = memcmp(data->kern_addr, in_buf, copyio_test_buf_size); in copyin_test() 182 int cmp = memcmp(data->kern_addr, out_buf, copyio_test_buf_size); in copyout_test() 199 cmp = memcmp(out_buf, data->kern_addr, copyio_test_buf_size); in copyout_test() 233 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test() 241 cmp = memcmp(in_buf, copyio_test_string, trunc_size); in copyinstr_test() 243 cmp = memcmp(in_buf, copyio_test_string, strlen(copyio_test_string)); in copyinstr_test() 262 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test() 302 cmp = memcmp(data->kern_addr, copyio_test_string, sizeof(copyio_test_string)); in copyoutstr_test() 313 cmp = memcmp(data->kern_addr, copyio_test_string, sizeof(copyio_test_string)); in copyoutstr_test() [all …]
|
| /xnu-11215/tests/ |
| H A D | prng.c | 14 return memcmp(a, b, 16); in cmp() 25 T_ASSERT_NE(memcmp(buf, buf + BLOCK_SIZE, BLOCK_SIZE), 0, "duplicate block"); in prng_sanitycheck()
|
| H A D | disk_mount_conditioner.c | 53 err = memcmp(&info, &expected_info, sizeof(info)); 89 err = memcmp(&info, &expected_info, sizeof(info)); 270 err = memcmp(&info, &expected_info, sizeof(info)); 370 err = memcmp(&info, &expected_info, sizeof(info)); 503 err = memcmp(buf, expected, sizeof(buf)); in time_for_read()
|
| H A D | exception_ports_info.c | 117 kr = memcmp(masks, masks2, count * sizeof(exception_mask_t)); 120 kr = memcmp(behaviors, behaviors2, count * sizeof(exception_behavior_t)); 123 kr = memcmp(flavors, flavors, count * sizeof(thread_state_flavor_t));
|
| H A D | arm_matrix.c | 274 if (memcmp(d1, d2, size)) { in active_context_switch_thread() 350 int cmp = memcmp(d, cpu_d[cpuid], size); in test_thread_migration()
|
| H A D | utimensat.c | 42 if (memcmp(&sfs.f_fstypename[0], "apfs", strlen("apfs")) != 0) {
|
| H A D | netbsd_utimensat.c | 74 if (memcmp(&sfs.f_fstypename[0], "apfs", strlen("apfs")) != 0) { in chtmpdir()
|
| /xnu-11215/tests/vm/ |
| H A D | vm_memory_entry_parent_test.c | 106 …T_ASSERT_EQ(0, memcmp((void *)mapped_addr, (void *) (src_addr + parent_offset), child_entry_size),… 108 …T_ASSERT_EQ(0, memcmp((void *)mapped_addr, (void *) (src_addr + (parent_offset + child_offset)), c… 111 …T_ASSERT_EQ(0, memcmp((void *)mapped_addr, (void *) src_addr, child_entry_size), "Mapped values eq…
|
| /xnu-11215/libkern/uuid/ |
| H A D | uuid.c | 77 return memcmp(uu1, uu2, sizeof(uuid_t)); in uuid_compare() 138 return !memcmp(uu, UUID_NULL, sizeof(uuid_t)); in uuid_is_null()
|
| /xnu-11215/san/memory/ |
| H A D | memintrinsics.h | 67 return memcmp(a, b, sz); in __nosan_memcmp() 144 #define memcmp __asan_memcmp macro
|
| H A D | kasan-test.c | 326 memcmp(a1, a2, STACK_ARRAY_SZ); in test_memcmp() 327 memcmp(a1, a2 + 1, STACK_ARRAY_SZ); in test_memcmp() 333 memcmp(a1, a2, STACK_ARRAY_SZ + 1); in test_memcmp()
|
| /xnu-11215/libsyscall/wrappers/string/ |
| H A D | strings.h | 67 int memcmp(const void *, const void *, size_t);
|
| /xnu-11215/osfmk/kern/ |
| H A D | ext_paniclog.c | 526 if (memcmp(buf_ptr, data, data_len)) { in ext_paniclog_multiple_handles_test() 613 if (memcmp(uuid_cmp, uuid, 16)) { in ext_paniclog_write_panicdata_test() 651 if (memcmp(data_cmp, data1, data_len)) { in ext_paniclog_write_panicdata_test() 778 if (memcmp(handle->buf_addr, data1, 8)) { in ext_paniclog_insert_data_test() 789 if (memcmp(handle->buf_addr, cmp_data, 16)) { in ext_paniclog_insert_data_test()
|
| /xnu-11215/tests/skywalk/ |
| H A D | skt_closekq.c | 60 assert(!memcmp(&kev, &refkev, sizeof(refkev))); in threadk()
|
| H A D | skt_debug_verify.c | 127 assert(!memcmp((void *)prop.sp_buf_ptr, msg, sizeof(msg))); in skt_debug_verify_main()
|
| /xnu-11215/libsyscall/wrappers/ |
| H A D | _libc_funcptr.c | 205 memcmp(const void *s1, const void *s2, size_t n) in memcmp() function 207 return _libkernel_string_functions->memcmp(s1, s2, n); in memcmp()
|
| H A D | _libkernel_init.h | 96 int (*memcmp)(const void *s1, const void *s2, size_t n); member
|
| /xnu-11215/SETUP/replacecontents/ |
| H A D | replacecontents.c | 111 if (0 == memcmp(oldcontent, newcontent, newcontentlength)) { in main()
|
| /xnu-11215/pexpert/gen/ |
| H A D | pe_gen.c | 168 if (memcmp(random_seed, prefix, prefix_len) != 0) { in PE_get_random_seed()
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IONVRAMCHRPHandler.cpp | 223 if (memcmp(header_string, chrp_header->name, strlen(header_string)) == 0) { in nvram_validate_header_v1v2() 458 common_partition = (memcmp(header->name, common_v1_name, sizeof(header->name)) == 0) || in unserializeImage() 459 (memcmp(header->name, common_v2_name, sizeof(header->name)) == 0); in unserializeImage() 460 system_partition = (memcmp(header->name, system_v1_name, sizeof(header->name)) == 0) || in unserializeImage() 461 (memcmp(header->name, system_v2_name, sizeof(header->name)) == 0); in unserializeImage()
|
| /xnu-11215/libkern/zlib/ |
| H A D | zutil.h | 273 # define zmemcmp memcmp
|
| /xnu-11215/libkern/libkern/c++/ |
| H A D | OSValueObject.h | 548 return memcmp(data, &value, getLength()) == 0; in isEqualTo()
|
| /xnu-11215/bsd/netinet/ |
| H A D | ip_compat.h | 68 # define bcmp memcmp 668 # define bcmp(a, b, c) memcmp(a,b,c)
|