Lines Matching defs:FILE_BUF_SIZE
82 #define FILE_BUF_SIZE 300
87 uint8_t buf[FILE_BUF_SIZE];
88 uint8_t buf2[FILE_BUF_SIZE];
89 uint8_t buf3[FILE_BUF_SIZE];
113 for(i=0;i < FILE_BUF_SIZE; i++)
115 len = chk_error(write(fd, buf, FILE_BUF_SIZE / 2));
116 if (len != (FILE_BUF_SIZE / 2))
118 vecs[0].iov_base = buf + (FILE_BUF_SIZE / 2);
120 vecs[1].iov_base = buf + (FILE_BUF_SIZE / 2) + 16;
121 vecs[1].iov_len = (FILE_BUF_SIZE / 2) - 16;
123 if (len != (FILE_BUF_SIZE / 2))
131 len = chk_error(read(fd, buf2, FILE_BUF_SIZE));
132 if (len != FILE_BUF_SIZE)
134 if (memcmp(buf, buf2, FILE_BUF_SIZE) != 0)
144 vecs[1].iov_len = FILE_BUF_SIZE - FOFFSET - 32;
146 if (len != FILE_BUF_SIZE - FOFFSET)
148 if (memcmp(buf + FOFFSET, buf3, FILE_BUF_SIZE - FOFFSET) != 0)