Searched refs:buf_ctrl (Results 1 – 1 of 1) sorted by relevance
594 cat_and_count(struct dm_buf *buf_ctrl, char *append) in cat_and_count() argument598 while ((buf_ctrl->offset + (int)strlen(append)) in cat_and_count()599 >= buf_ctrl->allocation) { in cat_and_count()601 if ((buf_ctrl->text_buffer = in cat_and_count()602 (char *)realloc(buf_ctrl->text_buffer, in cat_and_count()603 buf_ctrl->allocation + BLK_SIZE)) == NULL) { in cat_and_count()606 free(buf_ctrl->text_buffer); in cat_and_count()611 (void) memset(buf_ctrl->text_buffer + in cat_and_count()612 buf_ctrl->allocation, '\0', BLK_SIZE); in cat_and_count()615 buf_ctrl->allocation += BLK_SIZE; in cat_and_count()[all …]