Lines Matching refs:good_buf
95 char *good_buf; /* a pointer to the correct data */ variable
315 if (good_buf) { in report_failure()
316 save_buffer(good_buf, file_size, fsxgoodfd); in report_failure()
337 if (memcmp(good_buf + offset, temp_buf, size) != 0) { in check_buffers()
342 c = good_buf[offset]; in check_buffers()
348 short_at(&good_buf[offset]), bad); in check_buffers()
707 void gendata(char *original_buf, char *good_buf, unsigned offset, unsigned size) in gendata() argument
710 good_buf[offset] = testcalls % 256; in gendata()
712 good_buf[offset] += original_buf[offset]; in gendata()
736 gendata(original_buf, good_buf, offset, size); in dowrite()
739 memset(good_buf + file_size, '\0', offset - file_size); in dowrite()
757 iret = write(fd, good_buf + offset, size); in dowrite()
797 gendata(original_buf, good_buf, offset, size); in domapwrite()
800 memset(good_buf + file_size, '\0', offset - file_size); in domapwrite()
844 memcpy(p + pg_offset, good_buf + offset, size); in domapwrite()
894 memset(good_buf + file_size, '\0', size - file_size); in dotruncate()
922 iret = write(fd, good_buf, file_size); in writefileimage()
1311 good_buf = malloc(maxfilelen); in main()
1312 if (good_buf == NULL) in main()
1314 memset(good_buf, '\0', maxfilelen); in main()
1325 written = write(fd, good_buf, (size_t) maxfilelen); in main()
1349 free(good_buf); in main()