Lines Matching defs:l2
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)
704 if (l2 == 0)
708 if ((*b1 = (caddr_t)calloc(1, (size_t)l2)) == (caddr_t)0)
711 (void) memmove(*b1, b2, l2);
713 *l1 = l2;
718 if ((*b1 = (caddr_t)realloc((void *)*b1, (size_t)(*l1 + l2)))
722 (void) memmove(*b1+*l1, b2, l2);
724 *l1 += l2;
736 aw_buf_prepend(caddr_t *b1, int *l1, caddr_t b2, int l2)
738 if (l2 == 0)
742 if ((*b1 = (caddr_t)calloc(1, (size_t)l2)) == (caddr_t)0)
745 (void) memmove(*b1, b2, l2);
747 *l1 = 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);
760 *l1 += l2;