xref: /xnu-11215.1.10/tools/tests/perf_index/test_file_helper.h (revision 8d741a5de7ff4191bf97d57b9f54c2f6d4a15585)
1*8d741a5dSApple OSS Distributions #ifndef __TEST_FILE_HELPER_H_
2*8d741a5dSApple OSS Distributions #define __TEST_FILE_HELPER_H_
3*8d741a5dSApple OSS Distributions 
4*8d741a5dSApple OSS Distributions #define MAXFILESIZE 8589934592L
5*8d741a5dSApple OSS Distributions 
6*8d741a5dSApple OSS Distributions char* setup_tempdir();
7*8d741a5dSApple OSS Distributions int cleanup_tempdir();
8*8d741a5dSApple OSS Distributions int test_file_create(char* path, int thread_id, int num_threads, long long length);
9*8d741a5dSApple OSS Distributions int test_file_read_setup(char* path, int num_threads, long long length, long long max_file_size);
10*8d741a5dSApple OSS Distributions int test_file_read(char* path, int thread_id, int num_threads, long long length, long long max_file_size);
11*8d741a5dSApple OSS Distributions int test_file_read_cleanup(char* path, int num_threads, long long length);
12*8d741a5dSApple OSS Distributions int test_file_write_setup(char* path, int num_threads, long long length);
13*8d741a5dSApple OSS Distributions int test_file_write(char* path, int thread_id, int num_threads, long long length, long long max_file_size);
14*8d741a5dSApple OSS Distributions int test_file_write_cleanup(char* path, int num_threads, long long length);
15*8d741a5dSApple OSS Distributions 
16*8d741a5dSApple OSS Distributions #endif
17