Make libmagic follow symlinks.
[ashd.git] / lib / cf.h
CommitLineData
06c1a718
FT
1#ifndef _ASHCONF_H
2#define _ASHCONF_H
3
4#include <req.h>
5
6struct cfstate {
7 struct muth *pf;
8 int expstart;
9 char **res, **argv;
10 int argc;
11 int lno;
12 char *file;
13};
14
15struct child {
16 struct child *next;
17 char *name;
18 int type;
19 char **argv;
20 int fd;
21};
22
23void skipcfblock(struct cfstate *s);
24struct cfstate *mkcfparser(FILE *in, char *name);
25void freecfparser(struct cfstate *s);
26char **getcfline(struct cfstate *s);
0fc6fd13 27char *findstdconf(char *name);
06c1a718
FT
28
29void freechild(struct child *ch);
30struct child *parsechild(struct cfstate *s);
31int childhandle(struct child *ch, struct hthead *req, int fd);
32
33#endif