Home
last modified time | relevance | path

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

12345678910

/haiku/src/bin/mail_utils/
H A Dmail2mbox.cpp89 if (memcmp("From ", lineString, 5) != 0) in IsStartOfMailMessage()
106 if (memcmp(string, "Mon", 3) != 0 && memcmp(string, "Tue", 3) != 0 in IsStartOfMailMessage()
107 && memcmp(string, "Wed", 3) != 0 && memcmp(string, "Thu", 3) != 0 in IsStartOfMailMessage()
108 && memcmp(string, "Fri", 3) != 0 && memcmp(string, "Sat", 3) != 0 in IsStartOfMailMessage()
109 && memcmp(string, "Sun", 3) != 0) { in IsStartOfMailMessage()
120 if (memcmp(string, "Jan", 3) != 0 && memcmp(string, "Feb", 3) != 0 in IsStartOfMailMessage()
121 && memcmp(string, "Mar", 3) != 0 && memcmp(string, "Apr", 3) != 0 in IsStartOfMailMessage()
122 && memcmp(string, "May", 3) != 0 && memcmp(string, "Jun", 3) != 0 in IsStartOfMailMessage()
123 && memcmp(string, "Jul", 3) != 0 && memcmp(string, "Aug", 3) != 0 in IsStartOfMailMessage()
124 && memcmp(string, "Sep", 3) != 0 && memcmp(string, "Oct", 3) != 0 in IsStartOfMailMessage()
[all …]
H A Dmbox2mail.cpp136 if (memcmp ("From ", LineString, 5) != 0) in IsStartOfMailMessage()
151 if (memcmp (StringPntr, "Mon", 3) != 0 && in IsStartOfMailMessage()
152 memcmp (StringPntr, "Tue", 3) != 0 && in IsStartOfMailMessage()
153 memcmp (StringPntr, "Wed", 3) != 0 && in IsStartOfMailMessage()
154 memcmp (StringPntr, "Thu", 3) != 0 && in IsStartOfMailMessage()
155 memcmp (StringPntr, "Fri", 3) != 0 && in IsStartOfMailMessage()
156 memcmp (StringPntr, "Sat", 3) != 0 && in IsStartOfMailMessage()
157 memcmp (StringPntr, "Sun", 3) != 0) in IsStartOfMailMessage()
169 if (memcmp (StringPntr, "Jan", 3) != 0 && in IsStartOfMailMessage()
170 memcmp (StringPntr, "Feb", 3) != 0 && in IsStartOfMailMessage()
[all …]
/haiku/src/apps/packageinstaller/
H A DPackageInfo.cpp173 if (!memcmp(buffer, "PhIn", 5)) { in Parse()
174 } else if (!memcmp(buffer, "FVer", 5)) { in Parse()
178 } else if (!memcmp(buffer, "AFla", 5)) { in Parse()
182 } else if (!memcmp(buffer, "FSiz", 5)) { in Parse()
187 } else if (!memcmp(buffer, "COff", 5)) { in Parse()
192 } else if (!memcmp(buffer, "AOff", 5)) { in Parse()
197 } else if (!memcmp(buffer, padding, 7)) { in Parse()
211 if (memcmp(buffer, "PkgA", 5) || !groupsOffset || !infoOffset) { in Parse()
249 if (!memcmp(buffer, groupsMarker, 7)) { in Parse()
253 } else if (!memcmp(buffer, pathMarker, 7)) { in Parse()
[all …]
H A DPackageItem.cpp276 if (fPackage->Read(buffer, 7) != 7 || memcmp(buffer, header, 5)) in HandleAttributes()
292 if (!memcmp(buffer, "FBeA", 5)) in HandleAttributes()
324 if (!memcmp(buffer, "BeAI", 5)) { in ParseAttribute()
332 } else if (!memcmp(buffer, "BeAN", 5)) { in ParseAttribute()
352 } else if (!memcmp(buffer, "BeAT", 5)) { in ParseAttribute()
362 } else if (!memcmp(buffer, "BeAD", 5)) { in ParseAttribute()
400 } else if (!memcmp(buffer, padding, 7)) { in ParseAttribute()
436 if (!memcmp(buffer, "BeAI", 5)) { in SkipAttribute()
439 } else if (!memcmp(buffer, "BeAN", 5)) { in SkipAttribute()
451 } else if (!memcmp(buffer, "BeAT", 5)) { in SkipAttribute()
[all …]
/haiku/src/add-ons/kernel/bus_managers/acpi/acpica/components/tables/
H A Dtbfind.c219 if (memcmp (&(AcpiGbl_RootTableList.Tables[i].Signature), in AcpiTbFindTable()
247 if (!memcmp (AcpiGbl_RootTableList.Tables[i].Pointer->Signature, in AcpiTbFindTable()
250 !memcmp (AcpiGbl_RootTableList.Tables[i].Pointer->OemId, in AcpiTbFindTable()
253 !memcmp (AcpiGbl_RootTableList.Tables[i].Pointer->OemTableId, in AcpiTbFindTable()
/haiku/src/tests/kits/support/
H A DByteOrderTest.cpp276 CHK(!memcmp(target, source, sizeof(source))); \ in test()
278 CHK(!memcmp(target, source, sizeof(source))); \ in test()
281 CHK(memcmp(target, source, sizeof(source))); \ in test()
283 CHK(!memcmp(target, source, sizeof(source))); \ in test()
286 CHK(!memcmp(target, source, sizeof(source))); \ in test()
288 CHK(!memcmp(target, source, sizeof(source))); \ in test()
291 CHK(memcmp(target, source, sizeof(source))); \ in test()
293 CHK(!memcmp(target, source, sizeof(source))); \ in test()
297 CHK(memcmp(target, source, sizeof(source))); \ in test()
299 CHK(!memcmp(target, source, sizeof(source))); \ in test()
/haiku/src/tests/system/libroot/posix/
H A Dfseek_test.cpp114 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) { in glibc_test()
132 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) { in glibc_test()
150 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) { in glibc_test()
168 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) { in glibc_test()
186 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) { in glibc_test()
204 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) { in glibc_test()
283 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0 in glibc_test()
284 || memcmp(&buf[sizeof(outstr) - 1], outstr, sizeof(outstr) - 1) != 0 in glibc_test()
299 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0 in glibc_test()
300 || memcmp(&buf[sizeof(outstr) - 1], outstr, sizeof(outstr) - 1) != 0 in glibc_test()
H A Dgnulib-test-wcsrtombs.c72 assert(memcmp (buf, original, ret) == 0); in main()
114 assert(memcmp (buf, original, ret) == 0); in main()
156 assert(memcmp (buf, original, ret) == 0); in main()
206 assert(memcmp (buf, original, ret) == 0); in main()
249 assert(memcmp (buf, original, ret) == 0); in main()
H A Dgnulib-test-wcsnrtombs.c81 assert(memcmp (buf, original, ret) == 0); in main()
123 assert(memcmp (buf, original, ret) == 0); in main()
167 assert(memcmp (buf, original, ret) == 0); in main()
210 assert(memcmp (buf, original, ret) == 0); in main()
/haiku/src/system/runtime_loader/
H A Dpe.cpp22 if (memcmp(&mzHeader->magic, MZ_MAGIC, 2) != 0) in parse_mz_header()
33 if (memcmp(&peHeader->magic, PE_MAGIC, 2) != 0) in parse_pe_header()
/haiku/src/tests/kits/app/bpropertyinfo/
H A DPropertyFlattenTest.cpp67 assert(memcmp(buffer, bflat_data, propTest->FlattenedSize()) == 0); in TestProperty()
69 assert(memcmp(buffer, lflat_data, propTest->FlattenedSize()) == 0); in TestProperty()
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A DMetadataCache.cpp168 if (memcmp(&oldStat->st_atim, &newStat->st_atim, in NotifyChanges()
172 if (memcmp(&oldStat->st_ctim, &newStat->st_ctim, in NotifyChanges()
176 if (memcmp(&oldStat->st_crtim, &newStat->st_crtim, in NotifyChanges()
180 if (memcmp(&oldStat->st_mtim, &newStat->st_mtim, in NotifyChanges()
H A DFileInfo.h122 return memcmp(fData, handle.fData, fSize) == 0;
138 return memcmp(fData, handle.fData, fSize) > 0;
147 return memcmp(fData, handle.fData, fSize) < 0;
/haiku/headers/posix/netinet6/
H A Din6.h81 (!memcmp((a)->s6_addr, in6addr_any.s6_addr, sizeof(struct in6_addr)))
84 (!memcmp((a)->s6_addr, in6addr_loopback.s6_addr, sizeof(struct in6_addr)))
133 (!memcmp((a)->s6_addr, (b)->s6_addr, sizeof(struct in6_addr)))
/haiku/src/servers/app/drawing/
H A DAlphaMaskCache.h68 int diff = memcmp(fShape->ptList, other.fShape->ptList,
72 diff = memcmp(fShape->opList, other.fShape->opList,
/haiku/src/add-ons/kernel/network/protocols/ipv6/
H A Dipv6_address.h23 return !memcmp(&a1, &a2, sizeof(in6_addr));
/haiku/src/system/libroot/posix/string/
H A Dmemcmp.c11 memcmp(const void *_a, const void *_b, size_t count) in memcmp() function
H A Dbcmp.c20 return memcmp(a, b, bytes); in bcmp()
H A Dmemmem.c60 if (cur[0] == cs[0] && memcmp(cur, cs, s_len) == 0) in memmem()
/haiku/src/libs/compat/openbsd_network/compat/netinet/
H A Dif_ether.h20 #define ETHER_IS_EQ(a1, a2) (memcmp((a1), (a2), ETHER_ADDR_LEN) == 0)
/haiku/src/system/libnetwork/netresolv/net/
H A Dgetservbyname_r.c97 if (memcmp(data + 3, proto, protolen + 1)) in __weak_alias()
109 memcmp(data + 1, name, namelen + 1) == 0) in __weak_alias()
/haiku/src/tests/system/libroot/posix/string/
H A Dcompare_test.cpp18 printf("memcmp(): %d\n", memcmp(a, b, 1)); in main()
/haiku/src/add-ons/kernel/file_systems/fat/
H A Dsupport.cpp186 if (memcmp(name, device_names[i], 8) == 0) in is_shortname_legal()
280 if (buffer[check] == EXBOOTSIG && memcmp(buffer + offset, " ", LABEL_LENGTH) != 0) { in read_label()
345 if (!memcmp((uint8*) bootsector + 3, "NTFS ", 8) in check_bootsector()
346 || !memcmp((uint8*) bootsector + 3, "HPFS ", 8)) { in check_bootsector()
537 if (memcmp(bpb, bogusZipData, sizeof(bogusZipData)) == 0 && volume->pm_HugeSectors == 196576 in fix_zip()
568 if (memcmp(fsInfo->fsisig1, "RRaA", 4) == 0 && memcmp(fsInfo->fsisig2, "rrAa", 4) == 0 in read_fsinfo()
569 && memcmp(fsInfo->fsisig3, "\0\0\125\252", 4) == 0) { in read_fsinfo()
613 if (memcmp(fsInfo->fsisig1, "RRaA", 4) != 0 || memcmp(fsInfo->fsisig2, "rrAa", 4) != 0 in write_fsinfo()
614 || memcmp(fsInfo->fsisig3, "\0\0\125\252", 4) != 0) { in write_fsinfo()
675 if (memcmp(fatBuffer, mirrorBuffer, 0x200)) { in check_fat()
/haiku/src/libs/iconv/
H A Diconv.c241 if (bp-buf >= 10 && memcmp(bp-10,"//TRANSLIT",10)==0) { in iconv_open()
247 if (bp-buf >= 8 && memcmp(bp-8,"//IGNORE",8)==0) { in iconv_open()
319 if (bp-buf >= 10 && memcmp(bp-10,"//TRANSLIT",10)==0) { in iconv_open()
324 if (bp-buf >= 8 && memcmp(bp-8,"//IGNORE",8)==0) { in iconv_open()
657 if (bp-buf >= 10 && memcmp(bp-10,"//TRANSLIT",10)==0) { in iconv_canonicalize()
662 if (bp-buf >= 8 && memcmp(bp-8,"//IGNORE",8)==0) { in iconv_canonicalize()
/haiku/src/tests/system/kernel/file_corruption/
H A DCheckSum.h44 return memcmp(fData, buffer, sizeof(fData)) == 0;

12345678910