Lines Matching refs:magic

29  * softmagic - interpret variable magic from MAGIC
38 #include "magic.h"
46 private int match(struct magic_set *, struct magic *, uint32_t,
50 struct magic *, size_t, size_t, unsigned int, int, int, int, uint16_t *,
52 private int magiccheck(struct magic_set *, struct magic *);
53 private int32_t mprint(struct magic_set *, struct magic *);
54 private int moffset(struct magic_set *, struct magic *, size_t, int32_t *);
57 const unsigned char *, uint32_t, size_t, struct magic *);
58 private int mconvert(struct magic_set *, struct magic *, int);
60 private int handle_annotation(struct magic_set *, struct magic *, int);
61 private int cvt_8(union VALUETYPE *, const struct magic *);
62 private int cvt_16(union VALUETYPE *, const struct magic *);
63 private int cvt_32(union VALUETYPE *, const struct magic *);
64 private int cvt_64(union VALUETYPE *, const struct magic *);
108 if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode,
121 file_fmtcheck(struct magic_set *ms, const struct magic *m, const char *def,
163 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic,
182 struct magic *m = &magic[magindex];
193 magic[magindex + 1].cont_level != 0)
270 magic[magindex + 1].cont_level != 0) {
271 m = &magic[++magindex];
407 check_fmt(struct magic_set *ms, struct magic *m)
446 mprint(struct magic_set *ms, struct magic *m)
720 moffset(struct magic_set *ms, struct magic *m, size_t nbytes, int32_t *op)
953 cvt_8(union VALUETYPE *p, const struct magic *m)
960 cvt_16(union VALUETYPE *p, const struct magic *m)
967 cvt_32(union VALUETYPE *p, const struct magic *m)
974 cvt_64(union VALUETYPE *p, const struct magic *m)
1000 cvt_float(union VALUETYPE *p, const struct magic *m)
1007 cvt_double(union VALUETYPE *p, const struct magic *m)
1019 mconvert(struct magic_set *ms, struct magic *m, int flip)
1177 const unsigned char *s, uint32_t offset, size_t nbytes, struct magic *m)
1301 do_ops(struct magic *m, intmax_t lhs, intmax_t off)
1340 mget(struct magic_set *ms, const unsigned char *s, struct magic *m,
1497 /* Verify we have enough data to match magic type */
1602 rv = match(ms, ml.magic, ml.nmagic, s, nbytes, offset + o,
1707 magiccheck(struct magic_set *ms, struct magic *m)
2038 handle_annotation(struct magic_set *ms, struct magic *m, int firstline)