Lines Matching defs:entry

49 static void fillconflist(int lineno, const char *entry,
78 const char *cf_entry; /* name of entry, if line has an entry */
79 struct opts *cf_opts; /* parsed rhs of entry */
84 #define CONFF_DELETED 1 /* entry should be deleted on write back */
88 static struct lut *Conflut; /* lookup table keyed by entry name */
89 static struct fn_list *Confentries; /* list of valid entry names */
91 /* allocate & fill in another entry in our list */
93 fillconflist(int lineno, const char *entry,
100 cp->cf_entry = entry;
104 if (entry != NULL) {
105 Conflut = lut_add(Conflut, entry, cp);
106 fn_list_adds(Confentries, entry);
184 char *entry, *comment;
232 * now we have the entry, if any, at "line"
236 /* entry is first token */
237 entry = nexttok(&line);
238 if (entry == NULL) {
241 fillconflist(lineno, entry, NULL, comment, 0);
244 if (strcmp(entry, "logadm-version") == 0) {
253 if ((entry = nexttok(&line)) != NULL &&
254 strcmp(entry, "1") != 0)
277 err(EF_FILE, "cannot process invalid entry %s",
278 entry);
285 cp = lut_lookup(Conflut, entry);
294 * entry. If we are doing timescan and have
295 * what looks like an orphaned entry (cp ==
301 fillconflist(lineno, entry, opts, comment, 0);
557 * conf_lookup -- lookup an entry in the config file
570 * conf_opts -- return the parsed opts for an entry
583 * conf_replace -- replace an entry in the config file
605 * conf_set -- set options for an entry in the config file
608 conf_set(const char *entry, char *o, const char *optarg)
610 struct confinfo *cp = lut_lookup(Conflut, entry);
618 fillconflist(0, STRDUP(entry),
620 if ((cp = lut_lookup(Conflut, entry)) == NULL)
631 * conf_entries -- list all the entry names