Lines Matching refs:action

386 apprentice_1(struct magic_set *ms, const char *fn, int action)  in apprentice_1()  argument
399 if (action == FILE_COMPILE) { in apprentice_1()
400 map = apprentice_load(ms, fn, action); in apprentice_1()
411 map = apprentice_load(ms, fn, action); in apprentice_1()
425 if (action == FILE_LIST) { in apprentice_1()
541 file_apprentice(struct magic_set *ms, const char *fn, int action) in file_apprentice() argument
548 if ((fn = magic_getpath(fn, action)) == NULL) in file_apprentice()
564 return apprentice_1(ms, fn, action); in file_apprentice()
594 file_err = apprentice_1(ms, fn, action); in file_apprentice()
610 if (action == FILE_LOAD) in file_apprentice()
618 switch (action) { in file_apprentice()
624 file_error(ms, 0, "Invalid action %d", action); in file_apprentice()
937 load_1(struct magic_set *ms, int action, const char *fn, int *errs, in load_1() argument
1011 switch (parse(ms, &me, line, lineno, action)) { in load_1()
1131 apprentice_load(struct magic_set *ms, const char *fn, int action) in apprentice_load() argument
1154 if (action == FILE_CHECK) in apprentice_load()
1207 load_1(ms, action, filearr[i], &errs, mentry, in apprentice_load()
1213 load_1(ms, action, fn, &errs, mentry, mentrycount); in apprentice_load()
1493 size_t lineno, int action) in parse() argument
1915 if (m->reln != 'x' && getvalue(ms, m, &l, action)) in parse()
2268 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action) in getvalue() argument
2279 *p = getstr(ms, m, *p, action == FILE_COMPILE); in getvalue()