Lines Matching refs:mset
1011 struct magic_entry_set *mset) in addentry() argument
1014 if (mset[i].count == mset[i].max) { in addentry()
1017 mset[i].max += ALLOC_INCR; in addentry()
1019 erealloc(mset[i].me, sizeof(*mp) * mset[i].max))) == in addentry()
1021 file_oomem(ms, sizeof(*mp) * mset[i].max); in addentry()
1024 (void)memset(&mp[mset[i].count], 0, sizeof(*mp) * in addentry()
1026 mset[i].me = mp; in addentry()
1028 mset[i].me[mset[i].count++] = *me; in addentry()
1038 struct magic_entry_set *mset) in load_1() argument
1110 (void)addentry(ms, &me, mset); in load_1()
1119 (void)addentry(ms, &me, mset); in load_1()
1235 struct magic_entry_set mset[MAGIC_SETS]; in apprentice_load() local
1240 memset(mset, 0, sizeof(mset)); in apprentice_load()
1295 load_1(ms, action, filearr[i], &errs, mset); in apprentice_load()
1300 load_1(ms, action, fn, &errs, mset); in apprentice_load()
1306 for (i = 0; i < mset[j].count; ) { in apprentice_load()
1307 if (mset[j].me[i].mp->cont_level != 0) { in apprentice_load()
1311 i = set_text_binary(ms, mset[j].me, mset[j].count, i); in apprentice_load()
1313 if (mset[j].me) in apprentice_load()
1314 qsort(mset[j].me, mset[j].count, sizeof(*mset[j].me), in apprentice_load()
1321 set_last_default(ms, mset[j].me, mset[j].count); in apprentice_load()
1324 if (coalesce_entries(ms, mset[j].me, mset[j].count, in apprentice_load()
1333 magic_entry_free(mset[j].me, mset[j].count); in apprentice_load()