Home
last modified time | relevance | path

Searched refs:good_buf (Results 1 – 2 of 2) sorted by relevance

/third_party/ltp/testcases/kernel/fs/fsx-linux/
Dfsx-linux.c95 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()
[all …]
/third_party/mbedtls/tests/suites/
Dtest_suite_ssl.function4280 unsigned char *good_buf = NULL, *bad_buf = NULL;
4293 TEST_ASSERT( ( good_buf = mbedtls_calloc( 1, good_len ) ) != NULL );
4294 TEST_ASSERT( mbedtls_ssl_session_save( &session, good_buf, good_len,
4305 memcpy( bad_buf, good_buf, bad_len );
4313 mbedtls_free( good_buf );