H A D | softmagic.c | 69 file_softmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes, int mode) argument 73 for (ml = ms->mlist->next; ml != ms->mlist; ml = ml->next) 74 if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, mode)) != 0) 108 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, argument 117 int print = (ms->flags & (MAGIC_MIME|MAGIC_APPLE)) == 0; 119 if (file_check_mem(ms, cont_level) == -1) 134 ms->offset = m->offset; 135 ms->line = m->lineno; 138 switch (mget(ms, 314 check_fmt(struct magic_set *ms, struct magic *m) argument 355 mprint(struct magic_set *ms, struct magic *m) argument 581 moffset(struct magic_set *ms, struct magic *m) argument 767 mconvert(struct magic_set *ms, struct magic *m) argument 917 mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir, const unsigned char *s, uint32_t offset, size_t nbytes, size_t linecnt) argument 1027 mget(struct magic_set *ms, const unsigned char *s, struct magic *m, size_t nbytes, unsigned int cont_level) argument 1679 magiccheck(struct magic_set *ms, struct magic *m) argument 1985 handle_annotation(struct magic_set *ms, struct magic *m) argument 2001 print_sep(struct magic_set *ms, int firstline) argument [all...] |