Lines Matching defs:action
426 apprentice_1(struct magic_set *ms, const char *fn, int action)
441 if (action == FILE_COMPILE) {
442 map = apprentice_load(ms, fn, action);
453 map = apprentice_load(ms, fn, action);
465 if (action == FILE_LIST) {
642 file_apprentice(struct magic_set *ms, const char *fn, int action)
651 if ((fn = magic_getpath(fn, action)) == NULL)
681 file_err = apprentice_1(ms, fn, action);
701 if (action == FILE_LOAD)
710 switch (action) {
717 file_error(ms, 0, "Invalid action %d", action);
1082 load_1(struct magic_set *ms, int action, const char *fn, int *errs,
1146 switch (parse(ms, &me, line, lineno, action)) {
1267 apprentice_load(struct magic_set *ms, const char *fn, int action)
1290 if (action == FILE_CHECK)
1330 load_1(ms, action, filearr[i], &errs, mset);
1335 load_1(ms, action, fn, &errs, mset);
1752 size_t lineno, int action)
2084 if (m->reln != 'x' && getvalue(ms, m, &l, action))
2122 if (action == FILE_CHECK) {
2498 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action)
2509 *p = getstr(ms, m, *p, action == FILE_COMPILE);