Lines Matching defs:b1
341 static int aw_buf_append(caddr_t *b1, int *l1, caddr_t b2, int l2);
342 static int aw_buf_prepend(caddr_t *b1, int *l1, caddr_t b2, int l2);
702 aw_buf_append(caddr_t *b1, int *l1, caddr_t b2, int l2)
707 if (*b1 == (caddr_t)0) {
708 if ((*b1 = (caddr_t)calloc(1, (size_t)l2)) == (caddr_t)0)
711 (void) memmove(*b1, b2, l2);
718 if ((*b1 = (caddr_t)realloc((void *)*b1, (size_t)(*l1 + l2)))
722 (void) memmove(*b1+*l1, b2, l2);
736 aw_buf_prepend(caddr_t *b1, int *l1, caddr_t b2, int l2)
741 if (*b1 == (caddr_t)0) {
742 if ((*b1 = (caddr_t)calloc(1, (size_t)l2)) == (caddr_t)0)
745 (void) memmove(*b1, b2, l2);
752 if ((*b1 = (caddr_t)realloc((void *)*b1, (size_t)(*l1 + l2)))
756 (void) memmove(*b1+l2, *b1, *l1);
758 (void) memmove(*b1, b2, l2);