Lines Matching refs:rcfile

64 static struct rcfile *rc_cachelookup(const char *filename);
65 static struct rcsection *rc_findsect(struct rcfile *rcp, const char *sectname);
66 static struct rcsection *rc_addsect(struct rcfile *rcp, const char *sectname);
67 static int rc_freesect(struct rcfile *rcp, struct rcsection *rsp);
72 static void rc_parse(struct rcfile *rcp);
77 SLIST_HEAD(rcfile_head, rcfile);
79 struct rcfile *smb_rc;
87 rc_open(const char *filename, const char *mode, struct rcfile **rcfile) in rc_open() argument
90 struct rcfile *rcp; in rc_open()
97 *rcfile = rcp; in rc_open()
107 rcp = malloc(sizeof (struct rcfile)); in rc_open()
112 bzero(rcp, sizeof (struct rcfile)); in rc_open()
117 *rcfile = rcp; in rc_open()
122 rc_merge(const char *filename, struct rcfile **rcfile) in rc_merge() argument
125 struct rcfile *rcp = *rcfile; in rc_merge()
132 return (rc_open(filename, "r", rcfile)); in rc_merge()
154 rc_popen_cmd(const char *command, struct rcfile **rcfile) in rc_popen_cmd() argument
156 struct rcfile *rcp; in rc_popen_cmd()
166 rcp = malloc(sizeof (struct rcfile)); in rc_popen_cmd()
171 bzero(rcp, sizeof (struct rcfile)); in rc_popen_cmd()
176 *rcfile = rcp; in rc_popen_cmd()
182 rc_close(struct rcfile *rcp) in rc_close()
195 SLIST_REMOVE(&pf_head, rcp, rcfile, rf_next); in rc_close()
202 static struct rcfile *
205 struct rcfile *p; in rc_cachelookup()
216 rc_findsect(struct rcfile *rcp, const char *sectname) in rc_findsect()
229 rc_addsect(struct rcfile *rcp, const char *sectname) in rc_addsect()
248 rc_freesect(struct rcfile *rcp, struct rcsection *rsp) in rc_freesect()
341 set_value(struct rcfile *rcp, struct rcsection *rsp, struct rckey *rkp, in set_value()
382 rc_parse(struct rcfile *rcp) in rc_parse()
496 rc_getstringptr(struct rcfile *rcp, const char *section, const char *key, in rc_getstringptr()
525 rc_getstring(struct rcfile *rcp, const char *section, const char *key, in rc_getstring()
545 rc_getint(struct rcfile *rcp, const char *section, const char *key, int *value) in rc_getint()
581 rc_getbool(struct rcfile *rcp, const char *section, const char *key, int *value) in rc_getbool()
712 struct rcfile *rcp; in smb_close_rcfile()