Searched refs:tmp_fd (Results 1 – 1 of 1) sorted by relevance
| /xnu-11215.1.10/tests/ |
| H A D | proc_info.c | 172 static int tmp_fd = -1; variable 614 tmp_fd = CONF_TMP_FILE_OPEN(tmp_path); in proc_info_caller() 622 retval = fcntl(tmp_fd, F_NOCACHE, 1); in proc_info_caller() 624 T_ASSERT_POSIX_SUCCESS(retval, "fcntl(%d, F_NOCACHE) failed", tmp_fd); in proc_info_caller() 640 ssize_t bw = write(tmp_fd, buf, (size_t)map_tmp_sz); in proc_info_caller() 642 T_ASSERT_GT_INT((int)bw, 0, "write(%d, buf, %d) failed", tmp_fd, (int)map_tmp_sz); in proc_info_caller() 647 map_tmp = mmap(0, (size_t)map_tmp_sz, PROT_WRITE, MAP_PRIVATE, tmp_fd, (off_t)PAGE_SIZE); in proc_info_caller() 650 …T_LOG("file: %s is opened as fd %d and mapped at %llx with size %lu", tmp_path, tmp_fd, (uint64_t)… in proc_info_caller() 724 close(tmp_fd); in proc_info_caller() 725 tmp_fd = -1; in proc_info_caller() [all …]
|