Lines Matching refs:magic_map

105 struct magic_map {  struct
129 private struct magic_map *apprentice_load(struct magic_set *, argument
139 private struct magic_map *apprentice_buf(struct magic_set *, struct magic *,
141 private struct magic_map *apprentice_map(struct magic_set *, const char *);
142 private int check_buffer(struct magic_set *, struct magic_map *, const char *);
143 private void apprentice_unmap(struct magic_map *);
144 private int apprentice_compile(struct magic_set *, struct magic_map *,
407 add_mlist(struct mlist *mlp, struct magic_map *map, size_t idx) in add_mlist()
432 struct magic_map *map; in apprentice_1()
454 if (map == (struct magic_map *)-1) in apprentice_1()
541 apprentice_unmap(struct magic_map *map) in apprentice_unmap()
595 apprentice_unmap(CAST(struct magic_map *, ml->map)); in mlist_free()
610 struct magic_map *map; in buffer_apprentice()
1325 private struct magic_map *
1333 struct magic_map *map; in apprentice_load()
1342 if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) in apprentice_load()
3005 private struct magic_map *
3008 struct magic_map *map; in apprentice_buf()
3010 if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) { in apprentice_buf()
3028 private struct magic_map *
3034 struct magic_map *map; in apprentice_map()
3035 struct magic_map *rv = NULL; in apprentice_map()
3038 if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) { in apprentice_map()
3085 rv = (struct magic_map *)-1; in apprentice_map()
3107 check_buffer(struct magic_set *ms, struct magic_map *map, const char *dbname) in check_buffer()
3166 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) in apprentice_compile()