Lines Matching refs:action
408 apprentice_1(struct magic_set *ms, const char *fn, int action) in apprentice_1() argument
421 if (action == FILE_COMPILE) { in apprentice_1()
422 map = apprentice_load(ms, fn, action); in apprentice_1()
435 map = apprentice_load(ms, fn, action); in apprentice_1()
448 if (action == FILE_LIST) { in apprentice_1()
571 file_apprentice(struct magic_set *ms, const char *fn, int action) in file_apprentice() argument
582 if ((fn = magic_getpath(fn, action)) == NULL) in file_apprentice()
598 return apprentice_1(ms, fn, action); in file_apprentice()
626 fileerr = apprentice_1(ms, fn, action); in file_apprentice()
646 if (action == FILE_LOAD) in file_apprentice()
655 switch (action) { in file_apprentice()
662 file_error(ms, 0, "Invalid action %d", action); in file_apprentice()
1077 load_1(struct magic_set *ms, int action, const char *fn, int *errs, in load_1() argument
1146 switch (parse(ms, &me, line, lineno, action)) { in load_1()
1267 apprentice_load(struct magic_set *ms, const char *fn, int action) in apprentice_load() argument
1292 if (action == FILE_CHECK) in apprentice_load()
1335 load_1(ms, action, filearr[i], &errs, mset); in apprentice_load()
1340 load_1(ms, action, fn, &errs, mset); in apprentice_load()
1759 size_t lineno, int action) in parse() argument
2101 if (m->reln != 'x' && getvalue(ms, m, &l, action)) in parse()
2547 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action) in getvalue() argument
2562 *p = getstr(ms, m, *p, action == FILE_COMPILE); in getvalue()