Lines Matching refs:magic_map

114 struct magic_map {  struct
138 private struct magic_map *apprentice_load(struct magic_set *, argument
148 private struct magic_map *apprentice_buf(struct magic_set *, struct magic *,
150 private struct magic_map *apprentice_map(struct magic_set *, const char *);
151 private int check_buffer(struct magic_set *, struct magic_map *, const char *);
152 private void apprentice_unmap(struct magic_map *);
153 private int apprentice_compile(struct magic_set *, struct magic_map *,
385 add_mlist(struct mlist *mlp, struct magic_map *map, size_t idx) in add_mlist()
410 struct magic_map *map; in apprentice_1()
429 if (map == (struct magic_map *)-1) in apprentice_1()
521 apprentice_unmap(struct magic_map *map) in apprentice_unmap()
562 apprentice_unmap(CAST(struct magic_map *, ml->map)); in mlist_free()
1266 private struct magic_map *
1274 struct magic_map *map; in apprentice_load()
1284 if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) in apprentice_load()
2931 private struct magic_map *
2934 struct magic_map *map; in apprentice_buf()
2936 if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) { in apprentice_buf()
2954 private struct magic_map *
2961 struct magic_map *map; in apprentice_map()
2968 if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) { in apprentice_map()
3099 check_buffer(struct magic_set *ms, struct magic_map *map, const char *dbname) in check_buffer()
3158 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) in apprentice_compile()