Lines Matching refs:b_buf
88 struct beginning_buf b_buf; member
107 static int add_line_to_linear_buf(struct beginning_buf* b_buf, char* line, ssize_t line_len) { in add_line_to_linear_buf() argument
110 if ((line_len + b_buf->used_len) > b_buf->buf_size) { in add_line_to_linear_buf()
114 memcpy(b_buf->buf + b_buf->used_len, line, line_len); in add_line_to_linear_buf()
115 b_buf->used_len += line_len; in add_line_to_linear_buf()
220 a_buf->b_buf.buf = new_buf; in init_abbr_buf()
221 a_buf->b_buf.alloc_len = BEGINNING_BUF_SIZE; in init_abbr_buf()
222 a_buf->b_buf.buf_size = BEGINNING_BUF_SIZE - 1; in init_abbr_buf()
233 free(a_buf->b_buf.buf); in free_abbr_buf()
239 a_buf->beginning_buf_full = add_line_to_linear_buf(&a_buf->b_buf, linebuf, linelen); in add_line_to_abbr_buf()
250 if (a_buf->b_buf.alloc_len) { in print_abbr_buf()
251 print_buf_lines(log_info, a_buf->b_buf.buf, a_buf->b_buf.used_len); in print_abbr_buf()