Lines Matching refs:magic_set

129 private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
131 private const char *getstr(struct magic_set *, struct magic *, const char *,
133 private int parse(struct magic_set *, struct magic_entry *, const char *,
136 private int apprentice_1(struct magic_set *, const char *, int);
140 private struct magic_map *apprentice_load(struct magic_set *,
143 private void mlist_free_all(struct magic_set *);
150 private char *mkdbname(struct magic_set *, const char *, int);
151 private struct magic_map *apprentice_map(struct magic_set *, const char *);
153 private int apprentice_compile(struct magic_set *, struct magic_map *,
156 private int check_format(struct magic_set *, struct magic *);
158 private int parse_mime(struct magic_set *, struct magic_entry *, const char *,
160 private int parse_strength(struct magic_set *, struct magic_entry *,
162 private int parse_apple(struct magic_set *, struct magic_entry *, const char *,
164 private int parse_ext(struct magic_set *, struct magic_entry *, const char *,
175 int (*fun)(struct magic_set *, struct magic_entry *, const char *,
424 apprentice_1(struct magic_set *ms, const char *fn, int action) in apprentice_1()
484 file_ms_free(struct magic_set *ms) in file_ms_free()
503 protected struct magic_set *
506 struct magic_set *ms; in file_ms_alloc()
509 if ((ms = CAST(struct magic_set *, ecalloc(CAST(size_t, 1u), in file_ms_alloc()
510 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()
1445 file_signextend(struct magic_set *ms, struct magic *m, uint64_t v) in file_signextend()
1522 string_modifier_check(struct magic_set *ms, struct magic *m) in string_modifier_check()
1633 check_cond(struct magic_set *ms, int cond, uint32_t cont_level) in check_cond()
1677 parse_indirect_modifier(struct magic_set *ms, struct magic *m, const char **lp) in parse_indirect_modifier()
1698 parse_op_modifier(struct magic_set *ms, struct magic *m, const char **lp, in parse_op_modifier()
1715 parse_string_modifier(struct magic_set *ms, struct magic *m, const char **lp) in parse_string_modifier()
1819 parse(struct magic_set *ms, struct magic_entry *me, const char *line, in parse()
2232 parse_strength(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_strength()
2294 parse_extra(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_extra()
2346 parse_apple(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_apple()
2360 parse_ext(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_ext()
2375 parse_mime(struct magic_set *ms, struct magic_entry *me, const char *line, in parse_mime()
2581 check_format(struct magic_set *ms, struct magic *m) in check_format()
2637 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action) in getvalue()
2764 getstr(struct magic_set *ms, struct magic *m, const char *s, int warn) in getstr()
3032 apprentice_map(struct magic_set *ms, const char *fn) in apprentice_map()
3178 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) in apprentice_compile()
3236 mkdbname(struct magic_set *ms, const char *fn, int strip)
3373 file_pstring_length_size(struct magic_set *ms, const struct magic *m)
3392 file_pstring_get_length(struct magic_set *ms, const struct magic *m,
3445 file_magicfind(struct magic_set *ms, const char *name, struct mlist *v)