Searched refs:buf_ctrl (Results 1 – 1 of 1) sorted by relevance
737 cat_and_count(struct dm_buf *buf_ctrl, char *append) in cat_and_count() argument741 while ((buf_ctrl->offset + (int)strlen(append)) in cat_and_count()742 >= buf_ctrl->allocation) { in cat_and_count()744 if ((buf_ctrl->text_buffer = in cat_and_count()745 (char *)realloc(buf_ctrl->text_buffer, in cat_and_count()746 buf_ctrl->allocation + BLK_SIZE)) == NULL) { in cat_and_count()749 free(buf_ctrl->text_buffer); in cat_and_count()754 (void) memset(buf_ctrl->text_buffer + in cat_and_count()755 buf_ctrl->allocation, '\0', BLK_SIZE); in cat_and_count()758 buf_ctrl->allocation += BLK_SIZE; in cat_and_count()[all …]