Searched refs:test_file_fd (Results 1 – 2 of 2) sorted by relevance
| /xnu-11215.1.10/tests/ |
| H A D | ioperf.c | 41 int test_file_fd = 0; variable 166 int test_file_fd = open("/mnt2/test", O_RDONLY); in perform_io() local 168 T_ASSERT_POSIX_SUCCESS(test_file_fd, "Open test data file"); in perform_io() 171 T_ASSERT_POSIX_ZERO(fcntl(test_file_fd, F_NOCACHE, 1), "fcntl F_NOCACHE enable"); in perform_io() 172 T_ASSERT_POSIX_ZERO(fcntl(test_file_fd, F_RDAHEAD, 0), "fcntl F_RDAHEAD disable"); in perform_io() 179 read(test_file_fd, data_buf, IO_SIZE); in perform_io() 184 ret = read(test_file_fd, data_buf, IO_SIZE); in perform_io() 188 T_ASSERT_POSIX_SUCCESS(lseek(test_file_fd, 0, SEEK_SET), "lseek begin"); in perform_io() 195 close(test_file_fd); in perform_io()
|
| /xnu-11215.1.10/tests/vm/ |
| H A D | test_vm_no_pager_helper.c | 202 int test_file_fd; in read_and_cause_unmount_crash() local 204 if ((test_file_fd = open(file_path, O_RDWR)) == -1) { in read_and_cause_unmount_crash() 208 char* mapped = mmap(0, 1024, PROT_WRITE, MAP_SHARED, test_file_fd, 0);; in read_and_cause_unmount_crash() 210 close(test_file_fd); in read_and_cause_unmount_crash() 221 close(test_file_fd); in read_and_cause_unmount_crash() 227 int test_file_fd; in read_and_cause_ungraft_crash() local 230 if ((test_file_fd = open(file_path, O_RDWR)) == -1) { in read_and_cause_ungraft_crash() 234 char* mapped = mmap(0, 1024, PROT_WRITE, MAP_SHARED, test_file_fd, 0);; in read_and_cause_ungraft_crash() 236 close(test_file_fd); in read_and_cause_ungraft_crash() 250 close(test_file_fd); in read_and_cause_ungraft_crash()
|