Lines Matching refs:rcfile

49 SLIST_HEAD(rcfile_head, rcfile);
52 static struct rcfile* rc_cachelookup(const char *filename);
53 static struct rcsection *rc_findsect(struct rcfile *rcp, const char *sectname);
54 static struct rcsection *rc_addsect(struct rcfile *rcp, const char *sectname);
55 static int rc_freesect(struct rcfile *rcp, struct rcsection *rsp);
59 static void rc_parse(struct rcfile *rcp);
66 rc_open(const char *filename, const char *mode, struct rcfile **rcfile) in rc_open() argument
68 struct rcfile *rcp; in rc_open()
73 *rcfile = rcp; in rc_open()
79 rcp = malloc(sizeof(struct rcfile)); in rc_open()
84 bzero(rcp, sizeof(struct rcfile)); in rc_open()
89 *rcfile = rcp; in rc_open()
94 rc_merge(const char *filename, struct rcfile **rcfile) in rc_merge() argument
96 struct rcfile *rcp = *rcfile; in rc_merge()
100 return rc_open(filename, "r", rcfile); in rc_merge()
114 rc_close(struct rcfile *rcp) in rc_close()
125 SLIST_REMOVE(&pf_head, rcp, rcfile, rf_next); in rc_close()
130 static struct rcfile*
133 struct rcfile *p; in rc_cachelookup()
142 rc_findsect(struct rcfile *rcp, const char *sectname) in rc_findsect()
153 rc_addsect(struct rcfile *rcp, const char *sectname) in rc_addsect()
176 rc_freesect(struct rcfile *rcp, struct rcsection *rsp) in rc_freesect()
242 rc_parse(struct rcfile *rcp) in rc_parse()
330 rc_getstringptr(struct rcfile *rcp, const char *section, const char *key, in rc_getstringptr()
346 rc_getstring(struct rcfile *rcp, const char *section, const char *key, in rc_getstring()
364 rc_getint(struct rcfile *rcp, const char *section, const char *key, int *value) in rc_getint()
389 rc_getbool(struct rcfile *rcp, const char *section, const char *key, int *value) in rc_getbool()
417 opt_args_parse(struct rcfile *rcp, struct opt_args *ap, const char *sect, in opt_args_parse()