Home
last modified time | relevance | path

Searched refs:cfg_parser (Results 1 – 16 of 16) sorted by relevance

/openbsd-src/usr.sbin/nsd/
H A Dconfigparser.y31 extern config_parser_state_type *cfg_parser;
256 struct ip_address_option *ip = cfg_parser->opt->ip_addresses;
259 cfg_parser->opt->ip_addresses = $2;
265 cfg_parser->ip = $2;
269 cfg_parser->ip = NULL;
274 cfg_parser->opt->server_count = (int)$2;
280 { cfg_parser->opt->ip_transparent = $2; }
282 { cfg_parser->opt->ip_freebind = $2; }
284 { cfg_parser->opt->send_buffer_size = (int)$2; }
286 { cfg_parser->opt->receive_buffer_size = (int)$2; }
[all …]
H A Dconfiglexer.lex73 s->filename = cfg_parser->filename; in config_start_include()
74 s->line = cfg_parser->line; in config_start_include()
79 cfg_parser->filename = nm; in config_start_include()
80 cfg_parser->line = 1; in config_start_include()
91 if (cfg_parser->chroot) { in config_start_include_glob()
92 int l = strlen(cfg_parser->chroot); /* chroot has trailing slash */ in config_start_include_glob()
93 if (strncmp(cfg_parser->chroot, filename, l) != 0) { in config_start_include_glob()
95 filename, cfg_parser->chroot); in config_start_include_glob()
143 free(cfg_parser->filename); in config_end_include()
144 cfg_parser->filename = s->filename; in config_end_include()
[all …]
H A Doptions.c27 config_parser_state_type* cfg_parser = 0; variable
213 if(!cfg_parser) { in parse_options_file()
214 cfg_parser = (config_parser_state_type*)region_alloc( in parse_options_file()
216 cfg_parser->chroot = 0; in parse_options_file()
218 cfg_parser->err = err; in parse_options_file()
219 cfg_parser->err_arg = err_arg; in parse_options_file()
220 cfg_parser->filename = (char*)file; in parse_options_file()
221 cfg_parser->line = 1; in parse_options_file()
222 cfg_parser->errors = 0; in parse_options_file()
223 cfg_parser->opt = opt; in parse_options_file()
[all …]
H A Doptions.h472 extern config_parser_state_type* cfg_parser;
H A Dnsd.c65 extern config_parser_state_type* cfg_parser;
1649 cfg_parser->chroot = nsd.chrootdir; in main()
/openbsd-src/sbin/unwind/libunbound/util/
H A Dconfigparser.y59 extern struct config_parser_state* cfg_parser;
223 cfg_parser->started_toplevel = 0;
230 cfg_parser->started_toplevel = 1;
352 cfg_parser->started_toplevel = 1;
355 s->next = cfg_parser->cfg->stubs;
356 cfg_parser->cfg->stubs = s;
366 if(cfg_parser->cfg->stubs &&
367 !cfg_parser->cfg->stubs->name)
377 cfg_parser->started_toplevel = 1;
380 s->next = cfg_parser
[all...]
H A Dconfiglexer.lex83 if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot, in config_start_include()
84 strlen(cfg_parser->chroot)) == 0) { in config_start_include()
85 filename += strlen(cfg_parser->chroot); in config_start_include()
103 s->filename = cfg_parser->filename; in config_start_include()
104 s->line = cfg_parser->line; in config_start_include()
109 cfg_parser->filename = nm; in config_start_include()
110 cfg_parser->line = 1; in config_start_include()
138 if(cfg_parser->chroot && strncmp(filename, cfg_parser in config_start_include_glob()
[all...]
H A Dconfiglexer.c3524 if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot, in config_start_include()
3525 strlen(cfg_parser->chroot)) == 0) { in config_start_include()
3526 filename += strlen(cfg_parser->chroot); in config_start_include()
3544 s->filename = cfg_parser->filename; in config_start_include()
3545 s->line = cfg_parser->line; in config_start_include()
3550 cfg_parser->filename = nm; in config_start_include_glob()
3551 cfg_parser->line = 1; in config_start_include_glob()
3579 if(cfg_parser->chroot && strncmp(filename, cfg_parser in config_start_include_glob()
[all...]
H A Dconfig_file.c87 struct config_parser_state* cfg_parser = 0;
1375 /** initialize the global cfg_parser object */ in create_cfg_parser()
1380 cfg_parser = &st; in create_cfg_parser()
1381 cfg_parser->filename = filename;
1382 cfg_parser->line = 1;
1383 cfg_parser->errors = 0; in config_read()
1384 cfg_parser->cfg = cfg; in config_read()
1385 cfg_parser->chroot = chroot; in config_read()
1386 cfg_parser->started_toplevel = 0; in config_read()
1470 if(cfg_parser in config_read()
86 struct config_parser_state* cfg_parser = 0; global() variable
[all...]
H A Dconfig_file.h1344 extern struct config_parser_state* cfg_parser;
/openbsd-src/usr.sbin/unbound/util/
H A Dconfigparser.y59 extern struct config_parser_state* cfg_parser;
223 cfg_parser->started_toplevel = 0;
230 cfg_parser->started_toplevel = 1;
352 cfg_parser->started_toplevel = 1;
355 s->next = cfg_parser->cfg->stubs;
356 cfg_parser->cfg->stubs = s;
366 if(cfg_parser->cfg->stubs &&
367 !cfg_parser->cfg->stubs->name)
377 cfg_parser->started_toplevel = 1;
380 s->next = cfg_parser
[all...]
H A Dconfiglexer.lex83 if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot, in config_start_include()
84 strlen(cfg_parser->chroot)) == 0) { in config_start_include()
85 filename += strlen(cfg_parser->chroot); in config_start_include()
103 s->filename = cfg_parser->filename; in config_start_include()
104 s->line = cfg_parser->line; in config_start_include()
109 cfg_parser->filename = nm; in config_start_include()
110 cfg_parser->line = 1; in config_start_include()
138 if(cfg_parser->chroot && strncmp(filename, cfg_parser in config_start_include_glob()
[all...]
H A Dconfig_file.c87 struct config_parser_state* cfg_parser = 0;
1375 /** initialize the global cfg_parser object */ in create_cfg_parser()
1380 cfg_parser = &st; in create_cfg_parser()
1381 cfg_parser->filename = filename;
1382 cfg_parser->line = 1;
1383 cfg_parser->errors = 0; in config_read()
1384 cfg_parser->cfg = cfg; in config_read()
1385 cfg_parser->chroot = chroot; in config_read()
1386 cfg_parser->started_toplevel = 0; in config_read()
1470 if(cfg_parser in config_read()
86 struct config_parser_state* cfg_parser = 0; global() variable
[all...]
H A Dconfig_file.h1344 extern struct config_parser_state* cfg_parser;
/openbsd-src/usr.bin/dig/lib/isccfg/include/isccfg/
H A Dcfg.h46 typedef struct cfg_parser cfg_parser_t;
H A Dgrammar.h107 struct cfg_parser { struct