Home
last modified time | relevance | path

Searched refs:buf_ctrl (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgtrans.c594 cat_and_count(struct dm_buf *buf_ctrl, char *append) in cat_and_count() argument
598 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 …]