Searched refs:memcmp (Results 1 - 25 of 33) sorted by relevance

12

/xnu-2422.115.4/tools/tests/xnu_quick_test/
H A D32bit_inode_tests.c61 if ( memcmp( &my_statfs_buf.f_fstypename[0], "ufs", 3 ) == 0 ) {
119 memcmp( &my_dirent_p->d_name[0], my_file_namep, my_dirent_p->d_namlen ) == 0 ) {
190 if ( memcmp( &my_statfsp->f_fstypename[0], "ufs", 3 ) == 0 ) {
203 if ( memcmp( &my_statfsp->f_fstypename[0], "hfs", 3 ) == 0 ||
204 memcmp( &my_statfsp->f_fstypename[0], "ufs", 3 ) == 0 ||
205 memcmp( &my_statfsp->f_fstypename[0], "devfs", 5 ) == 0 ||
206 memcmp( &my_statfsp->f_fstypename[0], "volfs", 5 ) == 0 ) {
247 if ( !(memcmp( &my_statfsp->f_fstypename[0], "hfs", 3 ) == 0 ||
248 memcmp( &my_statfsp->f_fstypename[0], "ufs", 3 ) == 0) ) {
H A Dmachvm_tests.c75 if (0 != memcmp((char *)newdata, regionbuffers[5] + (regionsizes[5]-5)*pagesize,
105 if (0 != memcmp((char *)readlist[0].address, regionbuffers[5] + 10*pagesize,
114 if (0 != memcmp((char *)readlist[1].address, regionbuffers[5] + 10*pagesize + regionsizes[3]*pagesize,
148 if (0 != memcmp(regionbuffers[1], regionbuffers[3],
H A Dtests.c1368 if ( memcmp( &my_statfsp->f_fstypename[0], "ufs", 3 ) == 0 ) {
1381 if ( memcmp( &my_statfsp->f_fstypename[0], "hfs", 3 ) == 0 ||
1382 memcmp( &my_statfsp->f_fstypename[0], "ufs", 3 ) == 0 ||
1383 memcmp( &my_statfsp->f_fstypename[0], "devfs", 5 ) == 0 ||
1384 memcmp( &my_statfsp->f_fstypename[0], "volfs", 5 ) == 0 ) {
1417 if ( memcmp( &my_statfs64p->f_fstypename[0], "hfs", 3 ) == 0 ||
1418 memcmp( &my_statfs64p->f_fstypename[0], "ufs", 3 ) == 0 ||
1419 memcmp( &my_statfs64p->f_fstypename[0], "devfs", 5 ) == 0 ||
1420 memcmp( &my_statfs64p->f_fstypename[0], "volfs", 5 ) == 0 ) {
1463 if ( !(memcmp(
[all...]
/xnu-2422.115.4/bsd/kern/
H A Dbsd_stubs.c139 if(memcmp((char *)devsw,
147 (memcmp((char *)devsw,
185 (memcmp((char *)devsw,
215 if(memcmp((char *)devsw,
223 (memcmp((char *)devsw,
266 (memcmp((char *)devsw,
304 (memcmp((char *)devsw,
H A Dproc_uuid_policy.c169 if (0 == memcmp(searchentry->uuid, uuid, sizeof(uuid_t))) {
248 if (0 == memcmp(searchentry->uuid, uuid, sizeof(uuid_t))) {
H A Dubc_subr.c606 } else if (entitlements == NULL && memcmp(embedded_hash, sha1_zero, SHA1_RESULTLEN) != 0) {
613 if (memcmp(computed_hash, embedded_hash, SHA1_RESULTLEN) != 0)
H A Dkern_newsysctl.c297 if (!memcmp(&oidp->oid_number, &old_oidp->oid_number, (offsetof(struct sysctl_oid, oid_descr)-offsetof(struct sysctl_oid, oid_number)))) {
H A Ddecmpfs.c136 if (memcmp(alloc, alloc2, sizeof(*alloc)) != 0) {
/xnu-2422.115.4/osfmk/libsa/
H A Dstring.h60 extern int memcmp(const void *, const void *, size_t);
/xnu-2422.115.4/libkern/uuid/
H A Duuid.c78 return memcmp(uu1, uu2, sizeof(uuid_t));
127 return !memcmp(uu, UUID_NULL, sizeof(uuid_t));
/xnu-2422.115.4/bsd/net/
H A Dif_utun_crypto_dtls.c442 memcmp(utun_crypto_framer_state_dtls_in(cur_framer).in_pattern,
446 memcmp(utun_crypto_framer_state_dtls_in(cur_framer).in_pattern_mask,
668 memcmp(utun_crypto_framer_state_dtls_out(framer).out_pattern,
800 memcmp(utun_crypto_framer_state_dtls_out(framer).out_pattern,
H A Dnetsrc.c219 if (memcmp(&ia->ia_addr.sin6_addr, in6, sizeof(*in6)) == 0) {
H A Dif_bridge.c1262 if (memcmp(sc->sc_defaddr,
2243 !memcmp(IF_LLADDR(sc->sc_ifp), sc->sc_defaddr, ETHER_ADDR_LEN)) {
4087 if (memcmp(eh->ether_dhost, bstp_etheraddr,
4211 if (memcmp(IF_LLADDR((iface)), eh->ether_dhost, \
4232 if (memcmp(IF_LLADDR((iface)), eh->ether_shost, \
4246 if (memcmp(eh->ether_dhost, IF_LLADDR(bifp),
4296 if (memcmp(eh->ether_dhost, IF_LLADDR(ifp), ETHER_ADDR_LEN) == 0) {
H A Dif_llreach.c213 * an indication of order, memcmp() is, and is an ISO C99 requirement.
218 return (memcmp(&a->lr_key, &b->lr_key, sizeof (a->lr_key)));
H A Dpfvar.h573 memcmp((a)->fp_class_nm, (b)->fp_class_nm, PF_OSFP_LEN) == 0 && \
574 memcmp((a)->fp_version_nm, (b)->fp_version_nm, PF_OSFP_LEN) == 0 && \
575 memcmp((a)->fp_subtype_nm, (b)->fp_subtype_nm, PF_OSFP_LEN) == 0)
/xnu-2422.115.4/libkern/zlib/
H A Dzutil.h273 # define zmemcmp memcmp
/xnu-2422.115.4/osfmk/i386/
H A Duser_ldt.c131 if (!memcmp(&old_ldt->ldt[i++], &null_ldt, sizeof(null_ldt))) {
/xnu-2422.115.4/bsd/netinet/
H A Dip_compat.h66 # define bcmp memcmp
666 # define bcmp(a,b,c) memcmp(a,b,c)
/xnu-2422.115.4/osfmk/vm/
H A Dvm_compressor_backing_store.c315 if (memcmp((void*)addr, (void*)dup_addr, PAGE_SIZE_64)) {
321 if (memcmp((void*)(addr + PAGE_SIZE_64), (void*)(dup_addr + PAGE_SIZE_64), PAGE_SIZE_64)) {
327 if (memcmp((void*)(addr + (2 * PAGE_SIZE_64)), (void*)(dup_addr + (2 * PAGE_SIZE_64)), PAGE_SIZE_64)) {
333 if (memcmp((void*)(addr + (3 * PAGE_SIZE_64)), (void*)(dup_addr + (3 * PAGE_SIZE_64)), PAGE_SIZE_64)) {
/xnu-2422.115.4/bsd/vfs/
H A Dvfs_cache.c1415 if (memcmp(ncp->nc_name, cnp->cn_nameptr, namelen) == 0 && ncp->nc_name[namelen] == 0)
1502 if (memcmp(ncp->nc_name, cnp->cn_nameptr, namelen) == 0 && ncp->nc_name[namelen] == 0)
2184 if (memcmp(entry->str, name, len) == 0 && entry->str[len] == 0) {
/xnu-2422.115.4/bsd/dev/random/
H A Drandomdev.c394 if (memcmp(kKnownAnswer, g_random_data, kBlockSize) != 0)
/xnu-2422.115.4/osfmk/x86_64/
H A Dloose_ends.c481 memcmp(const void *s1, const void *s2, size_t n) function
/xnu-2422.115.4/bsd/netinet6/
H A Din6.h287 * does not supply memcmp(). For userland memcmp() is preferred as it is
297 (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof (struct in6_addr)) \
H A Dnd6_prproxy.c1498 * an indication of order, memcmp() is, and is an ISO C99 requirement.
1504 return (memcmp(&a->soltgt_key, &b->soltgt_key, sizeof (a->soltgt_key)));
/xnu-2422.115.4/tools/tests/superpages/
H A Dtestsp.c538 if (memcmp((void*)(uintptr_t)addr1, (void*)(uintptr_t)addr2, bytes)) {

Completed in 99 milliseconds

12