Lines Matching refs:exp_buf
76 static void check_file_data(const char exp_buf[], size_t size) in check_file_data() argument
85 if (memcmp(exp_buf, rbuf, size)) { in check_file_data()
87 tst_res_hexd(TINFO, exp_buf, size, "expected:"); in check_file_data()
161 char exp_buf[buf_size]; in test02() local
163 fill_tst_buf(exp_buf); in test02()
164 memset(exp_buf + block_size, 0, block_size); in test02()
166 check_file_data(exp_buf, buf_size); in test02()
203 char exp_buf[buf_size]; in test03() local
205 fill_tst_buf(exp_buf); in test03()
206 memset(exp_buf + block_size - 1, 0, block_size + 2); in test03()
208 check_file_data(exp_buf, buf_size); in test03()
239 char exp_buf[size]; in test04() local
243 memcpy(exp_buf, tmp_buf, block_size); in test04()
244 memcpy(exp_buf + block_size, tmp_buf + 2 * block_size, in test04()
247 exp_buf[block_size - 1] = exp_buf[block_size] = '\0'; in test04()
248 check_file_data(exp_buf, size); in test04()
281 char exp_buf[buf_size]; in test05() local
283 fill_tst_buf(exp_buf); in test05()
284 memset(exp_buf + block_size - 1, 0, block_size + 2); in test05()
286 check_file_data(exp_buf, buf_size); in test05()