Home
last modified time | relevance | path

Searched refs:memcmp (Results 1 – 25 of 98) sorted by relevance

1234

/xnu-11215/bsd/kern/
H A Dbsd_stubs.c112 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 Dposix_spawn_filtering.c60 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 Dcopyio_tests.c135 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 Dprng.c14 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 Ddisk_mount_conditioner.c53 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 Dexception_ports_info.c117 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 Darm_matrix.c274 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 Dutimensat.c42 if (memcmp(&sfs.f_fstypename[0], "apfs", strlen("apfs")) != 0) {
H A Dnetbsd_utimensat.c74 if (memcmp(&sfs.f_fstypename[0], "apfs", strlen("apfs")) != 0) { in chtmpdir()
/xnu-11215/tests/vm/
H A Dvm_memory_entry_parent_test.c106 …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 Duuid.c77 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 Dmemintrinsics.h67 return memcmp(a, b, sz); in __nosan_memcmp()
144 #define memcmp __asan_memcmp macro
H A Dkasan-test.c326 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 Dstrings.h67 int memcmp(const void *, const void *, size_t);
/xnu-11215/osfmk/kern/
H A Dext_paniclog.c526 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 Dskt_closekq.c60 assert(!memcmp(&kev, &refkev, sizeof(refkev))); in threadk()
H A Dskt_debug_verify.c127 assert(!memcmp((void *)prop.sp_buf_ptr, msg, sizeof(msg))); in skt_debug_verify_main()
/xnu-11215/libsyscall/wrappers/
H A D_libc_funcptr.c205 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.h96 int (*memcmp)(const void *s1, const void *s2, size_t n); member
/xnu-11215/SETUP/replacecontents/
H A Dreplacecontents.c111 if (0 == memcmp(oldcontent, newcontent, newcontentlength)) { in main()
/xnu-11215/pexpert/gen/
H A Dpe_gen.c168 if (memcmp(random_seed, prefix, prefix_len) != 0) { in PE_get_random_seed()
/xnu-11215/iokit/Kernel/
H A DIONVRAMCHRPHandler.cpp223 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 Dzutil.h273 # define zmemcmp memcmp
/xnu-11215/libkern/libkern/c++/
H A DOSValueObject.h548 return memcmp(data, &value, getLength()) == 0; in isEqualTo()
/xnu-11215/bsd/netinet/
H A Dip_compat.h68 # define bcmp memcmp
668 # define bcmp(a, b, c) memcmp(a,b,c)

1234