Lines Matching refs:mset
926 struct magic_entry_set *mset) in addentry() argument
929 if (mset[i].count == mset[i].max) { in addentry()
932 mset[i].max += ALLOC_INCR; in addentry()
934 erealloc(mset[i].me, sizeof(*mp) * mset[i].max))) == in addentry()
936 file_oomem(ms, sizeof(*mp) * mset[i].max); in addentry()
939 (void)memset(&mp[mset[i].count], 0, sizeof(*mp) * in addentry()
941 mset[i].me = mp; in addentry()
943 mset[i].me[mset[i].count++] = *me; in addentry()
953 struct magic_entry_set *mset) in load_1() argument
1026 (void)addentry(ms, &me, mset); in load_1()
1035 (void)addentry(ms, &me, mset); in load_1()
1150 struct magic_entry_set mset[MAGIC_SETS]; in apprentice_load() local
1156 memset(mset, 0, sizeof(mset)); in apprentice_load()
1210 load_1(ms, action, filearr[i], &errs, mset); in apprentice_load()
1215 load_1(ms, action, fn, &errs, mset); in apprentice_load()
1221 for (i = 0; i < mset[j].count; ) { in apprentice_load()
1222 if (mset[j].me[i].mp->cont_level != 0) { in apprentice_load()
1226 i = set_text_binary(ms, mset[j].me, mset[j].count, i); in apprentice_load()
1228 qsort(mset[j].me, mset[j].count, sizeof(*mset[j].me), in apprentice_load()
1235 set_last_default(ms, mset[j].me, mset[j].count); in apprentice_load()
1238 if (coalesce_entries(ms, mset[j].me, mset[j].count, in apprentice_load()
1247 magic_entry_free(mset[j].me, mset[j].count); in apprentice_load()