/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/ |
H A D | Magic.cpp | 1 //===- llvm/BinaryFormat/Magic.cpp - File magic identification --*- C++ -*-===// 9 #include "llvm/BinaryFormat/Magic.h" 28 static bool startswith(StringRef Magic, const char (&S)[N]) { in startswith() argument 29 return Magic.starts_with(StringRef(S, N - 1)); in startswith() 33 file_magic llvm::identify_magic(StringRef Magic) { in identify_magic() argument 34 if (Magic.size() < 4) in identify_magic() 36 switch ((unsigned char)Magic[0]) { in identify_magic() 39 if (startswith(Magic, "\0\0\xFF\xFF")) { in identify_magic() 42 if (Magic.size() < MinSize) in identify_magic() 45 const char *Start = Magic in identify_magic() [all...] |
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | MachO.cpp | 36 uint32_t Magic; in createLinkGraphFromMachOObject() local 37 memcpy(&Magic, Data.data(), sizeof(uint32_t)); in createLinkGraphFromMachOObject() 39 dbgs() << "jitLink_MachO: magic = " << format("0x%08" PRIx32, Magic) in createLinkGraphFromMachOObject() 44 if (Magic == MachO::MH_MAGIC || Magic == MachO::MH_CIGAM) in createLinkGraphFromMachOObject() 46 else if (Magic == MachO::MH_MAGIC_64 || Magic == MachO::MH_CIGAM_64) { in createLinkGraphFromMachOObject() 56 if (Magic == MachO::MH_CIGAM_64) in createLinkGraphFromMachOObject()
|
H A D | COFF.cpp | 49 auto Magic = identify_magic(ObjectBuffer.getBuffer()); in createLinkGraphFromCOFFObject() 50 if (Magic != file_magic::coff_object) in createLinkGraphFromCOFFObject() local 63 if (DH->Magic[0] == 'M' && DH->Magic[1] == 'Z') { in createLinkGraphFromCOFFObject()
|
/freebsd/contrib/file/python/ |
H A D | magic.py | 127 class Magic(object): class 165 return Magic.__tostr(_file(self._magic_t, Magic.__tobytes(filename))) 173 return Magic.__tostr(_descriptor(self._magic_t, fd)) 181 return Magic.__tostr(_buffer(self._magic_t, buf, len(buf))) 188 return Magic.__tostr(_error(self._magic_t)) 209 return _load(self._magic_t, Magic.__tobytes(filename)) 220 return _compile(self._magic_t, Magic.__tobytes(dbs)) 230 return _check(self._magic_t, Magic.__tobytes(dbs)) 240 return _list(self._magic_t, Magic.__tobytes(dbs)) 278 return Magic(magic_t)
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
H A D | Header.cpp | 25 OS << " Magic = " << HEX32(H.Magic) << "\n"; in operator <<() 42 if (Magic != GSYM_MAGIC) in checkForError() 44 "invalid GSYM magic 0x%8.8x", Magic); in checkForError() 71 H.Magic = Data.getU32(&Offset); in decode() 89 O.writeU32(Magic); in encode() 102 return LHS.Magic == RHS.Magic && LHS.Version == RHS.Version && in operator ==()
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | ti-8x | 16 # Magic Numbers for the TI-73 34 # Magic Numbers for the TI-82 51 # Magic Numbers for the TI-83 69 # Magic Numbers for the TI-83+ 90 # Magic Numbers for the TI-85 123 # Magic Numbers for the TI-86 154 # Magic Numbers for the TI-89 172 # Magic Numbers for the TI-92 189 # Magic Numbers for the TI-92+/V200 207 # Magic Numbers for the TI-73/83+/89/92+/V200 FLASH upgrades [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | DivisionByConstantInfo.cpp | 59 Retval.Magic = std::move(Q2); in get() 60 ++Retval.Magic; in get() 62 Retval.Magic.negate(); // resulting magic number in get() 145 Retval.Magic = std::move(Q2); // resulting magic number in get() 146 ++Retval.Magic; in get()
|
/freebsd/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-lib/ |
H A D | LibDriver.cpp | 222 file_magic Magic = identify_magic(MB.getBuffer()); in appendFile() local 224 if (Magic != file_magic::coff_object && Magic != file_magic::bitcode && in appendFile() 225 Magic != file_magic::archive && Magic != file_magic::windows_resource && in appendFile() 226 Magic != file_magic::coff_import_library) { in appendFile() 237 if (Magic == file_magic::archive) { in appendFile() 266 if (Magic == file_magic::coff_object || Magic == file_magic::bitcode) { in appendFile() 268 (Magic == file_magic::coff_object) ? getCOFFFileMachine(MB) in appendFile()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/BTF/ |
H A D | BTFParser.cpp | 110 uint16_t Magic = Extractor.getU16(C); in parseBTF() 113 if (Magic != BTF::MAGIC) in parseBTF() 114 return Err("invalid .BTF magic: ").write_hex(Magic); in parseBTF() 256 uint16_t Magic = Extractor.getU16(C); in hasBTFSections() 259 if (Magic != BTF::MAGIC) in hasBTFSections() 260 return Err("invalid .BTF.ext magic: ").write_hex(Magic); in hasBTFSections() 106 uint16_t Magic = Extractor.getU16(C); parseBTF() local 145 uint16_t Magic = Extractor.getU16(C); parseBTFExt() local
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | DivisionByConstantInfo.h | 23 APInt Magic; ///< magic number member 32 APInt Magic; ///< magic number member
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Remarks/ |
H A D | RemarkFormat.h | 22 constexpr StringLiteral Magic("REMARKS"); 31 Expected<Format> magicToFormat(StringRef Magic);
|
/freebsd/contrib/netbsd-tests/ipf/input/ |
H A D | ni13 | 74 …192.168.113.3: gre [KSv1] ID:0000 S:0 ppp: LCP 25: Conf-Req(0), MRU=1400, Magic-Num=577f7c5b, PFC,… 91 …68.113.1: gre [KSv1] ID:4000 S:0 ppp: LCP 24: Conf-Req(1), ACCM=00000000, Magic-Num=22d90cfa, PFC,… 103 …3.3: gre [KSAv1] ID:0000 S:1 A:1 ppp: LCP 24: Conf-Ack(1), ACCM=00000000, Magic-Num=22d90cfa, PFC,… 110 …192.168.113.3: gre [KSv1] ID:0000 S:2 ppp: LCP 22: Conf-Req(1), MRU=1400, Magic-Num=577f7c5b, PFC,… 117 …68.113.1: gre [KSAv1] ID:4000 S:2 A:2 ppp: LCP 22: Conf-Ack(1), MRU=1400, Magic-Num=577f7c5b, PFC,… 138 …92.168.113.1 > 192.168.113.3: gre [KSAv1] ID:0000 S:3 A:3 ppp: LCP 20: Ident(2), Magic-Num=577f7c5b 152 …92.168.113.1 > 192.168.113.3: gre [KSAv1] ID:0000 S:4 A:4 ppp: LCP 26: Ident(3), Magic-Num=577f7c5b
|
H A D | ni14 | 76 …192.168.113.3: gre [KSv1] ID:0000 S:0 ppp: LCP 25: Conf-Req(0), MRU=1400, Magic-Num=577f7c5b, PFC,… 94 …68.113.1: gre [KSv1] ID:4000 S:0 ppp: LCP 24: Conf-Req(1), ACCM=00000000, Magic-Num=22d90cfa, PFC,… 107 …3.3: gre [KSAv1] ID:0000 S:1 A:1 ppp: LCP 24: Conf-Ack(1), ACCM=00000000, Magic-Num=22d90cfa, PFC,… 114 …192.168.113.3: gre [KSv1] ID:0000 S:2 ppp: LCP 22: Conf-Req(1), MRU=1400, Magic-Num=577f7c5b, PFC,… 121 …68.113.1: gre [KSAv1] ID:4000 S:2 A:2 ppp: LCP 22: Conf-Ack(1), MRU=1400, Magic-Num=577f7c5b, PFC,… 142 …92.168.113.1 > 192.168.113.3: gre [KSAv1] ID:0000 S:3 A:3 ppp: LCP 20: Ident(2), Magic-Num=577f7c5b 156 …92.168.113.1 > 192.168.113.3: gre [KSAv1] ID:0000 S:4 A:4 ppp: LCP 26: Ident(3), Magic-Num=577f7c5b
|
H A D | ni15 | 76 …192.168.113.3: gre [KSv1] ID:0000 S:0 ppp: LCP 25: Conf-Req(0), MRU=1400, Magic-Num=577f7c5b, PFC,… 94 …68.113.1: gre [KSv1] ID:4000 S:0 ppp: LCP 24: Conf-Req(1), ACCM=00000000, Magic-Num=22d90cfa, PFC,… 107 …3.3: gre [KSAv1] ID:0000 S:1 A:1 ppp: LCP 24: Conf-Ack(1), ACCM=00000000, Magic-Num=22d90cfa, PFC,… 114 …192.168.113.3: gre [KSv1] ID:0000 S:2 ppp: LCP 22: Conf-Req(1), MRU=1400, Magic-Num=577f7c5b, PFC,… 121 …68.113.1: gre [KSAv1] ID:4000 S:2 A:2 ppp: LCP 22: Conf-Ack(1), MRU=1400, Magic-Num=577f7c5b, PFC,… 142 …92.168.113.1 > 192.168.113.3: gre [KSAv1] ID:0000 S:3 A:3 ppp: LCP 20: Ident(2), Magic-Num=577f7c5b 156 …92.168.113.1 > 192.168.113.3: gre [KSAv1] ID:0000 S:4 A:4 ppp: LCP 26: Ident(3), Magic-Num=577f7c5b
|
H A D | ni16 | 76 …192.168.113.3: gre [KSv1] ID:0000 S:0 ppp: LCP 25: Conf-Req(0), MRU=1400, Magic-Num=577f7c5b, PFC,… 94 …68.113.1: gre [KSv1] ID:4000 S:0 ppp: LCP 24: Conf-Req(1), ACCM=00000000, Magic-Num=22d90cfa, PFC,… 107 …3.3: gre [KSAv1] ID:0000 S:1 A:1 ppp: LCP 24: Conf-Ack(1), ACCM=00000000, Magic-Num=22d90cfa, PFC,… 114 …192.168.113.3: gre [KSv1] ID:0000 S:2 ppp: LCP 22: Conf-Req(1), MRU=1400, Magic-Num=577f7c5b, PFC,… 121 …68.113.1: gre [KSAv1] ID:4000 S:2 A:2 ppp: LCP 22: Conf-Ack(1), MRU=1400, Magic-Num=577f7c5b, PFC,… 142 …92.168.113.1 > 192.168.113.3: gre [KSAv1] ID:0000 S:3 A:3 ppp: LCP 20: Ident(2), Magic-Num=577f7c5b 156 …92.168.113.1 > 192.168.113.3: gre [KSAv1] ID:0000 S:4 A:4 ppp: LCP 26: Ident(3), Magic-Num=577f7c5b
|
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
H A D | ArchiveEmitter.cpp | 21 Out.write(Doc.Magic.data(), Doc.Magic.size()); in yaml2archive()
|
H A D | CodeViewYAMLTypeHashing.cpp | 54 cantFail(Reader.readInteger(DHS.Magic)); in fromDebugH() 74 cantFail(Writer.writeInteger(DebugH.Magic)); in toDebugH()
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | MachOUniversal.cpp | 133 : Binary(Binary::ID_MachOUniversalBinary, Source), Magic(0), in MachOUniversalBinary() 146 Magic = H.magic; in MachOUniversalBinary() 153 if (Magic == MachO::FAT_MAGIC) in MachOUniversalBinary() 155 else if (Magic == MachO::FAT_MAGIC_64) in MachOUniversalBinary() 163 Twine(Magic == MachO::FAT_MAGIC ? "" : "_64") + in MachOUniversalBinary()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | InputFile.cpp | 12 #include "llvm/BinaryFormat/Magic.h" 111 uint32_t Magic; in isCodeViewDebugSubsection() local 114 cantFail(Reader.readInteger(Magic)); in isCodeViewDebugSubsection() 115 if (Magic != COFF::DEBUG_SECTION_MAGIC) in isCodeViewDebugSubsection() 307 file_magic Magic; in open() local 308 if (auto EC = identify_magic(Path, Magic)) in open() 312 if (Magic == file_magic::coff_object) { in open() 322 if (Magic == file_magic::pdb) { in open()
|
H A D | NativeSession.cpp | 12 #include "llvm/BinaryFormat/Magic.h" 102 file_magic Magic; in loadPdbFile() local 103 auto EC = identify_magic(PdbPath, Magic); in loadPdbFile() 104 if (EC || Magic != file_magic::pdb) in loadPdbFile() 157 file_magic Magic; in createFromExe() local 158 auto EC = identify_magic(PdbPath.get(), Magic); in createFromExe() 159 if (EC || Magic != file_magic::pdb) in createFromExe()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/MSF/ |
H A D | MSFCommon.cpp | 21 if (std::memcmp(SB.MagicBytes, Magic, sizeof(Magic)) != 0) in validateSuperBlock()
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/wasm/ |
H A D | WasmWriter.cpp | 65 Out.write(Obj.Header.Magic.data(), Obj.Header.Magic.size()); in write()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/ |
H A D | MSFCommon.h | 23 static const char Magic[] = {'M', 'i', 'c', 'r', 'o', 's', 'o', 'f', variable 32 char MagicBytes[sizeof(Magic)];
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/BTF/ |
H A D | BTF.h | 80 uint16_t Magic; ///< Magic value 224 uint16_t Magic; 79 uint16_t Magic; ///< Magic value global() member 216 uint16_t Magic; global() member
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/ |
H A D | MachOObject.h | 27 uint32_t Magic; member 362 return Header.Magic == MachO::MH_MAGIC_64 || in is64Bit() 363 Header.Magic == MachO::MH_CIGAM_64; in is64Bit()
|