Lines Matching refs:magic_map

96 struct magic_map {  struct
120 private struct magic_map *apprentice_load(struct magic_set *, argument
131 private struct magic_map *apprentice_buf(struct magic_set *, struct magic *,
133 private struct magic_map *apprentice_map(struct magic_set *, const char *);
134 private int check_buffer(struct magic_set *, struct magic_map *, const char *);
135 private void apprentice_unmap(struct magic_map *);
136 private int apprentice_compile(struct magic_set *, struct magic_map *,
417 add_mlist(struct mlist *mlp, struct magic_map *map, size_t idx) in add_mlist()
442 struct magic_map *map; in apprentice_1()
556 apprentice_unmap(struct magic_map *map) in apprentice_unmap()
614 apprentice_unmap(CAST(struct magic_map *, ml->map)); in mlist_free_one()
642 struct magic_map *map; in buffer_apprentice()
1379 private struct magic_map *
1387 struct magic_map *map; in apprentice_load()
1396 if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) in apprentice_load()
3088 private struct magic_map *
3091 struct magic_map *map; in apprentice_buf()
3093 if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) { in apprentice_buf()
3111 private struct magic_map *
3117 struct magic_map *map; in apprentice_map()
3118 struct magic_map *rv = NULL; in apprentice_map()
3121 if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) { in apprentice_map()
3188 check_buffer(struct magic_set *ms, struct magic_map *map, const char *dbname) in check_buffer()
3247 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) in apprentice_compile()