Home
last modified time | relevance | path

Searched refs:mlist (Results 1 – 5 of 5) sorted by relevance

/PHP-8.2/ext/fileinfo/libmagic/
H A Dapprentice.c568 struct mlist *mlist; in mlist_alloc() local
569 if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) { in mlist_alloc()
572 mlist->next = mlist->prev = mlist; in mlist_alloc()
573 return mlist; in mlist_alloc()
596 mlist_free(struct mlist *mlist) in mlist_free() argument
603 for (ml = mlist->next; ml != mlist;) { in mlist_free()
986 apprentice_list(struct mlist *mlist, int mode) in apprentice_list() argument
990 for (ml = mlist->next; ml != mlist; ml = ml->next) { in apprentice_list()
3448 struct mlist *mlist, *ml; local
3450 mlist = ms->mlist[1];
[all …]
H A Dfile.h389 struct mlist { struct
393 struct mlist *next, *prev; argument
423 struct mlist *mlist[MAGIC_SETS]; /* list of regular entries */ member
515 protected int file_magicfind(struct magic_set *, const char *, struct mlist *);
H A Dsoftmagic.c124 struct mlist *ml; in file_softmagic()
137 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next) in file_softmagic()
1562 struct mlist ml; in mget()
H A Dfuncs.c516 if (checkloaded && ms->mlist[0] == NULL) { in file_reset()
/PHP-8.2/ext/fileinfo/
H A Dlibmagic.patch115 struct mlist *ml;
126 mlist_free(ms->mlist[i]);
215 private struct mlist *
218 struct mlist *mlist;
219 - if ((mlist = CAST(struct mlist *, calloc(1, sizeof(*mlist)))) == NULL) {
220 + if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) {
223 mlist->next = mlist->prev = mlist;
234 mlist_free_one(mlist);
244 - struct mlist *ml;
255 - mlist_free(ms->mlist[i]);
[all …]

Completed in 26 milliseconds