Lines Matching refs:rcfile

48 SLIST_HEAD(rcfile_head, rcfile);
51 static struct rcfile* rc_cachelookup(const char *filename);
52 static struct rcsection *rc_findsect(struct rcfile *rcp, const char *sectname);
53 static struct rcsection *rc_addsect(struct rcfile *rcp, const char *sectname);
54 static int rc_freesect(struct rcfile *rcp, struct rcsection *rsp);
58 static void rc_parse(struct rcfile *rcp);
65 rc_open(const char *filename, const char *mode, struct rcfile **rcfile) in rc_open() argument
67 struct rcfile *rcp; in rc_open()
72 *rcfile = rcp; in rc_open()
78 rcp = malloc(sizeof(struct rcfile)); in rc_open()
83 bzero(rcp, sizeof(struct rcfile)); in rc_open()
88 *rcfile = rcp; in rc_open()
93 rc_merge(const char *filename, struct rcfile **rcfile) in rc_merge() argument
95 struct rcfile *rcp = *rcfile; in rc_merge()
99 return rc_open(filename, "r", rcfile); in rc_merge()
113 rc_close(struct rcfile *rcp) in rc_close()
124 SLIST_REMOVE(&pf_head, rcp, rcfile, rf_next); in rc_close()
129 static struct rcfile*
132 struct rcfile *p; in rc_cachelookup()
141 rc_findsect(struct rcfile *rcp, const char *sectname) in rc_findsect()
152 rc_addsect(struct rcfile *rcp, const char *sectname) in rc_addsect()
167 rc_freesect(struct rcfile *rcp, struct rcsection *rsp) in rc_freesect()
233 rc_parse(struct rcfile *rcp) in rc_parse()
321 rc_getstringptr(struct rcfile *rcp, const char *section, const char *key, in rc_getstringptr()
337 rc_getstring(struct rcfile *rcp, const char *section, const char *key, in rc_getstring()
355 rc_getint(struct rcfile *rcp, const char *section, const char *key, int *value) in rc_getint()
380 rc_getbool(struct rcfile *rcp, const char *section, const char *key, int *value) in rc_getbool()
408 opt_args_parse(struct rcfile *rcp, struct opt_args *ap, const char *sect, in opt_args_parse()