Searched refs:mlist (Results 1 – 5 of 5) sorted by relevance
/PHP-8.3/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 619 struct mlist *mlist; in mlist_alloc() local 620 if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) { in mlist_alloc() 623 mlist->next = mlist->prev = mlist; in mlist_alloc() 624 return mlist; in mlist_alloc() 647 mlist_free(struct mlist *mlist) in mlist_free() argument 654 for (ml = mlist->next; ml != mlist;) { in mlist_free() 1096 apprentice_list(struct mlist *mlist, int mode) in apprentice_list() argument 1100 for (ml = mlist->next; ml != mlist; ml = ml->next) { in apprentice_list() 3637 struct mlist *mlist, *ml; local 3639 mlist = ms->mlist[1]; [all …]
|
H A D | file.h | 404 struct mlist { struct 408 struct mlist *next, *prev; argument 438 struct mlist *mlist[MAGIC_SETS]; /* list of regular entries */ member 544 protected int file_magicfind(struct magic_set *, const char *, struct mlist *);
|
H A D | softmagic.c | 120 struct mlist *ml; in file_softmagic() 133 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next) { in file_softmagic() 1585 struct mlist ml, *mlp; in mget() 1868 for (mlp = ms->mlist[0]->next; mlp != ms->mlist[0]; in mget()
|
H A D | funcs.c | 514 if (checkloaded && ms->mlist[0] == NULL) { in file_reset()
|
/PHP-8.3/ext/fileinfo/ |
H A D | libmagic.patch | 35 struct mlist *ml; 146 private struct mlist * 149 struct mlist *mlist; 150 - if ((mlist = CAST(struct mlist *, calloc(1, sizeof(*mlist)))) == NULL) { 151 + if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) { 154 mlist->next = mlist->prev = mlist; 179 mlist_free_one(mlist); 189 - struct mlist *ml; 1464 struct mlist { 2863 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next) { [all …]
|
Completed in 24 milliseconds