Lines Matching refs:buf
40 char **buf, size_t *buflen);
43 char **buf, size_t *buflen);
44 static void addlen(size_t len, char **buf, size_t *buflen);
46 char **buf, size_t *buflen);
48 char **buf, size_t *buflen);
69 char *buf, size_t buflen) in ns_sprintrr() argument
76 name_ctx, origin, buf, buflen); in ns_sprintrr()
92 char *buf, size_t buflen) in libresolv_hidden_def()
94 const char *obuf = buf; in libresolv_hidden_def()
107 T(addstr("\t\t\t", 3, &buf, &buflen)); in libresolv_hidden_def()
113 T(addstr("@\t\t\t", 4, &buf, &buflen)); in libresolv_hidden_def()
115 T(addstr(name, len, &buf, &buflen)); in libresolv_hidden_def()
121 T(addstr(".", 1, &buf, &buflen)); in libresolv_hidden_def()
124 T(spaced = addtab(len, 24, spaced, &buf, &buflen)); in libresolv_hidden_def()
131 T(x = ns_format_ttl(ttl, buf, buflen)); in libresolv_hidden_def()
132 addlen(x, &buf, &buflen); in libresolv_hidden_def()
134 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
135 T(spaced = addtab(x + len, 16, spaced, &buf, &buflen)); in libresolv_hidden_def()
144 (void) inet_ntop(AF_INET, rdata, buf, buflen); in libresolv_hidden_def()
145 addlen(strlen(buf), &buf, &buflen); in libresolv_hidden_def()
155 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
161 T(len = charstr(rdata, edata, &buf, &buflen)); in libresolv_hidden_def()
165 T(addstr(" ", 1, &buf, &buflen)); in libresolv_hidden_def()
172 T(len = charstr(rdata, edata, &buf, &buflen)); in libresolv_hidden_def()
182 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
183 T(addstr(" ", 1, &buf, &buflen)); in libresolv_hidden_def()
186 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
187 T(addstr(" (\n", 3, &buf, &buflen)); in libresolv_hidden_def()
195 T(addstr("\t\t\t\t\t", 5, &buf, &buflen)); in libresolv_hidden_def()
197 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
198 T(spaced = addtab(len, 16, spaced, &buf, &buflen)); in libresolv_hidden_def()
199 T(addstr("; serial\n", 9, &buf, &buflen)); in libresolv_hidden_def()
204 T(addstr("\t\t\t\t\t", 5, &buf, &buflen)); in libresolv_hidden_def()
205 T(len = ns_format_ttl(t, buf, buflen)); in libresolv_hidden_def()
206 addlen(len, &buf, &buflen); in libresolv_hidden_def()
207 T(spaced = addtab(len, 16, spaced, &buf, &buflen)); in libresolv_hidden_def()
208 T(addstr("; refresh\n", 10, &buf, &buflen)); in libresolv_hidden_def()
213 T(addstr("\t\t\t\t\t", 5, &buf, &buflen)); in libresolv_hidden_def()
214 T(len = ns_format_ttl(t, buf, buflen)); in libresolv_hidden_def()
215 addlen(len, &buf, &buflen); in libresolv_hidden_def()
216 T(spaced = addtab(len, 16, spaced, &buf, &buflen)); in libresolv_hidden_def()
217 T(addstr("; retry\n", 8, &buf, &buflen)); in libresolv_hidden_def()
222 T(addstr("\t\t\t\t\t", 5, &buf, &buflen)); in libresolv_hidden_def()
223 T(len = ns_format_ttl(t, buf, buflen)); in libresolv_hidden_def()
224 addlen(len, &buf, &buflen); in libresolv_hidden_def()
225 T(spaced = addtab(len, 16, spaced, &buf, &buflen)); in libresolv_hidden_def()
226 T(addstr("; expiry\n", 9, &buf, &buflen)); in libresolv_hidden_def()
231 T(addstr("\t\t\t\t\t", 5, &buf, &buflen)); in libresolv_hidden_def()
232 T(len = ns_format_ttl(t, buf, buflen)); in libresolv_hidden_def()
233 addlen(len, &buf, &buflen); in libresolv_hidden_def()
234 T(addstr(" )", 2, &buf, &buflen)); in libresolv_hidden_def()
235 T(spaced = addtab(len, 16, spaced, &buf, &buflen)); in libresolv_hidden_def()
236 T(addstr("; minimum\n", 10, &buf, &buflen)); in libresolv_hidden_def()
253 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
256 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
271 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
274 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
275 T(addstr(" ", 1, &buf, &buflen)); in libresolv_hidden_def()
278 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
284 T(len = charstr(rdata, edata, &buf, &buflen)); in libresolv_hidden_def()
292 T(len = charstr(rdata, edata, &buf, &buflen)); in libresolv_hidden_def()
297 T(addstr(" ", 1, &buf, &buflen)); in libresolv_hidden_def()
305 T(addstr(t, strlen(t), &buf, &buflen)); in libresolv_hidden_def()
312 (void) inet_ntop(AF_INET6, rdata, buf, buflen); in libresolv_hidden_def()
313 addlen(strlen(buf), &buf, &buflen); in libresolv_hidden_def()
321 T(addstr(t, strlen(t), &buf, &buflen)); in libresolv_hidden_def()
336 T(addstr(t, len, &buf, &buflen)); in libresolv_hidden_def()
339 T(len = charstr(rdata, edata, &buf, &buflen)); in libresolv_hidden_def()
343 T(addstr(" ", 1, &buf, &buflen)); in libresolv_hidden_def()
346 T(len = charstr(rdata, edata, &buf, &buflen)); in libresolv_hidden_def()
350 T(addstr(" ", 1, &buf, &buflen)); in libresolv_hidden_def()
353 T(len = charstr(rdata, edata, &buf, &buflen)); in libresolv_hidden_def()
359 T(addstr(" ", 1, &buf, &buflen)); in libresolv_hidden_def()
362 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
378 T(addstr(t, len, &buf, &buflen)); in libresolv_hidden_def()
381 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
388 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
389 T(addstr(" ", 1, &buf, &buflen)); in libresolv_hidden_def()
392 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
403 (void) inet_ntop(AF_INET, rdata, buf, buflen); in libresolv_hidden_def()
404 addlen(strlen(buf), &buf, &buflen); in libresolv_hidden_def()
409 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
421 &buf, &buflen)); in libresolv_hidden_def()
426 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
432 T(addstr(")", 1, &buf, &buflen)); in libresolv_hidden_def()
449 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
453 T(addstr(str, strlen(str), &buf, &buflen)); in libresolv_hidden_def()
461 T(addstr(" (", 2, &buf, &buflen)); in libresolv_hidden_def()
470 &buf, &buflen)); in libresolv_hidden_def()
472 &buf, &buflen)); in libresolv_hidden_def()
475 T(addstr(" )", 2, &buf, &buflen)); in libresolv_hidden_def()
486 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
487 T(addstr(" ", 1, &buf, &buflen)); in libresolv_hidden_def()
492 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
497 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
505 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
515 T(len = addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
516 T(addstr(" ", 1, &buf, &buflen)); in libresolv_hidden_def()
521 sprintf(buf, "%d", ns_get16(rdata)); in libresolv_hidden_def()
523 addlen(strlen(buf), &buf, &buflen); in libresolv_hidden_def()
534 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
545 (void) inet_ntop(AF_INET6, &a, buf, buflen); in libresolv_hidden_def()
546 addlen(strlen(buf), &buf, &buflen); in libresolv_hidden_def()
554 T(addstr(" ", 1, &buf, &buflen)); in libresolv_hidden_def()
555 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in libresolv_hidden_def()
562 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
571 return (buf - obuf); in libresolv_hidden_def()
580 T(addstr(tmp, len, &buf, &buflen)); in libresolv_hidden_def()
588 T(addstr(tmp, p - tmp, &buf, &buflen)); in libresolv_hidden_def()
590 T(addstr(")", 1, &buf, &buflen)); in libresolv_hidden_def()
591 T(addtab(p - tmp + 1, 48, spaced, &buf, &buflen)); in libresolv_hidden_def()
599 T(addstr(tmp, p - tmp, &buf, &buflen)); in libresolv_hidden_def()
602 return (buf - obuf); in libresolv_hidden_def()
654 charstr(const u_char *rdata, const u_char *edata, char **buf, size_t *buflen) { in charstr() argument
657 char *save_buf = *buf; in charstr()
659 if (addstr("\"", 1, buf, buflen) < 0) in charstr()
668 if (addstr("\\", 1, buf, buflen) < 0) in charstr()
671 buf, buflen) < 0) in charstr()
677 if (addstr("\"", 1, buf, buflen) < 0) in charstr()
682 *buf = save_buf; in charstr()
690 char **buf, size_t *buflen) in addname() argument
693 char *save_buf = *buf; in addname()
696 n = __libc_dn_expand (msg, msg + msglen, *pp, *buf, *buflen); in addname()
699 newlen = prune_origin(*buf, origin); in addname()
700 if (**buf == '\0') { in addname()
706 (*buf)[newlen++] = '@'; in addname()
707 (*buf)[newlen] = '\0'; in addname()
711 (*buf)[newlen] == '\0')) && (*buf)[newlen - 1] != '.') { in addname()
716 (*buf)[newlen++] = '.'; in addname()
717 (*buf)[newlen] = '\0'; in addname()
721 addlen(newlen, buf, buflen); in addname()
722 **buf = '\0'; in addname()
726 *buf = save_buf; in addname()
732 addlen(size_t len, char **buf, size_t *buflen) { in addlen() argument
734 *buf += len; in addlen()
739 addstr(const char *src, size_t len, char **buf, size_t *buflen) { in addstr() argument
744 memcpy(*buf, src, len); in addstr()
745 addlen(len, buf, buflen); in addstr()
746 **buf = '\0'; in addstr()
751 addtab(size_t len, size_t target, int spaced, char **buf, size_t *buflen) { in addtab() argument
753 char *save_buf = *buf; in addtab()
757 T(addstr(" ", 2, buf, buflen)); in addtab()
761 if (addstr("\t", 1, buf, buflen) < 0) { in addtab()
763 *buf = save_buf; in addtab()