Searched refs:mlist (Results 1 – 5 of 5) sorted by relevance
/php-src/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 618 struct mlist *mlist; in mlist_alloc() local 619 if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) { in mlist_alloc() 622 mlist->next = mlist->prev = mlist; in mlist_alloc() 623 return mlist; in mlist_alloc() 646 mlist_free(struct mlist *mlist) in mlist_free() argument 653 for (ml = mlist->next; ml != mlist;) { in mlist_free() 1095 apprentice_list(struct mlist *mlist, int mode) in apprentice_list() argument 1099 for (ml = mlist->next; ml != mlist; ml = ml->next) { in apprentice_list() 3654 struct mlist *mlist, *ml; local 3656 mlist = ms->mlist[1]; [all …]
|
H A D | file.h | 414 struct mlist { struct 418 struct mlist *next, *prev; argument 448 struct mlist *mlist[MAGIC_SETS]; /* list of regular entries */ member 561 struct mlist *);
|
H A D | softmagic.c | 122 struct mlist *ml; in file_softmagic() 135 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next) { in file_softmagic() 1606 struct mlist ml, *mlp; in mget() 1902 for (mlp = ms->mlist[0]->next; mlp != ms->mlist[0]; in mget()
|
H A D | funcs.c | 525 if (checkloaded && ms->mlist[0] == NULL) { in file_reset()
|
/php-src/ext/fileinfo/ |
H A D | libmagic.patch | 35 struct mlist *ml; 61 mlist_free(ms->mlist[i]); 157 struct mlist *mlist; 158 - if ((mlist = CAST(struct mlist *, calloc(1, sizeof(*mlist)))) == NULL) { 159 + if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) { 162 mlist->next = mlist->prev = mlist; 187 mlist_free_one(mlist); 269 ms->mlist[j] = NULL; 1497 struct mlist { 2981 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next) { [all …]
|
Completed in 60 milliseconds