Home
last modified time | relevance | path

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

12345678910>>...16

/external/llvm/lib/Support/
DPath.cpp52 sys::IdentifyFileType(const char *magic, unsigned length) { in IdentifyFileType() argument
53 assert(magic && "Invalid magic number string"); in IdentifyFileType()
55 switch ((unsigned char)magic[0]) { in IdentifyFileType()
57 if (magic[1] == (char)0xC0 && magic[2] == (char)0x17 && in IdentifyFileType()
58 magic[3] == (char)0x0B) in IdentifyFileType()
62 if (magic[1] == 'C' && magic[2] == (char)0xC0 && magic[3] == (char)0xDE) in IdentifyFileType()
67 if (memcmp(magic,"!<arch>\n",8) == 0) in IdentifyFileType()
72 if (magic[1] == 'E' && magic[2] == 'L' && magic[3] == 'F') { in IdentifyFileType()
73 if (length >= 18 && magic[17] == 0) in IdentifyFileType()
74 switch (magic[16]) { in IdentifyFileType()
[all …]
/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
Dbadblocks.c42 bb->magic = EXT2_ET_MAGIC_BADBLOCKS_LIST; in make_u32_list()
166 if (bb->magic != EXT2_ET_MAGIC_BADBLOCKS_LIST) in ext2fs_u32_list_find()
248 iter->magic = EXT2_ET_MAGIC_BADBLOCKS_ITERATE; in ext2fs_u32_list_iterate_begin()
267 if (iter->magic != EXT2_ET_MAGIC_BADBLOCKS_ITERATE) in ext2fs_u32_list_iterate()
272 if (bb->magic != EXT2_ET_MAGIC_BADBLOCKS_LIST) in ext2fs_u32_list_iterate()
292 if (!iter || (iter->magic != EXT2_ET_MAGIC_BADBLOCKS_ITERATE)) in ext2fs_u32_list_iterate_end()
/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/bluetooth/glib/gthread/
Dgthread-impl.c98 const gulong magic, in g_mutex_lock_errorcheck_impl() argument
102 gchar *loc = (magic == G_MUTEX_DEBUG_MAGIC) ? location : "unknown"; in g_mutex_lock_errorcheck_impl()
120 const gulong magic, in g_mutex_trylock_errorcheck_impl() argument
124 gchar *loc = (magic == G_MUTEX_DEBUG_MAGIC) ? location : "unknown"; in g_mutex_trylock_errorcheck_impl()
145 const gulong magic, in g_mutex_unlock_errorcheck_impl() argument
149 gchar *loc = (magic == G_MUTEX_DEBUG_MAGIC) ? location : "unknown"; in g_mutex_unlock_errorcheck_impl()
170 const gulong magic, in g_mutex_free_errorcheck_impl() argument
174 gchar *loc = (magic == G_MUTEX_DEBUG_MAGIC) ? location : "unknown"; in g_mutex_free_errorcheck_impl()
187 const gulong magic, in g_cond_wait_errorcheck_impl() argument
191 gchar *loc = (magic == G_MUTEX_DEBUG_MAGIC) ? location : "unknown"; in g_cond_wait_errorcheck_impl()
[all …]
/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/wpa_supplicant_8/src/utils/
Dos_unix.c38 unsigned int magic; member
279 if (a->magic != ALLOC_MAGIC) { in os_program_deinit()
282 a, a->magic, (unsigned long) a->len); in os_program_deinit()
393 a->magic = ALLOC_MAGIC; in os_malloc()
411 if (a->magic != ALLOC_MAGIC) { in os_realloc()
413 a, a->magic, in os_realloc()
414 a->magic == FREED_MAGIC ? " (already freed)" : ""); in os_realloc()
437 if (a->magic != ALLOC_MAGIC) { in os_free()
439 a, a->magic, in os_free()
440 a->magic == FREED_MAGIC ? " (already freed)" : ""); in os_free()
[all …]
Dwpabuf.c25 unsigned int magic; member
40 if (trace->magic != WPABUF_MAGIC) { in wpabuf_overflow()
42 trace->magic); in wpabuf_overflow()
67 if (trace->magic != WPABUF_MAGIC) { in wpabuf_resize()
69 trace->magic); in wpabuf_resize()
126 trace->magic = WPABUF_MAGIC; in wpabuf_alloc()
147 trace->magic = WPABUF_MAGIC; in wpabuf_alloc_ext_data()
192 if (trace->magic != WPABUF_MAGIC) { in wpabuf_free()
194 trace->magic); in wpabuf_free()
/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/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/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/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/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/chromium/net/data/cache_tests/list_loop2/
Dcontents.txt2 magic: c103cac3
32 magic: c104cac3
51 magic: c104cac3
70 magic: c104cac3
89 magic: c104cac3
/external/qemu/android/
Dsnapshot.c266 uint32_t magic, version; in snapshot_validate_qcow_file() local
267 read_or_die(fd, &magic, sizeof(magic)); in snapshot_validate_qcow_file()
269 be32_to_cpus(&magic); in snapshot_validate_qcow_file()
272 if (magic != QCOW_MAGIC) { in snapshot_validate_qcow_file()
274 QCOW_MAGIC, magic); in snapshot_validate_qcow_file()
/external/chromium/net/data/cache_tests/dirty_entry4/
Dcontents.txt2 magic: c103cac3
32 magic: c104cac3
51 magic: c104cac3
70 magic: c104cac3
89 magic: c104cac3
/external/chromium/net/data/cache_tests/dirty_entry5/
Dcontents.txt2 magic: c103cac3
32 magic: c104cac3
51 magic: c104cac3
70 magic: c104cac3
89 magic: c104cac3

12345678910>>...16