Lines Matching refs:magic
51 char *magic; /* magic or filename extension */ member
82 if (p && !strcmp(e->magic, p + 1)) in check_file()
90 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file()
94 if ((*s++ ^ e->magic[j])) in check_file()
346 e->magic = p; in create_entry()
351 if (!e->magic[0]) in create_entry()
360 e->size = unquote(e->magic); in create_entry()
370 e->magic = p; in create_entry()
375 if (!e->magic[0] || strchr(e->magic, '/')) in create_entry()
470 sprintf(dp, "extension .%s\n", e->magic); in entry_status()
477 sprintf(dp, "%02x", 0xff & (int) (e->magic[i])); in entry_status()