Lines Matching refs:mset
1104 struct magic_entry_set *mset) in addentry() argument
1107 if (mset[i].count == mset[i].max) { in addentry()
1110 mset[i].max += ALLOC_INCR; in addentry()
1112 erealloc(mset[i].me, sizeof(*mp) * mset[i].max))) == in addentry()
1114 file_oomem(ms, sizeof(*mp) * mset[i].max); in addentry()
1117 (void)memset(&mp[mset[i].count], 0, sizeof(*mp) * in addentry()
1119 mset[i].me = mp; in addentry()
1121 mset[i].me[mset[i].count++] = *me; in addentry()
1131 struct magic_entry_set *mset) in load_1() argument
1204 (void)addentry(ms, &me, mset); in load_1()
1213 (void)addentry(ms, &me, mset); in load_1()
1329 struct magic_entry_set mset[MAGIC_SETS]; in apprentice_load() local
1334 memset(mset, 0, sizeof(mset)); in apprentice_load()
1390 load_1(ms, action, filearr[i], &errs, mset); in apprentice_load()
1396 load_1(ms, action, fn, &errs, mset); in apprentice_load()
1402 for (i = 0; i < mset[j].count; ) { in apprentice_load()
1403 if (mset[j].me[i].mp->cont_level != 0) { in apprentice_load()
1407 i = set_text_binary(ms, mset[j].me, mset[j].count, i); in apprentice_load()
1409 if (mset[j].me) in apprentice_load()
1410 qsort(mset[j].me, mset[j].count, sizeof(*mset[j].me), in apprentice_load()
1417 set_last_default(ms, mset[j].me, mset[j].count); in apprentice_load()
1420 if (coalesce_entries(ms, mset[j].me, mset[j].count, in apprentice_load()
1429 magic_entry_free(mset[j].me, mset[j].count); in apprentice_load()