Lines Matching refs:magic_set

130 private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
132 private const char *getstr(struct magic_set *, struct magic *, const char *,
134 private int parse(struct magic_set *, struct magic_entry *, const char *,
137 private int apprentice_1(struct magic_set *, const char *, int);
141 private struct magic_map *apprentice_load(struct magic_set *,
144 private void mlist_free_all(struct magic_set *);
151 private char *mkdbname(struct magic_set *, const char *, int);
152 private struct magic_map *apprentice_map(struct magic_set *, const char *);
154 private int apprentice_compile(struct magic_set *, struct magic_map *,
157 private int check_format(struct magic_set *, struct magic *);
159 private int parse_mime(struct magic_set *, struct magic_entry *, const char *,
161 private int parse_strength(struct magic_set *, struct magic_entry *,
163 private int parse_apple(struct magic_set *, struct magic_entry *, const char *,
165 private int parse_ext(struct magic_set *, struct magic_entry *, const char *,
176 int (*fun)(struct magic_set *, struct magic_entry *, const char *,
425 apprentice_1(struct magic_set *ms, const char *fn, int action) in apprentice_1()
485 file_ms_free(struct magic_set *ms) in file_ms_free()
504 protected struct magic_set *
507 struct magic_set *ms; in file_ms_alloc()
510 if ((ms = CAST(struct magic_set *, ecalloc(CAST(size_t, 1u), in file_ms_alloc()
511 sizeof(struct magic_set)))) == NULL) in file_ms_alloc()
577 mlist_free_all(struct magic_set *ms) in mlist_free_all()
613 file_apprentice(struct magic_set *ms, const char *fn, int action) in file_apprentice()
1103 addentry(struct magic_set *ms, struct magic_entry *me, in addentry()
1130 load_1(struct magic_set *ms, int action, const char *fn, int *errs, in load_1()
1230 set_text_binary(struct magic_set *ms, struct magic_entry *me, uint32_t nme, in set_text_binary()
1263 set_last_default(struct magic_set *ms, struct magic_entry *me, uint32_t nme) in set_last_default()
1284 coalesce_entries(struct magic_set *ms, struct magic_entry *me, uint32_t nme, in coalesce_entries()
1321 apprentice_load(struct magic_set *ms, const char *fn, int action) in apprentice_load()
1442 file_signextend(struct magic_set *ms, struct magic *m, uint64_t v) in file_signextend()
1519 string_modifier_check(struct magic_set *ms, struct magic *m) in string_modifier_check()
1630 check_cond(struct magic_set *ms, int cond, uint32_t cont_level) in check_cond()
1674 parse_indirect_modifier(struct magic_set *ms, struct magic *m, const char **lp) in parse_indirect_modifier()
1695 parse_op_modifier(struct magic_set *ms, struct magic *m, const char **lp, in parse_op_modifier()
1712 parse_string_modifier(struct magic_set *ms, struct magic *m, const char **lp) in parse_string_modifier()
1816 parse(struct magic_set *ms, struct magic_entry *me, const char *line, in parse()
2222 parse_strength(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_strength()
2284 parse_extra(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_extra()
2336 parse_apple(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_apple()
2350 parse_ext(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_ext()
2365 parse_mime(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_mime()
2571 check_format(struct magic_set *ms, struct magic *m) in check_format()
2627 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action) in getvalue()
2754 getstr(struct magic_set *ms, struct magic *m, const char *s, int warn) in getstr()
3022 apprentice_map(struct magic_set *ms, const char *fn) in apprentice_map()
3168 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) in apprentice_compile()
3226 mkdbname(struct magic_set *ms, const char *fn, int strip)
3363 file_pstring_length_size(struct magic_set *ms, const struct magic *m)
3382 file_pstring_get_length(struct magic_set *ms, const struct magic *m,
3435 file_magicfind(struct magic_set *ms, const char *name, struct mlist *v)