Lines Matching +defs:val +defs:list
551 char **list = NULL;
581 if ((rc = cfg_get_section(cfg, &list, section)) <= 0) {
589 strcpy(buf, list[i]);
594 free(list[j]);
595 free(list);
607 free(list[i]);
609 free(list);
613 if ((rc = cfg_get_section(cfg, &list, section)) <= 0) {
631 strcpy(buf, list[i]);
643 free(list[j]);
645 free(list);
653 free(list[j]);
655 free(list);
666 free(list[i]);
668 free(list);
1142 * into tag and val
1150 int tag_len, char *val, int val_len)
1185 strncpy(val, decode_buf, val_len);
1195 * Replaces existing tag with new val. If tag doesn't exist,
1196 * then it adds a new tag with the specified val.
1204 char *val)
1224 if (!tag || !*tag || !val || !*val)
1253 if (cfg_encode_string(val, encode_buf, CFG_MAX_BUF) < 0) {
1284 enclen = cfg_encode_string(val, encode_buf, CFG_MAX_BUF);
1312 char *val, int val_len)
1360 cfg_decode_string(p, val, val_len);
1373 cfg_decode_string(p, val, val_len);
1386 * Removes a single key=val pair from the specified option field
2169 "cfg: write list sizes1 failed rc\n");
2203 "cfg: write list sizes2 failed\n");
2569 * go through list of list sizes in header
2586 /* get the first list size */
2613 * later on, when we add to the list
2640 (void) fprintf(stderr, "mapping list %d size %d offset %d, addr 0x%x\n",
2712 "copying list %d at %x size %d\n",
2729 * a list with 5 elements would be copied
3128 cfg_get_section(CFGFILE *cfg, char ***list, const char *section)
3161 if (cfl->l_nentry == 0) /* empty list */
3187 *list = buf;
3197 * returns the list of configured tags
3205 char **list;
3217 list = calloc(1, MAX_CFG * sizeof (char *));
3218 if (list == NULL) {
3224 list[i] = strdup(chead[i].tag.l_word);
3225 if (list[i] == NULL) {
3227 if (list[i])
3228 free(list[i]);
3230 free(list);
3236 *taglist = list;
3331 cfg_get_srtdsec(CFGFILE *cfg, char ***list, const char *section,
3371 if (cfl->l_nentry == 0) /* empty list */
3446 *list = NULL;
3457 *list = buf;