Lines Matching +defs:current +defs:buffer
67 * Target buffer size and minimum target size.
158 dns_name_t *current;
261 result = commit(callbacks, lctx, ¤t_list, ictx->current, \
492 ictx->current = NULL;
649 genname(char *name, int it, char *buffer, size_t length) {
663 r.base = buffer;
784 isc_buffer_t buffer;
854 isc_buffer_init(&buffer, lhsbuf, strlen(lhsbuf));
855 isc_buffer_add(&buffer, strlen(lhsbuf));
856 isc_buffer_setactive(&buffer, strlen(lhsbuf));
857 result = dns_name_fromtext(owner, &buffer, ictx->origin, 0,
878 isc_buffer_init(&buffer, rhsbuf, strlen(rhsbuf));
879 isc_buffer_add(&buffer, strlen(rhsbuf));
880 isc_buffer_setactive(&buffer, strlen(rhsbuf));
882 result = isc_lex_openbuffer(lctx->lex, &buffer);
997 name = (ictx->glue != NULL) ? ictx->glue : ictx->current;
1049 isc_buffer_t buffer;
1084 * Allocate target_size of buffer space. This is greater than twice
1281 "using current date",
1409 isc_buffer_init(&buffer, token.value.as_region.base,
1411 isc_buffer_add(&buffer, token.value.as_region.length);
1412 isc_buffer_setactive(&buffer,
1414 result = dns_name_fromtext(new_name, &buffer,
1467 * not match the current glue name, commit the glue
1494 * name does not match the current name, see if the
1500 (ictx->current == NULL ||
1501 !dns_name_caseequal(ictx->current, new_name)))
1515 ictx->current, source,
1532 ictx->current = new_name;
1606 if (ictx->current == NULL) {
1608 "%s:%lu: no current owner "
1624 dns_name_format(ictx->current, cbuf,
1822 : ictx->current;
1880 !dns_name_equal(ictx->current, lctx->top))
1883 dns_name_format(ictx->current, namebuf,
1904 result = dns_rdata_checksvcb(ictx->current,
1924 dns_name_equal(ictx->current, lctx->top))
1929 dns_name_format(ictx->current, namebuf,
2118 result = commit(callbacks, lctx, ¤t_list, ictx->current, source,
2206 /* Set current domain. */
2207 if (ictx->glue != NULL || ictx->current != NULL) {
2209 newctx->current = dns_fixedname_name(
2213 (ictx->glue != NULL) ? ictx->glue : ictx->current, &r);
2214 dns_name_fromregion(newctx->current, &r);
2236 * Fill/check exists buffer with 'len' bytes. Track remaining bytes to be
2237 * read when incrementally filling the buffer.
2240 read_and_check(bool do_read, isc_buffer_t *buffer, size_t len, FILE *f,
2247 INSIST(isc_buffer_availablelength(buffer) >= len);
2248 result = isc_stdio_read(isc_buffer_used(buffer), 1, len, f,
2253 isc_buffer_add(buffer, (unsigned int)len);
2258 } else if (isc_buffer_remaininglength(buffer) < len) {
2384 * Allocate target_size of buffer space. This is greater than twice
2443 * The default buffer size should typically be large
2450 * necessary. Note that the buffer must be large
2459 * with the default buffer.
2563 /* Rewind the buffer and continue */
2761 dns_master_loadbuffer(isc_buffer_t *buffer, dns_name_t *top, dns_name_t *origin,
2767 REQUIRE(buffer != NULL);
2772 result = isc_lex_openbuffer(lctx->lex, buffer);
2787 * Re-link glue and current list.
2791 rdatalist_head_t *current, rdatalist_head_t *glue,
2801 while ((this = ISC_LIST_HEAD(*current)) != NULL) {
2802 ISC_LIST_UNLINK(*current, this, link);
2809 ISC_LIST_APPEND(*current, &newlist[rdlcount], link);
2835 * Re-link the current and glue chains.
2839 rdatalist_head_t *current, rdatalist_head_t *glue, isc_mem_t *mctx) {
2849 * Copy current relinking.
2851 this = ISC_LIST_HEAD(*current);