2 * The Submit Daemon: Tasks
4 * (c) 2007 Martin Mares <mj@ucw.cz>
9 #include "lib/stkstring.h"
20 clist_init(&task_list);
24 static struct cf_section task_conf = {
27 CF_STRING("Name", PTR_TO(struct task, name)),
32 struct cf_section tasks_conf = {
33 CF_INIT(tasks_conf_init),
35 CF_LIST("Task", &task_list, &task_conf),
43 CLIST_FOR_EACH(struct task *, t, task_list)
44 if (!strcasecmp(t->name, name))
50 user_exists_p(byte *user)
52 byte *fn = stk_printf("solutions/%s/status", user);
54 return !stat(fn, &st) && S_ISREG(st.st_mode);