Searched refs:mlist (Results 1 – 5 of 5) sorted by relevance
/PHP-5.6/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 519 struct mlist *mlist; in mlist_alloc() local 520 if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) { in mlist_alloc() 523 mlist->next = mlist->prev = mlist; in mlist_alloc() 524 return mlist; in mlist_alloc() 528 mlist_free(struct mlist *mlist) in mlist_free() argument 535 for (ml = mlist->next; ml != mlist;) { in mlist_free() 812 apprentice_list(struct mlist *mlist, int mode) in apprentice_list() argument 816 for (ml = mlist->next; ml != mlist; ml = ml->next) { in apprentice_list() 3006 struct mlist *mlist, *ml; local 3008 mlist = ms->mlist[1]; [all …]
|
H A D | file.h | 350 struct mlist { struct 354 struct mlist *next, *prev; argument 377 struct mlist *mlist[MAGIC_SETS]; /* list of regular entries */ member 440 protected int file_magicfind(struct magic_set *, const char *, struct mlist *);
|
H A D | funcs.c | 310 if (ms->mlist[0] == NULL) { in file_reset()
|
H A D | softmagic.c | 90 struct mlist *ml; in file_softmagic() 92 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next) in file_softmagic() 1171 struct mlist ml; in mget()
|
/PHP-5.6/ext/fileinfo/ |
H A D | libmagic.patch | 102 struct mlist *ml; 138 mlist_free(ms->mlist[i]); 211 private struct mlist * 214 struct mlist *mlist; 215 - if ((mlist = CAST(struct mlist *, calloc(1, sizeof(*mlist)))) == NULL) { 216 + if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) { 219 mlist->next = mlist->prev = mlist; 221 struct mlist *next = ml->next; 250 + mlist_free(ms->mlist[i]); 252 + file_oomem(ms, sizeof(*ms->mlist[i])); [all …]
|
Completed in 27 milliseconds