Lines Matching refs:exp_buf
62 static void check_file_data(const char exp_buf[], size_t size)
71 if (memcmp(exp_buf, rbuf, size)) {
73 tst_res_hexd(TINFO, exp_buf, size, "expected:");
137 char exp_buf[buf_size];
139 fill_tst_buf(exp_buf);
140 memset(exp_buf + block_size, 0, block_size);
142 check_file_data(exp_buf, buf_size);
179 char exp_buf[buf_size];
181 fill_tst_buf(exp_buf);
182 memset(exp_buf + block_size - 1, 0, block_size + 2);
184 check_file_data(exp_buf, buf_size);
215 char exp_buf[size];
219 memcpy(exp_buf, tmp_buf, block_size);
220 memcpy(exp_buf + block_size, tmp_buf + 2 * block_size,
223 exp_buf[block_size - 1] = exp_buf[block_size] = '\0';
224 check_file_data(exp_buf, size);
257 char exp_buf[buf_size];
259 fill_tst_buf(exp_buf);
260 memset(exp_buf + block_size - 1, 0, block_size + 2);
262 check_file_data(exp_buf, buf_size);