Lines Matching refs:magic
59 private int match(struct magic_set *, struct magic *, uint32_t,
63 struct magic *, size_t, size_t, unsigned int, int, int, int, int, int *,
65 private int magiccheck(struct magic_set *, struct magic *);
66 private int32_t mprint(struct magic_set *, struct magic *);
67 private int32_t moffset(struct magic_set *, struct magic *);
70 const unsigned char *, uint32_t, size_t, struct magic *);
71 private int mconvert(struct magic_set *, struct magic *, int);
73 private int handle_annotation(struct magic_set *, struct magic *);
74 private void cvt_8(union VALUETYPE *, const struct magic *);
75 private void cvt_16(union VALUETYPE *, const struct magic *);
76 private void cvt_32(union VALUETYPE *, const struct magic *);
77 private void cvt_64(union VALUETYPE *, const struct magic *);
93 if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode, in file_softmagic()
129 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, in match() argument
148 struct magic *m = &magic[magindex]; in match()
158 magic[magindex + 1].cont_level != 0 && in match()
198 magic[magindex + 1].cont_level != 0) in match()
230 while (magindex + 1 < nmagic && magic[magindex+1].cont_level != 0 && in match()
232 m = &magic[magindex]; in match()
357 check_fmt(struct magic_set *ms, struct magic *m) in check_fmt()
378 mprint(struct magic_set *ms, struct magic *m) in mprint()
653 moffset(struct magic_set *ms, struct magic *m) in moffset()
830 cvt_8(union VALUETYPE *p, const struct magic *m) in cvt_8()
836 cvt_16(union VALUETYPE *p, const struct magic *m) in cvt_16()
842 cvt_32(union VALUETYPE *p, const struct magic *m) in cvt_32()
848 cvt_64(union VALUETYPE *p, const struct magic *m) in cvt_64()
871 cvt_float(union VALUETYPE *p, const struct magic *m) in cvt_float()
877 cvt_double(union VALUETYPE *p, const struct magic *m) in cvt_double()
888 mconvert(struct magic_set *ms, struct magic *m, int flip) in mconvert()
1044 const unsigned char *s, uint32_t offset, size_t nbytes, struct magic *m) in mcopy()
1162 mget(struct magic_set *ms, const unsigned char *s, struct magic *m, in mget()
1791 rv = match(ms, ml.magic, ml.nmagic, s, nbytes, offset + o, in mget()
1924 magiccheck(struct magic_set *ms, struct magic *m) in magiccheck()
2271 handle_annotation(struct magic_set *ms, struct magic *m) in handle_annotation()