Lines Matching refs:magic
57 char *magic; /* magic or filename extension */ member
107 if (p && !strcmp(e->magic, p + 1)) in check_file()
116 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file()
120 if ((*s++ ^ e->magic[j])) in check_file()
404 e->magic = p; in create_entry()
408 if (!e->magic[0]) in create_entry()
413 DUMP_PREFIX_NONE, e->magic, p - e->magic); in create_entry()
434 e->size = string_unescape_inplace(e->magic, UNESCAPE_HEX); in create_entry()
445 DUMP_PREFIX_NONE, e->magic, e->size); in create_entry()
457 masked[i] = e->magic[i] & e->mask[i]; in create_entry()
476 e->magic = p; in create_entry()
481 if (!e->magic[0] || strchr(e->magic, '/')) in create_entry()
483 pr_debug("register: extension: {%s}\n", e->magic); in create_entry()
577 sprintf(dp, "extension .%s\n", e->magic); in entry_status()
580 dp = bin2hex(dp, e->magic, e->size); in entry_status()