Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/external/llvm/lib/Support/
DPath.cpp42 sys::IdentifyFileType(const char *magic, unsigned length) { in IdentifyFileType() argument
43 assert(magic && "Invalid magic number string"); in IdentifyFileType()
45 switch ((unsigned char)magic[0]) { in IdentifyFileType()
47 if (magic[1] == (char)0xC0 && magic[2] == (char)0x17 && in IdentifyFileType()
48 magic[3] == (char)0x0B) in IdentifyFileType()
52 if (magic[1] == 'C' && magic[2] == (char)0xC0 && magic[3] == (char)0xDE) in IdentifyFileType()
57 if (memcmp(magic,"!<arch>\n",8) == 0) in IdentifyFileType()
62 if (magic[1] == 'E' && magic[2] == 'L' && magic[3] == 'F') { in IdentifyFileType()
63 bool Data2MSB = magic[5] == 2; in IdentifyFileType()
66 if (length >= 18 && magic[high] == 0) in IdentifyFileType()
[all …]
DPathV2.cpp727 error_code has_magic(const Twine &path, const Twine &magic, bool &result) { in has_magic() argument
729 StringRef Magic = magic.toStringRef(MagicStorage); in has_magic()
746 file_magic identify_magic(StringRef magic) { in identify_magic() argument
747 if (magic.size() < 4) in identify_magic()
749 switch ((unsigned char)magic[0]) { in identify_magic()
751 if (magic[1] == (char)0xC0 && magic[2] == (char)0x17 && in identify_magic()
752 magic[3] == (char)0x0B) in identify_magic()
756 if (magic[1] == 'C' && magic[2] == (char)0xC0 && magic[3] == (char)0xDE) in identify_magic()
760 if (magic.size() >= 8) in identify_magic()
761 if (memcmp(magic.data(),"!<arch>\n",8) == 0) in identify_magic()
[all …]
/external/dexmaker/src/dx/java/com/android/dx/dex/
DDexFormat.java63 public static int magicToApi(byte[] magic) { in magicToApi() argument
64 if (magic.length != 8) { in magicToApi()
68 if ((magic[0] != 'd') || (magic[1] != 'e') || (magic[2] != 'x') || (magic[3] != '\n') || in magicToApi()
69 (magic[7] != '\0')) { in magicToApi()
73 String version = "" + ((char) magic[4]) + ((char) magic[5]) +((char) magic[6]); in magicToApi()
/external/e2fsprogs/lib/ext2fs/
Dgen_bitmap.c31 errcode_t magic; member
59 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || in check_magic()
60 (bitmap->magic == EXT2_ET_MAGIC_INODE_BITMAP) || in check_magic()
61 (bitmap->magic == EXT2_ET_MAGIC_BLOCK_BITMAP))) in check_magic()
66 errcode_t ext2fs_make_generic_bitmap(errcode_t magic, ext2_filsys fs, in ext2fs_make_generic_bitmap() argument
80 bitmap->magic = magic; in ext2fs_make_generic_bitmap()
85 switch (magic) { in ext2fs_make_generic_bitmap()
136 return (ext2fs_make_generic_bitmap(src->magic, src->fs, in ext2fs_copy_generic_bitmap()
148 bitmap->magic = 0; in ext2fs_free_generic_bitmap()
210 errcode_t magic, errcode_t neq, in ext2fs_fudge_generic_bitmap_end() argument
[all …]
Dext2_err.et.in15 "Wrong magic number for ext2_filsys structure"
18 "Wrong magic number for badblocks_list structure"
21 "Wrong magic number for badblocks_iterate structure"
24 "Wrong magic number for inode_scan structure"
27 "Wrong magic number for io_channel structure"
30 "Wrong magic number for unix io_channel structure"
33 "Wrong magic number for io_manager structure"
36 "Wrong magic number for block_bitmap structure"
39 "Wrong magic number for inode_bitmap structure"
42 "Wrong magic number for generic_bitmap structure"
[all …]
Dfreefs.c24 if (!fs || (fs->magic != EXT2_ET_MAGIC_EXT2FS_FILSYS)) in ext2fs_free()
56 fs->magic = 0; in ext2fs_free()
81 if (bb->magic != EXT2_ET_MAGIC_BADBLOCKS_LIST) in ext2fs_u32_list_free()
101 if (!dblist || (dblist->magic != EXT2_ET_MAGIC_DBLIST)) in ext2fs_free_dblist()
109 dblist->magic = 0; in ext2fs_free_dblist()
Dext2fsP.h18 int magic; member
26 int magic; member
36 int magic; member
/external/blktrace/
Dblktrace.h64 #define CHECK_MAGIC(t) (((t)->magic & 0xffffff00) == BLK_IO_TRACE_MAGIC)
92 fprintf(stderr, "bad trace magic %x\n", t->magic); in verify_trace()
95 if ((t->magic & 0xff) != SUPPORTED_VERSION) { in verify_trace()
97 t->magic & 0xff); in verify_trace()
109 t->magic = be32_to_cpu(t->magic); in trace_to_cpu()
125 static inline int check_data_endianness(u32 magic) in check_data_endianness() argument
127 if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) { in check_data_endianness()
132 magic = __bswap_32(magic); in check_data_endianness()
133 if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) { in check_data_endianness()
/external/tremolo/Tremolo/
Dmisc.h73 union magic { union
83 union magic { union
93 union magic magic; in MULT32() local
94 magic.whole = (ogg_int64_t)x * y; in MULT32()
95 return magic.halves.hi; in MULT32()
103 union magic magic; in MULT31_SHIFT15() local
104 magic.whole = (ogg_int64_t)x * y; in MULT31_SHIFT15()
105 return ((ogg_uint32_t)(magic.halves.lo)>>15) | ((magic.halves.hi)<<17); in MULT31_SHIFT15()
/external/openssl/crypto/aes/asm/
Dvpaes-x86.pl57 my ($round, $base, $magic, $key, $const, $inp, $out)=
181 &mov ($magic,16);
209 &movdqa ("xmm1",&QWP(-0x40,$base,$magic));# .Lk_mc_forward[]
213 &movdqa ("xmm4",&QWP(0,$base,$magic)); # .Lk_mc_backward[]
219 &add ($magic,16); # next mc
222 &and ($magic,0x30); # ... mod 4
256 &movdqa ("xmm1",&QWP(0x40,$base,$magic));# .Lk_sr[]
273 &mov ($magic,$round);
276 &shl ($magic,4);
280 &xor ($magic,0x30);
[all …]
/external/openssh/
Dmd5crypt.c24 static char *magic = "$1$"; variable
47 return (strncmp(salt, magic, strlen(magic)) == 0); in is_md5_salt()
64 if(strncmp(sp, magic, strlen(magic)) == 0) in md5_crypt()
65 sp += strlen(magic); in md5_crypt()
86 MD5_Update(&ctx, magic, strlen(magic)); in md5_crypt()
112 snprintf(passwd, sizeof(passwd), "%s%s$", magic, salt_copy); in md5_crypt()
/external/qemu/android/utils/
Dintmap.c193 iter->magic[0] = ITER_MAGIC; in aintMapIterator_init()
194 iter->magic[1] = (void*)(ptrdiff_t) 0; in aintMapIterator_init()
195 iter->magic[2] = map; in aintMapIterator_init()
196 iter->magic[3] = NULL; in aintMapIterator_init()
205 if (iter == NULL || iter->magic[0] != ITER_MAGIC) in aintMapIterator_next()
208 map = iter->magic[2]; in aintMapIterator_next()
209 index = (int)(ptrdiff_t)iter->magic[1]; in aintMapIterator_next()
219 iter->magic[1] = (void*)(ptrdiff_t)index; in aintMapIterator_next()
/external/chromium/net/base/
Dmime_sniffer.cc114 const char* magic; member
119 #define MAGIC_NUMBER(mime_type, magic) \ argument
120 { (mime_type), (magic), sizeof(magic)-1, false },
123 #define MAGIC_STRING(mime_type, magic) \ argument
124 { (mime_type), (magic), sizeof(magic)-1, true },
253 match = (base::strncasecmp(magic_entry->magic, content, len) == 0); in MatchMagicNumber()
257 match = MagicCmp(magic_entry->magic, content, len); in MatchMagicNumber()
268 const MagicNumber* magic, size_t magic_len, in CheckForMagicNumbers() argument
272 if (MatchMagicNumber(content, size, &(magic[i]), result)) { in CheckForMagicNumbers()
/external/libvpx/nestegg/halloc/src/
Dhalloc.c29 long magic; member
79 p->magic = HH_MAGIC; in halloc()
88 assert(p->magic == HH_MAGIC); in halloc()
123 assert(b->magic == HH_MAGIC); in hattach()
132 assert(p->magic == HH_MAGIC); in hattach()
244 assert(p && p->magic == HH_MAGIC); in _free_children()
245 p->magic = 0; in _free_children()
/external/valgrind/main/helgrind/
Dhg_lock_n_thread.c49 return thr != NULL && thr->magic == Thread_MAGIC; in HG_()
68 || (lock->magic != LockN_MAGIC && lock->magic != LockP_MAGIC)) in is_sane_Lock_BASE()
104 && lock->magic == LockP_MAGIC in HG_()
111 && lock->magic == LockN_MAGIC in HG_()
/external/smali/dexlib/src/main/java/org/jf/dexlib/
DOdexHeader.java43 public final byte[] magic; field in OdexHeader
55 magic = in.readBytes(8); in OdexHeader()
57 if (Arrays.equals(MAGIC_35, magic)) { in OdexHeader()
59 } else if (Arrays.equals(MAGIC_36, magic)) { in OdexHeader()
/external/wpa_supplicant_8/src/utils/
Dwpabuf.c19 unsigned int magic; member
34 if (trace->magic != WPABUF_MAGIC) { in wpabuf_overflow()
36 trace->magic); in wpabuf_overflow()
61 if (trace->magic != WPABUF_MAGIC) { in wpabuf_resize()
63 trace->magic); in wpabuf_resize()
121 trace->magic = WPABUF_MAGIC; in wpabuf_alloc()
143 trace->magic = WPABUF_MAGIC; in wpabuf_alloc_ext_data()
189 if (trace->magic != WPABUF_MAGIC) { in wpabuf_free()
191 trace->magic); in wpabuf_free()
Dos_unix.c34 unsigned int magic; member
293 if (a->magic != ALLOC_MAGIC) { in os_program_deinit()
296 a, a->magic, (unsigned long) a->len); in os_program_deinit()
407 a->magic = ALLOC_MAGIC; in os_malloc()
425 if (a->magic != ALLOC_MAGIC) { in os_realloc()
427 a, a->magic, in os_realloc()
428 a->magic == FREED_MAGIC ? " (already freed)" : ""); in os_realloc()
451 if (a->magic != ALLOC_MAGIC) { in os_free()
453 a, a->magic, in os_free()
454 a->magic == FREED_MAGIC ? " (already freed)" : ""); in os_free()
[all …]
/external/e2fsprogs/e2fsck/
Dprof_err.et8 error_code PROF_MAGIC_NODE, "Bad magic value in profile_node"
19 error_code PROF_MAGIC_ITERATOR, "Bad magic value in profile iterator"
37 error_code PROF_MAGIC_PROFILE, "Bad magic value in profile_t"
38 error_code PROF_MAGIC_SECTION, "Bad magic value in profile_section_t"
49 error_code PROF_MAGIC_FILE, "Bad magic value in profile_file_t"
63 error_code PROF_MAGIC_FILE_DATA, "Bad magic value in profile_file_data_t"
/external/kernel-headers/original/linux/
Dspinlock_types.h26 unsigned int magic, owner_cpu; member
42 unsigned int magic, owner_cpu; member
69 .magic = SPINLOCK_MAGIC, \
75 .magic = RWLOCK_MAGIC, \
/external/icu4c/samples/ucnv/
Dflagcb.c145 if(q->magic != 0xC0FFEE) { in debugCB_print_log()
147 q,q->serial, q->magic); in debugCB_print_log()
150 q, q->serial, name, q->magic); in debugCB_print_log()
160 newCtx->magic = 0xC0FFEE; in debugCB_clone()
187 if(ctx->magic != 0xC0FFEE) { in debugCB_fromU()
188 …, "debugCB_fromU: Context %p:%d magic is 0x%x should be 0xC0FFEE.\n", ctx,ctx->serial, ctx->magic); in debugCB_fromU()
275 ctx->magic = 0xC0FFEE; in debugCB_openContext()
/external/qemu/block/
Dvmdk.c91 uint32_t magic; in vmdk_probe() local
95 magic = be32_to_cpu(*(uint32_t *)buf); in vmdk_probe()
96 if (magic == VMDK3_MAGIC || in vmdk_probe()
97 magic == VMDK4_MAGIC) in vmdk_probe()
365 uint32_t magic; in vmdk_open() local
368 if (bdrv_pread(bs->file, 0, &magic, sizeof(magic)) != sizeof(magic)) in vmdk_open()
371 magic = be32_to_cpu(magic); in vmdk_open()
372 if (magic == VMDK3_MAGIC) { in vmdk_open()
375 if (bdrv_pread(bs->file, sizeof(magic), &header, sizeof(header)) != sizeof(header)) in vmdk_open()
384 } else if (magic == VMDK4_MAGIC) { in vmdk_open()
[all …]
/external/e2fsprogs/lib/blkid/
Ddev.c106 int magic; member
119 iter->magic = DEV_ITERATE_MAGIC; in blkid_dev_iterate_begin()
133 if (!iter || iter->magic != DEV_ITERATE_MAGIC || !search_type || in blkid_dev_set_search()
161 if (!iter || iter->magic != DEV_ITERATE_MAGIC) in blkid_dev_next()
178 if (!iter || iter->magic != DEV_ITERATE_MAGIC) in blkid_dev_iterate_end()
180 iter->magic = 0; in blkid_dev_iterate_end()
/external/openssl/crypto/pem/
Dpvkfmt.c251 unsigned int bitlen, magic; in do_b2i() local
253 if (do_blob_header(&p, length, &magic, &bitlen, &isdss, &ispub) <= 0) in do_b2i()
274 unsigned int bitlen, magic, length; in do_b2i_bio() local
283 if (do_blob_header(&p, 16, &magic, &bitlen, &isdss, &ispub) <= 0) in do_b2i_bio()
478 static int check_bitlen_rsa(RSA *rsa, int ispub, unsigned int *magic);
479 static int check_bitlen_dsa(DSA *dsa, int ispub, unsigned int *magic);
487 unsigned int bitlen, magic = 0, keyalg; in do_i2b() local
491 bitlen = check_bitlen_dsa(pk->pkey.dsa, ispub, &magic); in do_i2b()
496 bitlen = check_bitlen_rsa(pk->pkey.rsa, ispub, &magic); in do_i2b()
525 write_ledword(&p, magic); in do_i2b()
[all …]
/external/kernel-headers/original/asm-arm/
Ducontext.h43 unsigned long magic; member
55 unsigned long magic; member
66 unsigned long magic; member

12345678910>>...18