Lines Matching refs:magic

50 private int match(struct magic_set *, struct magic *, uint32_t,
54 struct magic *, size_t, size_t, unsigned int, int, int, int, int, int *,
56 private int magiccheck(struct magic_set *, struct magic *);
57 private int32_t mprint(struct magic_set *, struct magic *);
58 private int32_t moffset(struct magic_set *, struct magic *);
61 const unsigned char *, uint32_t, size_t, struct magic *);
62 private int mconvert(struct magic_set *, struct magic *, int);
64 private int handle_annotation(struct magic_set *, struct magic *);
65 private void cvt_8(union VALUETYPE *, const struct magic *);
66 private void cvt_16(union VALUETYPE *, const struct magic *);
67 private void cvt_32(union VALUETYPE *, const struct magic *);
68 private void cvt_64(union VALUETYPE *, const struct magic *);
84 if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode, in file_softmagic()
120 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, in match() argument
139 struct magic *m = &magic[magindex]; in match()
149 magic[magindex + 1].cont_level != 0 && in match()
189 magic[magindex + 1].cont_level != 0) in match()
219 while (magindex + 1 < nmagic && magic[magindex+1].cont_level != 0 && in match()
221 m = &magic[magindex]; in match()
343 check_fmt(struct magic_set *ms, struct magic *m) in check_fmt()
362 mprint(struct magic_set *ms, struct magic *m) in mprint()
618 moffset(struct magic_set *ms, struct magic *m) in moffset()
796 cvt_8(union VALUETYPE *p, const struct magic *m) in cvt_8()
802 cvt_16(union VALUETYPE *p, const struct magic *m) in cvt_16()
808 cvt_32(union VALUETYPE *p, const struct magic *m) in cvt_32()
814 cvt_64(union VALUETYPE *p, const struct magic *m) in cvt_64()
837 cvt_float(union VALUETYPE *p, const struct magic *m) in cvt_float()
843 cvt_double(union VALUETYPE *p, const struct magic *m) in cvt_double()
854 mconvert(struct magic_set *ms, struct magic *m, int flip) in mconvert()
1009 const unsigned char *s, uint32_t offset, size_t nbytes, struct magic *m) in mcopy()
1130 mget(struct magic_set *ms, const unsigned char *s, struct magic *m, in mget()
1757 rv = match(ms, ml.magic, ml.nmagic, s, nbytes, offset + o, in mget()
1889 magiccheck(struct magic_set *ms, struct magic *m) in magiccheck()
2296 handle_annotation(struct magic_set *ms, struct magic *m) in handle_annotation()