Home
last modified time | relevance | path

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

/xnu-12377.81.4/tests/vm/
H A Dtest_vm_no_pager_helper.c203 int test_file_fd; in read_and_cause_unmount_crash() local
205 if ((test_file_fd = open(file_path, O_RDWR)) == -1) { in read_and_cause_unmount_crash()
209 char* mapped = mmap(0, 1024, PROT_WRITE, MAP_SHARED, test_file_fd, 0);; in read_and_cause_unmount_crash()
211 close(test_file_fd); in read_and_cause_unmount_crash()
222 close(test_file_fd); in read_and_cause_unmount_crash()
228 int test_file_fd; in read_and_cause_ungraft_crash() local
231 if ((test_file_fd = open(file_path, O_RDWR)) == -1) { in read_and_cause_ungraft_crash()
235 char* mapped = mmap(0, 1024, PROT_WRITE, MAP_SHARED, test_file_fd, 0);; in read_and_cause_ungraft_crash()
237 close(test_file_fd); in read_and_cause_ungraft_crash()
251 close(test_file_fd); in read_and_cause_ungraft_crash()
[all …]
/xnu-12377.81.4/tests/
H A Dioperf.c41 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()