Lines Matching refs:stats_fd
33 fd_t stats_fd; variable
48 stats_fd = OpenFile(path.data(), WrOnly, &err); in OpenStatsFile()
49 if (stats_fd == kInvalidFd) { in OpenStatsFile()
55 WriteToFile(stats_fd, &sizeof_uptr, 1); in OpenStatsFile()
61 if (!path_env || stats_fd == kInvalidFd) in WriteModuleReport()
63 if (!stats_fd) in WriteModuleReport()
67 WriteToFile(stats_fd, mod->full_name(), in WriteModuleReport()
74 WriteLE(stats_fd, s->addr - mod->base_address()); in WriteModuleReport()
75 WriteLE(stats_fd, s->data); in WriteModuleReport()
78 WriteLE(stats_fd, 0); in WriteModuleReport()
79 WriteLE(stats_fd, 0); in WriteModuleReport()
109 if (stats_fd != 0 && stats_fd != kInvalidFd) { in WriteFullReport()
110 CloseFile(stats_fd); in WriteFullReport()
111 stats_fd = kInvalidFd; in WriteFullReport()