Lines Matching refs:magic_map
67 -private struct magic_map *apprentice_buf(struct magic_set *, struct magic *,
69 private struct magic_map *apprentice_map(struct magic_set *, const char *);
70 -private int check_buffer(struct magic_set *, struct magic_map *, const char *);
71 private void apprentice_unmap(struct magic_map *);
72 private int apprentice_compile(struct magic_set *, struct magic_map *,
172 apprentice_unmap(struct magic_map *map)
227 apprentice_unmap(CAST(struct magic_map *, ml->map));
245 - struct magic_map *map;
415 private struct magic_map *
424 struct magic_map *map;
436 - if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL)
437 + if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL)
618 -private struct magic_map *
621 - struct magic_map *map;
623 - if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) {
641 private struct magic_map *
650 struct magic_map *map;
651 - struct magic_map *rv = NULL;
659 - if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) {
660 + if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) {
756 -check_buffer(struct magic_set *ms, struct magic_map *map, const char *dbname)