Searched refs:magic_rxcomp (Results 1 – 3 of 3) sorted by relevance
| /netbsd/src/external/bsd/file/dist/src/ |
| D | apprentice.c | 461 ml->magic_rxcomp = CAST(file_regex_t **, in add_mlist() 462 calloc(ml->nmagic, sizeof(*ml->magic_rxcomp))); in add_mlist() 463 if (ml->magic_rxcomp == NULL) { in add_mlist() 468 ml->magic_rxcomp = NULL; in add_mlist() 667 if (ml->magic_rxcomp[i]) { in mlist_free_one() 668 file_regfree(ml->magic_rxcomp[i]); in mlist_free_one() 669 free(ml->magic_rxcomp[i]); in mlist_free_one() 670 ml->magic_rxcomp[i] = NULL; in mlist_free_one() 673 free(ml->magic_rxcomp); in mlist_free_one() 674 ml->magic_rxcomp = NULL; in mlist_free_one() [all …]
|
| D | softmagic.c | 142 int ret = match(ms, ml->magic, ml->magic_rxcomp, ml->nmagic, b, in file_softmagic() 214 match(struct magic_set *ms, struct magic *magic, file_regex_t **magic_rxcomp, in match() argument 242 file_regex_t **m_rxcomp = &magic_rxcomp[magindex]; in match() 343 m_rxcomp = &magic_rxcomp[magindex]; in match() 1903 if ((rv = match(ms, mlp->magic, mlp->magic_rxcomp, in mget() 1957 rv = match(ms, ml.magic, ml.magic_rxcomp, ml.nmagic, b, in mget()
|
| D | file.h | 425 file_regex_t **magic_rxcomp; /* array of compiled regexps */ member
|