Lines Matching defs:section

69 /* parser tree for config section */
80 char section[CFG_MAX_KEY];
112 printf(gettext("Parser section:\n"
116 printf(gettext("Config section:\n"
224 * section of the parser..
230 cfg_get_parser_offset(const char *section)
240 if (strcmp(chead[i].tag.l_word, section) == 0)
250 "cfg_get_parser_offset: section not found");
384 * key determines section and value
397 char *section;
426 section = strtok(tmpkey, ".");
432 (void) fprintf(stderr, "cfg_get_cstring:section:%s setp=%s\n",
433 section, setp);
436 "cfg_get_cstring:section:%s setp=%s fld=%s\n",
437 section, setp, itemp);
440 table_offset = cfg_get_parser_offset(section);
471 if (cfg_filter_node(cfg, &chead[0], buf, section))
498 needed = cfg_get_item(&chead[0], section, itemp);
537 * search for a string in the specified section
549 const char *section, int numflds, ...) {
569 nflds = cfg_get_num_flds(&chead[0], section, &tbl_off);
581 if ((rc = cfg_get_section(cfg, &list, section)) <= 0) {
613 if ((rc = cfg_get_section(cfg, &list, section)) <= 0) {
628 fieldnum = cfg_get_item(&chead[0], section, fldbuf[j]);
674 * modify entry or add an entry to configuration section
693 char *section;
715 section = strtok(tmpkey, ".");
749 table_offset = cfg_get_parser_offset(section);
786 section))
806 nflds = cfg_get_num_flds(&chead[0], section, &table_index);
840 cfg_insert_node(cfg, &chead[0], buf, section);
879 section))
899 nflds = cfg_get_num_flds(&chead[0], section, &table_index);
900 fldnum = cfg_get_item(&chead[0], section, itemp);
918 cnodepos = cfg_get_item(&chead[0], section, "cnode");
922 newbuf, section);
948 nflds = cfg_get_num_flds(&chead[0], section, &table_index);
951 cnodepos = cfg_get_item(&chead[0], section, "cnode");
969 cfg_insert_node(cfg, &chead[0], buf, section);
973 if (cfg_is_cnode(cfg, &chead[0], buf, section) &&
1149 cfg_get_options(CFGFILE *cfg, int section, const char *basekey, char *tag,
1168 if (section == CFG_SEC_CONF) {
1200 * -1 incorrect section, or read error from cfg DB
1203 cfg_put_options(CFGFILE *cfg, int section, const char *basekey, char *tag,
1219 if (section != CFG_SEC_CONF) {
1308 * -1 incorrect section, or read error from cfg DB
1311 cfg_get_single_option(CFGFILE *cfg, int section, const char *basekey, char *tag,
1327 if (section != CFG_SEC_CONF) {
1393 cfg_del_option(CFGFILE *cfg, int section, const char *basekey, char *tag)
1407 if (section != CFG_SEC_CONF) {
1591 (void) fprintf(stderr, "cfg: read ccopy1 section failed\n");
1613 (void) fprintf(stderr, "cfg: read ccopy2 section failed\n");
1649 * If initial or invalid sequence, use first section
1675 * builds parser trees for each section
2080 int section;
2122 section = 1;
2128 section = 2;
2142 if (section == 1) {
2235 * rewind internal file pointer for specified section
2241 cfg_rewind(CFGFILE *cfg, int section)
2243 switch (section) {
2367 cfg_update_parser_config(CFGFILE *cfg, const char *key, int section)
2390 if (section == CFG_PARSE_CONF) {
2667 int section = 0;
2681 section = 1;
2693 if (section == 1) {
3091 * return the number of entries in a given section of database
3095 cfg_get_num_entries(CFGFILE *cfg, char *section)
3107 if ((table_offset = cfg_get_parser_offset(section)) < 0) {
3121 * all etries in a config file section is placed in
3124 * number of entries in section is returned
3128 cfg_get_section(CFGFILE *cfg, char ***list, const char *section)
3143 if ((table_offset = cfg_get_parser_offset(section)) < 0) {
3327 * returns the section, sorted by supplied field
3331 cfg_get_srtdsec(CFGFILE *cfg, char ***list, const char *section,
3348 if ((table_offset = cfg_get_parser_offset(section)) < 0) {
3417 * put the section in tmplst and sort
3429 bzero(sortby.section, CFG_MAX_KEY);
3432 strcpy(sortby.section, section);
3435 sortby.offset = cfg_get_item(&chead[0], section, field);
3462 * free an array alloc'd by get_*section
3467 cfg_free_section(char ***section, int size)
3470 char **secpp = *section;
3482 section = NULL;