/bind-9.6-ESV-R11/lib/isc/tests/ |
H A D | lex_test.c | 27 #include <isc/lex.h> 31 ATF_TC(lex); variable 32 ATF_TC_HEAD(lex, tc) { 35 ATF_TC_BODY(lex, tc) { 38 isc_lex_t *lex = NULL; local 49 result = isc_lex_create(mctx, 1024, &lex); 55 result = isc_lex_openbuffer(lex, &death_buf); 58 result = isc_lex_gettoken(lex, 0, &token); 66 ATF_TP_ADD_TC(tp, lex);
|
/bind-9.6-ESV-R11/bin/tests/ |
H A D | lex_test.c | 24 #include <isc/lex.h> 29 isc_lex_t *lex; variable 102 RUNTIME_CHECK(isc_lex_create(mctx, 256, &lex) == ISC_R_SUCCESS); 105 /* Set up to lex DNS master file. */ 110 isc_lex_setspecials(lex, specials); 114 isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE); 116 /* Set up to lex DNS config file. */ 125 isc_lex_setspecials(lex, specials); 129 isc_lex_setcomments(lex, (ISC_LEXCOMMENT_C| 134 RUNTIME_CHECK(isc_lex_openstream(lex, stdi [all...] |
H A D | rdata_test.c | 24 #include <isc/lex.h> 37 isc_lex_t *lex; variable 955 RUNTIME_CHECK(isc_lex_create(mctx, 256, &lex) == ISC_R_SUCCESS); 958 * Set up to lex DNS master file. 964 isc_lex_setspecials(lex, specials); 966 isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE); 968 RUNTIME_CHECK(isc_lex_openstream(lex, stdin) == ISC_R_SUCCESS); 971 while ((result = isc_lex_gettoken(lex, options | ISC_LEXOPT_NUMBER, 1018 result = isc_lex_gettoken(lex, options | ISC_LEXOPT_NUMBER, 1060 result = dns_rdata_fromtext(&rdata, class, type, lex, [all...] |
/bind-9.6-ESV-R11/lib/dns/ |
H A D | dst_parse.c | 42 #include <isc/lex.h> 293 dst__privstruct_parse(dst_key_t *key, unsigned int alg, isc_lex_t *lex, argument 308 #define NEXTTOKEN(lex, opt, token) \ 310 ret = isc_lex_gettoken(lex, opt, token); \ 315 #define READLINE(lex, opt, token) \ 317 ret = isc_lex_gettoken(lex, opt, token); \ 327 NEXTTOKEN(lex, opt, &token); 335 NEXTTOKEN(lex, opt, &token); 355 READLINE(lex, opt, &token); 360 NEXTTOKEN(lex, op [all...] |
H A D | dst_api.c | 48 #include <isc/lex.h> 443 isc_lex_t *lex = NULL; local 500 RETERR(isc_lex_create(mctx, 1500, &lex)); 501 RETERR(isc_lex_openfile(lex, newfilename)); 504 RETERR(key->func->parse(key, lex)); 505 isc_lex_destroy(&lex); 518 if (lex != NULL) 519 isc_lex_destroy(&lex); 638 isc_lex_t *lex = NULL; local 649 RETERR(isc_lex_create(key->mctx, 1500, &lex)); 999 isc_lex_t *lex = NULL; local [all...] |
H A D | master.c | 25 #include <isc/lex.h> 115 isc_lex_t *lex; member in struct:dns_loadctx 266 GETTOKEN(lctx->lex, 0, &token, ISC_TRUE); \ 268 isc_lex_ungettoken(lctx->lex, &token); \ 348 gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *token, argument 355 result = isc_lex_gettoken(lex, options, token); 364 isc_lex_getsourcename(lex), 365 isc_lex_getsourceline(lex), 376 isc_lex_getsourcename(lex), 377 isc_lex_getsourceline(lex), 508 loadctx_create(dns_masterformat_t format, isc_mem_t *mctx, unsigned int options, isc_uint32_t resign, dns_name_t *top, dns_rdataclass_t zclass, dns_name_t *origin, dns_rdatacallbacks_t *callbacks, isc_task_t *task, dns_loaddonefunc_t done, void *done_arg, isc_lex_t *lex, dns_loadctx_t **lctxp) argument 2597 dns_master_loadlexer(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin, dns_rdataclass_t zclass, unsigned int options, dns_rdatacallbacks_t *callbacks, isc_mem_t *mctx) argument 2621 dns_master_loadlexerinc(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin, dns_rdataclass_t zclass, unsigned int options, dns_rdatacallbacks_t *callbacks, isc_task_t *task, dns_loaddonefunc_t done, void *done_arg, dns_loadctx_t **lctxp, isc_mem_t *mctx) argument [all...] |
H A D | sdb.c | 27 #include <isc/lex.h> 349 isc_lex_t *lex = NULL; local 377 result = isc_lex_create(mctx, 64, &lex); 386 result = isc_lex_openbuffer(lex, &b); 400 typeval, lex, 426 if (lex != NULL) 427 isc_lex_destroy(&lex);
|
H A D | sdlz.c | 61 #include <isc/lex.h> 1496 isc_lex_t *lex; local 1546 lex = NULL; 1547 result = isc_lex_create(mctx, 64, &lex); 1556 result = isc_lex_openbuffer(lex, &b); 1566 rdatalist->type, lex, 1585 if (lex != NULL) 1586 isc_lex_destroy(&lex); 1593 if (lex != NULL) 1594 isc_lex_destroy(&lex); [all...] |
/bind-9.6-ESV-R11/lib/isc/ |
H A D | lex.c | 18 /* $Id: lex.c,v 1.86 2007/09/17 09:56:29 shane Exp $ */ 30 #include <isc/lex.h> 72 grow_data(isc_lex_t *lex, size_t *remainingp, char **currp, char **prevp) { argument 75 new = isc_mem_get(lex->mctx, lex->max_token * 2 + 1); 78 memmove(new, lex->data, lex->max_token + 1); 79 *currp = new + (*currp - lex->data); 81 *prevp = new + (*prevp - lex->data); 82 isc_mem_put(lex 91 isc_lex_t *lex; local 126 isc_lex_t *lex; local 147 isc_lex_getcomments(isc_lex_t *lex) argument 158 isc_lex_setcomments(isc_lex_t *lex, unsigned int comments) argument 169 isc_lex_getspecials(isc_lex_t *lex, isc_lexspecials_t specials) argument 180 isc_lex_setspecials(isc_lex_t *lex, isc_lexspecials_t specials) argument 192 new_source(isc_lex_t *lex, isc_boolean_t is_file, isc_boolean_t need_close, void *input, const char *name) argument 227 isc_lex_openfile(isc_lex_t *lex, const char *filename) argument 248 isc_lex_openstream(isc_lex_t *lex, FILE *stream) argument 263 isc_lex_openbuffer(isc_lex_t *lex, isc_buffer_t *buffer) argument 278 isc_lex_close(isc_lex_t *lex) argument 330 pushandgrow(isc_lex_t *lex, inputsource *source, int c) argument 353 isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) argument 796 isc_lex_getmastertoken(isc_lex_t *lex, isc_token_t *token, isc_tokentype_t expect, isc_boolean_t eol) argument 832 isc_lex_getoctaltoken(isc_lex_t *lex, isc_token_t *token, isc_boolean_t eol) argument 859 isc_lex_ungettoken(isc_lex_t *lex, isc_token_t *tokenp) argument 881 isc_lex_getlasttokentext(isc_lex_t *lex, isc_token_t *tokenp, isc_region_t *r) argument 903 isc_lex_getsourcename(isc_lex_t *lex) argument 916 isc_lex_getsourceline(isc_lex_t *lex) argument 930 isc_lex_setsourcename(isc_lex_t *lex, const char *name) argument 948 isc_lex_isfile(isc_lex_t *lex) argument [all...] |
/bind-9.6-ESV-R11/bin/nsupdate/ |
H A D | nsupdate.c | 37 #include <isc/lex.h> 1047 isc_lex_t *lex = NULL; local 1061 result = isc_lex_create(mctx, strlen(cmdline), &lex); 1065 result = isc_lex_openbuffer(lex, &source); 1069 result = dns_rdata_fromtext(NULL, rdataclass, rdatatype, lex, 1072 isc_lex_destroy(&lex);
|