Lines Matching refs:magic

53 private int match(struct magic_set *, struct magic *, uint32_t,
57 struct magic *, size_t, size_t, unsigned int, int, int, int, uint16_t,
59 private int magiccheck(struct magic_set *, struct magic *);
60 private int32_t mprint(struct magic_set *, struct magic *);
61 private int32_t moffset(struct magic_set *, struct magic *);
64 const unsigned char *, uint32_t, size_t, struct magic *);
65 private int mconvert(struct magic_set *, struct magic *, int);
67 private int handle_annotation(struct magic_set *, struct magic *);
68 private void cvt_8(union VALUETYPE *, const struct magic *);
69 private void cvt_16(union VALUETYPE *, const struct magic *);
70 private void cvt_32(union VALUETYPE *, const struct magic *);
71 private void cvt_64(union VALUETYPE *, const struct magic *);
94 if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode, in file_softmagic()
107 file_fmtcheck(struct magic_set *ms, const struct magic *m, const char *def, in file_fmtcheck()
151 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, in match() argument
170 struct magic *m = &magic[magindex]; in match()
180 magic[magindex + 1].cont_level != 0 && in match()
220 magic[magindex + 1].cont_level != 0) in match()
253 magic[magindex + 1].cont_level != 0) { in match()
254 m = &magic[++magindex]; in match()
380 check_fmt(struct magic_set *ms, struct magic *m) in check_fmt()
403 mprint(struct magic_set *ms, struct magic *m) in mprint()
680 moffset(struct magic_set *ms, struct magic *m) in moffset()
857 cvt_8(union VALUETYPE *p, const struct magic *m) in cvt_8()
863 cvt_16(union VALUETYPE *p, const struct magic *m) in cvt_16()
869 cvt_32(union VALUETYPE *p, const struct magic *m) in cvt_32()
875 cvt_64(union VALUETYPE *p, const struct magic *m) in cvt_64()
898 cvt_float(union VALUETYPE *p, const struct magic *m) in cvt_float()
904 cvt_double(union VALUETYPE *p, const struct magic *m) in cvt_double()
915 mconvert(struct magic_set *ms, struct magic *m, int flip) in mconvert()
1072 const unsigned char *s, uint32_t offset, size_t nbytes, struct magic *m) in mcopy()
1199 mget(struct magic_set *ms, const unsigned char *s, struct magic *m, in mget()
1711 rv = match(ms, ml.magic, ml.nmagic, s, nbytes, offset + o, in mget()
1843 magiccheck(struct magic_set *ms, struct magic *m) in magiccheck()
2176 handle_annotation(struct magic_set *ms, struct magic *m) in handle_annotation()