Searched refs:magic (Results 1 - 24 of 24) sorted by relevance

/darwin-on-arm/xnu/EXTERNAL_HEADERS/mach-o/
H A Dfat.h52 uint32_t magic; /* FAT_MAGIC */ member in struct:fat_header
H A Dloader.h55 uint32_t magic; /* mach magic number identifier */ member in struct:mach_header
64 /* Constant for the magic field of the mach_header (32-bit architectures) */
65 #define MH_MAGIC 0xfeedface /* the mach magic number */
73 uint32_t magic; /* mach magic number identifier */ member in struct:mach_header_64
83 /* Constant for the magic field of the mach_header_64 (64-bit architectures) */
84 #define MH_MAGIC_64 0xfeedfacf /* the 64-bit mach magic number */
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_hotfiles.h91 u_int32_t magic; member in struct:HotFilesInfo
H A Dhfs_hotfiles.c206 (SWAP_BE32 (hotfileinfo.magic) == HFC_MAGIC) &&
477 hotfileinfo.magic = SWAP_BE32 (HFC_MAGIC);
1899 hotfileinfo->magic = SWAP_BE32 (HFC_MAGIC);
/darwin-on-arm/xnu/libkern/kxld/
H A Dkxld_util.c301 if (mach_hdr->magic == MH_CIGAM) {
307 /* Validate the mach_header's magic number */
308 require_action(mach_hdr->magic == MH_MAGIC, finish,
311 "Invalid magic number: 0x%x.", mach_hdr->magic));
472 if (mach_hdr->magic == MH_CIGAM_64) {
478 /* Validate the mach_header's magic number */
479 require_action(mach_hdr->magic == MH_MAGIC_64, finish,
482 "Invalid magic number: 0x%x.", mach_hdr->magic));
[all...]
H A Dkxld_object.c442 if (fat->magic == FAT_CIGAM) {
447 if (fat->magic == FAT_MAGIC) {
1862 mach->magic = MH_MAGIC;
1897 mach->magic = MH_MAGIC_64;
/darwin-on-arm/xnu/libkern/libkern/
H A Dmkext.h66 * - magic & signature - always 'MKXT' and 'MOSX' as defined above.
79 uint32_t magic; \
96 #define MKEXT_GET_MAGIC(hdr) (MKEXT_SWAP(MKEXT_HDR_CAST(hdr)->magic))
/darwin-on-arm/xnu/osfmk/kdp/ml/arm/
H A Dkdp_arm_common.c219 mh.magic = _mh_execute_header.magic;
/darwin-on-arm/xnu/bsd/kern/
H A Dmach_loader.c490 if (header->magic == MH_MAGIC_64 ||
491 header->magic == MH_CIGAM_64) {
1624 if (header->magic == MH_MAGIC_64 ||
1625 header->magic == MH_CIGAM_64) {
1767 if (header->mach_header.magic == MH_MAGIC ||
1768 header->mach_header.magic == MH_MAGIC_64) {
1770 } else if (header->fat_header.magic == FAT_MAGIC ||
1771 header->fat_header.magic == FAT_CIGAM) {
1795 if (header->mach_header.magic != MH_MAGIC &&
1796 header->mach_header.magic !
[all...]
H A Dkern_core.c334 mh64->magic = MH_MAGIC_64;
343 mh->magic = MH_MAGIC;
H A Dubc_subr.c163 uint32_t magic; /* magic number */ member in struct:__SuperBlob
171 uint32_t magic; /* magic number */ member in struct:__GenericBlob
187 uint32_t magic; /* magic number (CSMAGIC_CODEDIRECTORY) */ member in struct:__CodeDirectory
220 ntohl(embedded->magic) == CSMAGIC_EMBEDDED_SIGNATURE) {
257 ntohl(cd->magic) == CSMAGIC_CODEDIRECTORY) {
407 if (CSMAGIC_EMBEDDED_SIGNATURE != ntohl(super_blob->magic)) {
417 if (CSMAGIC_CODEDIRECTORY != ntohl(blob->magic))
[all...]
H A Dkern_exec.c598 if ((fat_header->magic != FAT_MAGIC) &&
599 (fat_header->magic != FAT_CIGAM)) {
731 if ((mach_header->magic == MH_CIGAM) ||
732 (mach_header->magic == MH_CIGAM_64)) {
737 if ((mach_header->magic != MH_MAGIC) &&
738 (mach_header->magic != MH_MAGIC_64)) {
H A Ddecmpfs.c87 uint32_t magic; member in struct:__anon114
108 alloc->magic = 0xdadadada;
132 if (alloc->magic != 0xdadadada) {
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_xattr.c1287 u_int32_t magic; /* == ADH_MAGIC */ member in struct:apple_double_header
1311 u_int32_t magic; /* == ATTR_HDR_MAGIC */ member in struct:attr_header
1427 * - magic field
1453 header->magic = SWAP32(header->magic);
1458 if (header->magic != ADH_MAGIC ||
2868 attrhdr->magic = ATTR_HDR_MAGIC;
2946 xah->appledouble.magic = SWAP32 (ADH_MAGIC);
2958 xah->magic = SWAP32 (ATTR_HDR_MAGIC);
3033 count = (adh->magic
[all...]
H A Dvfs_journal.c203 if (jnl->jhdr->magic != JOURNAL_HEADER_MAGIC) { \
204 panic("%s:%d: jhdr magic corrupted (0x%x != 0x%x)\n", \
205 __FILE__, __LINE__, jnl->jhdr->magic, JOURNAL_HEADER_MAGIC); \
728 jnl->jhdr->magic = SWAP32(jnl->jhdr->magic);
1737 && jnl->jhdr->magic == JOURNAL_HEADER_MAGIC
1763 jnl->jhdr->magic = JOURNAL_HEADER_MAGIC;
1899 if (jnl->jhdr->magic == SWAP32(JOURNAL_HEADER_MAGIC)) {
1909 if (jnl->jhdr->magic != JOURNAL_HEADER_MAGIC && jnl->jhdr->magic !
[all...]
H A Dvfs_journal.h110 int32_t magic; member in struct:journal_header
/darwin-on-arm/xnu/SETUP/setsegname/
H A Dsetsegname.c159 switch (hdr->magic) {
/darwin-on-arm/xnu/osfmk/kdp/ml/i386/
H A Dkdp_x86_common.c587 mh.magic = _mh_execute_header.magic;
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dmachvm_tests.c165 if (_mh_execute_header.magic != *(uint32_t *)regionbuffers[2]) {
/darwin-on-arm/xnu/SETUP/kextsymboltool/
H A Dkextsymboltool.c723 hdr.magic = MH_MAGIC_64;
742 hdr.magic = MH_MAGIC;
/darwin-on-arm/xnu/bsd/dev/dtrace/
H A Dsdt.c519 if (MH_MAGIC_KERNEL != _mh_execute_header.magic) {
/darwin-on-arm/xnu/bsd/dev/i386/
H A Dfbt_x86.c950 if (mh->magic != MH_MAGIC)
1468 if (mh->magic != MH_MAGIC_64)
/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_bsm_token.c1382 * trailer magic number 2 bytes
1390 u_int16_t magic = AUT_TRAILER_MAGIC; local
1396 ADD_U_INT16(dptr, magic);
/darwin-on-arm/xnu/bsd/net/
H A Dpf.c485 u_int32_t magic; member in struct:pf_pptp_hdr
5480 if (ntohl(cm.hdr.magic) != PF_PPTP_MAGIC_NUMBER)

Completed in 197 milliseconds