readline_buf
static int readline_buf(const char *, const char *, char *, size_t);
while ((i = readline_buf(p, ctx->resolv + ctx->resolv_sz, buf,