Lines Matching refs:buf
268 char buf[4096];
280 len = sizeof buf;
281 rv = apr_file_read(pdesc[i].desc.f, buf, &len);
293 "%s: %.*s", desc_for_log, (int)len, buf);
305 char buf[4096];
316 len = sizeof buf;
317 rv = apr_file_read(fds[i], buf, &len);
334 "%s: %.*s", desc_for_log, (int)len, buf);
666 unsigned char buf[8], *ch;
680 ch = buf;
685 ap_assert(ch == buf + 8);
686 ap_assert(buf[0] == 0xDE);
687 ap_assert(buf[1] == 0xAD);
688 ap_assert(buf[2] == 0xBE);
689 ap_assert(buf[3] == 0xEF);
690 ap_assert(buf[4] == 0xCA);
691 ap_assert(buf[5] == 0xFE);
692 ap_assert(buf[6] == 0xBA);
693 ap_assert(buf[7] == 0xBE);
695 const_ch = buf;
700 ap_assert(const_ch == buf + 8);
703 ch = buf;
708 ch = buf;
713 ap_assert(ch == buf + 3);
714 ap_assert(buf[0] == 0xDE);
715 ap_assert(buf[1] == 0xAD);
716 ap_assert(buf[2] == 0xBE);
718 ch = buf;
723 ch = buf;
728 ap_assert(ch == buf + 2);
729 ap_assert(buf[0] == 0xDE);
730 ap_assert(buf[1] == 0xAD);
732 const_ch = buf;
739 ch = buf;
744 ch = buf;
749 ap_assert(ch == buf + 1);
750 ap_assert(buf[0] == 0xDE);
752 ch = buf;
757 ch = buf;
763 ap_assert(ch == buf + 6);
764 ap_assert(buf[0] == 0);
765 ap_assert(buf[1] == 4);
766 ap_assert(buf[2] == 0x01);
767 ap_assert(buf[3] == 0x02);
768 ap_assert(buf[4] == 0x03);
769 ap_assert(buf[5] == 0x04);
771 ch = buf;
777 ch = buf;
783 ap_assert(ch == buf + 7);
784 ap_assert(buf[0] == 0);
785 ap_assert(buf[1] == 0);
786 ap_assert(buf[2] == 4);
787 ap_assert(buf[3] == 0x01);
788 ap_assert(buf[4] == 0x02);
789 ap_assert(buf[5] == 0x03);
790 ap_assert(buf[6] == 0x04);
792 ch = buf;