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()
357 e->magic = p; in create_entry()
361 if (!e->magic[0]) in create_entry()
366 DUMP_PREFIX_NONE, e->magic, p - e->magic); in create_entry()
387 e->size = string_unescape_inplace(e->magic, UNESCAPE_HEX); in create_entry()
398 DUMP_PREFIX_NONE, e->magic, e->size); in create_entry()
410 masked[i] = e->magic[i] & e->mask[i]; in create_entry()
429 e->magic = p; in create_entry()
434 if (!e->magic[0] || strchr(e->magic, '/')) in create_entry()
436 pr_debug("register: extension: {%s}\n", e->magic); in create_entry()
530 sprintf(dp, "extension .%s\n", e->magic); in entry_status()
533 dp = bin2hex(dp, e->magic, e->size); in entry_status()