Lines Matching refs:FILE_BUF_SIZE
73 #define FILE_BUF_SIZE 300 macro
78 uint8_t buf[FILE_BUF_SIZE]; in test_file()
79 uint8_t buf2[FILE_BUF_SIZE]; in test_file()
80 uint8_t buf3[FILE_BUF_SIZE]; in test_file()
101 for(i=0;i < FILE_BUF_SIZE; i++) in test_file()
103 len = chk_error(write(fd, buf, FILE_BUF_SIZE / 2)); in test_file()
104 if (len != (FILE_BUF_SIZE / 2)) in test_file()
106 vecs[0].iov_base = buf + (FILE_BUF_SIZE / 2); in test_file()
108 vecs[1].iov_base = buf + (FILE_BUF_SIZE / 2) + 16; in test_file()
109 vecs[1].iov_len = (FILE_BUF_SIZE / 2) - 16; in test_file()
111 if (len != (FILE_BUF_SIZE / 2)) in test_file()
119 len = chk_error(read(fd, buf2, FILE_BUF_SIZE)); in test_file()
120 if (len != FILE_BUF_SIZE) in test_file()
122 if (memcmp(buf, buf2, FILE_BUF_SIZE) != 0) in test_file()
132 vecs[1].iov_len = FILE_BUF_SIZE - FOFFSET - 32; in test_file()
134 if (len != FILE_BUF_SIZE - FOFFSET) in test_file()
136 if (memcmp(buf + FOFFSET, buf3, FILE_BUF_SIZE - FOFFSET) != 0) in test_file()