Searched refs:magic_rxcomp (Results 1 – 3 of 3) sorted by relevance
| /src/contrib/file/src/ |
| H A D | apprentice.c | 455 ml->magic_rxcomp = CAST(file_regex_t **, in add_mlist() 456 calloc(ml->nmagic, sizeof(*ml->magic_rxcomp))); in add_mlist() 457 if (ml->magic_rxcomp == NULL) { in add_mlist() 462 ml->magic_rxcomp = NULL; in add_mlist() 665 if (ml->magic_rxcomp[i]) { in mlist_free_one() 666 file_regfree(ml->magic_rxcomp[i]); in mlist_free_one() 667 free(ml->magic_rxcomp[i]); in mlist_free_one() 668 ml->magic_rxcomp[i] = NULL; in mlist_free_one() 671 free(ml->magic_rxcomp); in mlist_free_one() 672 ml->magic_rxcomp = NULL; in mlist_free_one() [all …]
|
| H A D | softmagic.c | 136 int ret = match(ms, ml->magic, ml->magic_rxcomp, ml->nmagic, b, in file_softmagic() 208 match(struct magic_set *ms, struct magic *magic, file_regex_t **magic_rxcomp, in match() argument 236 file_regex_t **m_rxcomp = &magic_rxcomp[magindex]; in match() 337 m_rxcomp = &magic_rxcomp[magindex]; in match() 1901 if ((rv = match(ms, mlp->magic, mlp->magic_rxcomp, in mget() 1955 rv = match(ms, ml.magic, ml.magic_rxcomp, ml.nmagic, b, in mget()
|
| H A D | file.h | 434 file_regex_t **magic_rxcomp; /* array of compiled regexps */ member
|