Home
last modified time | relevance | path

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

/PHP-8.0/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()
3438 struct mlist *mlist, *ml; local
3440 mlist = ms->mlist[1];
[all …]
H A Dfile.h380 struct mlist { struct
384 struct mlist *next, *prev; argument
409 struct mlist *mlist[MAGIC_SETS]; /* list of regular entries */ member
498 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()
1558 struct mlist ml; in mget()
H A Dfuncs.c475 if (checkloaded && ms->mlist[0] == NULL) { in file_reset()
/PHP-8.0/ext/fileinfo/
H A Dlibmagic.patch117 struct mlist *ml;
128 mlist_free(ms->mlist[i]);
217 private struct mlist *
220 struct mlist *mlist;
221 - if ((mlist = CAST(struct mlist *, calloc(1, sizeof(*mlist)))) == NULL) {
222 + if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) {
225 mlist->next = mlist->prev = mlist;
236 mlist_free_one(mlist);
246 - struct mlist *ml;
257 - mlist_free(ms->mlist[i]);
[all …]

Completed in 39 milliseconds