Lines Matching defs:magic
6 * binfmt_misc detects binaries via a magic or filename extension and invokes
48 int offset; /* offset of magic */
49 int size; /* size of magic/mask */
50 char *magic; /* magic or filename extension */
81 if (p && !strcmp(e->magic, p + 1))
89 if ((*s++ ^ e->magic[j]) & e->mask[j])
93 if ((*s++ ^ e->magic[j]))
297 * ':name:type:offset:magic:mask:interpreter:flags'
353 e->magic = p;
358 if (!e->magic[0])
367 e->size = unquote(e->magic);
377 e->magic = p;
382 if (!e->magic[0] || strchr(e->magic, '/'))
477 sprintf(dp, "extension .%s\n", e->magic);
484 sprintf(dp, "%02x", 0xff & (int) (e->magic[i]));