Lines Matching refs:action

468 apprentice_1(struct magic_set *ms, const char *fn, int action)  in apprentice_1()  argument
483 if (action == FILE_COMPILE) { in apprentice_1()
484 map = apprentice_load(ms, fn, action); in apprentice_1()
495 map = apprentice_load(ms, fn, action); in apprentice_1()
512 if (action == FILE_LIST) { in apprentice_1()
664 file_apprentice(struct magic_set *ms, const char *fn, int action) in file_apprentice() argument
674 if ((fn = magic_getpath(fn, action)) == NULL) in file_apprentice()
690 return apprentice_1(ms, fn, action); in file_apprentice()
718 fileerr = apprentice_1(ms, fn, action); in file_apprentice()
738 if (action == FILE_LOAD) in file_apprentice()
747 switch (action) { in file_apprentice()
754 file_error(ms, 0, "Invalid action %d", action); in file_apprentice()
1256 load_1(struct magic_set *ms, int action, const char *fn, int *errs, in load_1() argument
1326 switch (parse(ms, &me, line, lineno, action)) { in load_1()
1453 apprentice_load(struct magic_set *ms, const char *fn, int action) in apprentice_load() argument
1478 if (action == FILE_CHECK) in apprentice_load()
1522 load_1(ms, action, filearr[i], &errs, mset); in apprentice_load()
1528 load_1(ms, action, fn, &errs, mset); in apprentice_load()
1964 size_t lineno, int action) in parse() argument
2328 if (m->reln != 'x' && getvalue(ms, m, &l, action)) in parse()
2366 if (action == FILE_CHECK) { in parse()
2777 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action) in getvalue() argument
2793 *p = getstr(ms, m, *p, action == FILE_COMPILE); in getvalue()