Lines Matching refs:errbuf_i
291 static size_t errbuf_i = 0;
295 if (errbuf_i == 0)
298 assert(errbuf_i < sizeof errbuf);
299 assert(errbuf[errbuf_i] == 0);
300 if (errbuf_i == sizeof errbuf - 1) {
302 errbuf[errbuf_i - 1] = '\n';
309 TLS_APP_ERRFLUSH(tls_child_p, errbuf, errbuf_i, apparg);
311 errbuf_i = 0;
319 if (errbuf_i < sizeof errbuf - 1) {
323 n = (sizeof errbuf) - errbuf_i;
324 r = vsnprintf(errbuf + errbuf_i, n, fmt, args);
328 errbuf_i += r;
330 errbuf_i = sizeof errbuf - 1;
331 errbuf[errbuf_i] = '\0';
333 assert(errbuf_i < sizeof errbuf);
334 assert(errbuf[errbuf_i] == 0);
406 assert(errbuf_i == 0);