Lines Matching refs:magic_map
108 struct magic_map { struct
132 file_private struct magic_map *apprentice_load(struct magic_set *, argument
155 file_private struct magic_map *apprentice_buf(struct magic_set *, struct magic *,
157 file_private struct magic_map *apprentice_map(struct magic_set *, const char *);
158 file_private int check_buffer(struct magic_set *, struct magic_map *, const char *);
159 file_private void apprentice_unmap(struct magic_map *);
160 file_private int apprentice_compile(struct magic_set *, struct magic_map *,
449 add_mlist(struct mlist *mlp, struct magic_map *map, size_t idx) in add_mlist()
482 struct magic_map *map; in apprentice_1()
603 apprentice_unmap(struct magic_map *map) in apprentice_unmap()
664 apprentice_unmap(CAST(struct magic_map *, ml->map)); in mlist_free_one()
701 struct magic_map *map; in buffer_apprentice()
1513 file_private struct magic_map *
1521 struct magic_map *map; in apprentice_load()
1530 if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) in apprentice_load()
3260 file_private struct magic_map *
3263 struct magic_map *map; in apprentice_buf()
3265 if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) { in apprentice_buf()
3283 file_private struct magic_map *
3289 struct magic_map *map; in apprentice_map()
3290 struct magic_map *rv = NULL; in apprentice_map()
3293 if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) { in apprentice_map()
3360 check_buffer(struct magic_set *ms, struct magic_map *map, const char *dbname) in check_buffer()
3419 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) in apprentice_compile()