Home
last modified time | relevance | path

Searched refs:Magic (Results 1 – 25 of 162) sorted by relevance

1234567

/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMagic.cpp1 //===- 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 DMachO.cpp36 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 DCOFF.cpp49 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 Dmagic.py127 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 DHeader.cpp25 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 Dti-8x16 # 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 DDivisionByConstantInfo.cpp59 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 DLibDriver.cpp222 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 DBTFParser.cpp110 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 DDivisionByConstantInfo.h23 APInt Magic; ///< magic number member
32 APInt Magic; ///< magic number member
/freebsd/contrib/llvm-project/llvm/include/llvm/Remarks/
H A DRemarkFormat.h22 constexpr StringLiteral Magic("REMARKS");
31 Expected<Format> magicToFormat(StringRef Magic);
/freebsd/contrib/netbsd-tests/ipf/input/
H A Dni1374 …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 Dni1476 …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 Dni1576 …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 Dni1676 …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 DArchiveEmitter.cpp21 Out.write(Doc.Magic.data(), Doc.Magic.size()); in yaml2archive()
H A DCodeViewYAMLTypeHashing.cpp54 cantFail(Reader.readInteger(DHS.Magic)); in fromDebugH()
74 cantFail(Writer.writeInteger(DebugH.Magic)); in toDebugH()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DMachOUniversal.cpp133 : 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 DInputFile.cpp12 #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 DNativeSession.cpp12 #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 DMSFCommon.cpp21 if (std::memcmp(SB.MagicBytes, Magic, sizeof(Magic)) != 0) in validateSuperBlock()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/wasm/
H A DWasmWriter.cpp65 Out.write(Obj.Header.Magic.data(), Obj.Header.Magic.size()); in write()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/
H A DMSFCommon.h23 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 DBTF.h80 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 DMachOObject.h27 uint32_t Magic; member
362 return Header.Magic == MachO::MH_MAGIC_64 || in is64Bit()
363 Header.Magic == MachO::MH_CIGAM_64; in is64Bit()

1234567