Lines Matching refs:magic_set
117 file_private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
119 file_private const char *getstr(struct magic_set *, struct magic *, const char *,
121 file_private int parse(struct magic_set *, struct magic_entry *, const char *,
124 file_private int apprentice_1(struct magic_set *, const char *, int);
128 file_private struct magic_map *apprentice_load(struct magic_set *,
131 file_private void mlist_free_all(struct magic_set *);
150 file_private char *mkdbname(struct magic_set *, const char *, int);
151 file_private struct magic_map *apprentice_map(struct magic_set *, const char *);
153 file_private int apprentice_compile(struct magic_set *, struct magic_map *,
156 file_private int check_format(struct magic_set *, struct magic *);
158 file_private int parse_mime(struct magic_set *, struct magic_entry *, const char *,
160 file_private int parse_strength(struct magic_set *, struct magic_entry *,
162 file_private int parse_apple(struct magic_set *, struct magic_entry *, const char *,
164 file_private int parse_ext(struct magic_set *, struct magic_entry *, const char *,
175 int (*fun)(struct magic_set *, struct magic_entry *, const char *,
197 struct magic_set *ms; in main()
467 apprentice_1(struct magic_set *ms, const char *fn, int action) in apprentice_1()
526 file_ms_free(struct magic_set *ms) in file_ms_free()
548 file_protected struct magic_set *
551 struct magic_set *ms; in file_ms_alloc()
554 if ((ms = CAST(struct magic_set *, ecalloc(CAST(size_t, 1u), in file_ms_alloc()
627 mlist_free_all(struct magic_set *ms) in mlist_free_all()
663 file_apprentice(struct magic_set *ms, const char *fn, int action) in file_apprentice()
1228 addentry(struct magic_set *ms, struct magic_entry *me, in addentry()
1257 load_1(struct magic_set *ms, int action, const char *fn, int *errs, in load_1()
1357 set_text_binary(struct magic_set *ms, struct magic_entry *me, uint32_t nme, in set_text_binary()
1390 set_last_default(struct magic_set *ms, struct magic_entry *me, uint32_t nme) in set_last_default()
1411 coalesce_entries(struct magic_set *ms, struct magic_entry *me, uint32_t nme, in coalesce_entries()
1454 apprentice_load(struct magic_set *ms, const char *fn, int action) in apprentice_load()
1578 file_signextend(struct magic_set *ms, struct magic *m, uint64_t v) in file_signextend()
1664 string_modifier_check(struct magic_set *ms, struct magic *m) in string_modifier_check()
1775 check_cond(struct magic_set *ms, int cond, uint32_t cont_level) in check_cond()
1819 parse_indirect_modifier(struct magic_set *ms, struct magic *m, const char **lp) in parse_indirect_modifier()
1840 parse_op_modifier(struct magic_set *ms, struct magic *m, const char **lp, in parse_op_modifier()
1857 parse_string_modifier(struct magic_set *ms, struct magic *m, const char **lp) in parse_string_modifier()
1964 parse(struct magic_set *ms, struct magic_entry *me, const char *line, in parse()
2381 parse_strength(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_strength()
2447 parse_extra(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_extra()
2500 parse_apple(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_apple()
2512 parse_ext(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_ext()
2527 parse_mime(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_mime()
2730 check_format(struct magic_set *ms, struct magic *m) in check_format()
2786 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action) in getvalue()
2923 getstr(struct magic_set *ms, struct magic *m, const char *s, int warn) in getstr()
3206 apprentice_map(struct magic_set *ms, const char *fn) in apprentice_map()
3352 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) in apprentice_compile()
3410 mkdbname(struct magic_set *ms, const char *fn, int strip)
3579 file_pstring_length_size(struct magic_set *ms, const struct magic *m)
3598 file_pstring_get_length(struct magic_set *ms, const struct magic *m,
3651 file_magicfind(struct magic_set *ms, const char *name, struct mlist *v)