Lines Matching refs:good_buf
95 char *good_buf; /* a pointer to the correct data */ variable
318 if (good_buf) { in report_failure()
319 save_buffer(good_buf, file_size, fsxgoodfd); in report_failure()
340 if (memcmp(good_buf + offset, temp_buf, size) != 0) { in check_buffers()
345 c = good_buf[offset]; in check_buffers()
351 short_at(&good_buf[offset]), bad); in check_buffers()
710 void gendata(char *original_buf, char *good_buf, unsigned offset, unsigned size) in gendata() argument
713 good_buf[offset] = testcalls % 256; in gendata()
715 good_buf[offset] += original_buf[offset]; in gendata()
739 gendata(original_buf, good_buf, offset, size); in dowrite()
742 memset(good_buf + file_size, '\0', offset - file_size); in dowrite()
760 iret = write(fd, good_buf + offset, size); in dowrite()
800 gendata(original_buf, good_buf, offset, size); in domapwrite()
803 memset(good_buf + file_size, '\0', offset - file_size); in domapwrite()
847 memcpy(p + pg_offset, good_buf + offset, size); in domapwrite()
897 memset(good_buf + file_size, '\0', size - file_size); in dotruncate()
925 iret = write(fd, good_buf, file_size); in writefileimage()
1315 good_buf = malloc(maxfilelen); in main()
1316 if (good_buf == NULL) in main()
1318 memset(good_buf, '\0', maxfilelen); in main()
1329 written = write(fd, good_buf, (size_t) maxfilelen); in main()
1353 free(good_buf); in main()