1*4f1223e8SApple OSS Distributions #ifndef __TEST_FILE_HELPER_H_ 2*4f1223e8SApple OSS Distributions #define __TEST_FILE_HELPER_H_ 3*4f1223e8SApple OSS Distributions 4*4f1223e8SApple OSS Distributions #define MAXFILESIZE 8589934592L 5*4f1223e8SApple OSS Distributions 6*4f1223e8SApple OSS Distributions char* setup_tempdir(); 7*4f1223e8SApple OSS Distributions int cleanup_tempdir(); 8*4f1223e8SApple OSS Distributions int test_file_create(char* path, int thread_id, int num_threads, long long length); 9*4f1223e8SApple OSS Distributions int test_file_read_setup(char* path, int num_threads, long long length, long long max_file_size); 10*4f1223e8SApple OSS Distributions int test_file_read(char* path, int thread_id, int num_threads, long long length, long long max_file_size); 11*4f1223e8SApple OSS Distributions int test_file_read_cleanup(char* path, int num_threads, long long length); 12*4f1223e8SApple OSS Distributions int test_file_write_setup(char* path, int num_threads, long long length); 13*4f1223e8SApple OSS Distributions int test_file_write(char* path, int thread_id, int num_threads, long long length, long long max_file_size); 14*4f1223e8SApple OSS Distributions int test_file_write_cleanup(char* path, int num_threads, long long length); 15*4f1223e8SApple OSS Distributions 16*4f1223e8SApple OSS Distributions #endif 17