Lines Matching defs:rsp
57 rc_sect_findkey(struct rcsection *rsp, const char *keyname)
61 SLIST_FOREACH(p, &rsp->rs_keys, rk_next)
68 rc_sect_addkey(struct rcsection *rsp, const char *name, const char *value)
72 p = rc_sect_findkey(rsp, name);
78 SLIST_INSERT_HEAD(&rsp->rs_keys, p, rk_next);
120 struct rcsection *rsp = NULL;
134 rsp = NULL;
154 rsp = rc_addsect(rcp, buf);
172 if (rsp == NULL) {
177 rkp = rc_sect_addkey(rsp, buf, NULL);
260 rc_freesect(struct rcfile *rcp, struct rcsection *rsp)
264 SLIST_REMOVE(&rcp->rf_sect, rsp, rcsection, rs_next);
265 for(p = SLIST_FIRST(&rsp->rs_keys);p;) {
270 free(rsp->rs_name);
271 free(rsp);
293 rc_sect_delkey(struct rcsection *rsp, struct rckey *p)
296 SLIST_REMOVE(&rsp->rs_keys, p, rckey, rk_next);
306 struct rcsection *rsp;
310 rsp = rc_findsect(rcp, section);
311 if (!rsp) return ENOENT;
312 rkp = rc_sect_findkey(rsp,key);
339 struct rcsection *rsp;
342 rsp = rc_findsect(rcp, section);
343 if (!rsp)
345 rkp = rc_sect_findkey(rsp, key);
364 struct rcsection *rsp;
368 rsp = rc_findsect(rcp, section);
369 if (!rsp) return ENOENT;
370 rkp = rc_sect_findkey(rsp,key);