Lines Matching refs:out_fd
134 int DumpFileFromFdToFd(const std::string& title, const std::string& path_string, int fd, int out_fd, in DumpFileFromFdToFd() argument
138 dprintf(out_fd, "------ %s (%s", title.c_str(), path); in DumpFileFromFdToFd()
149 dprintf(out_fd, ": %s", stamp); in DumpFileFromFdToFd()
151 dprintf(out_fd, ") ------\n"); in DumpFileFromFdToFd()
152 fsync(out_fd); in DumpFileFromFdToFd()
155 if (out_fd != STDOUT_FILENO) { in DumpFileFromFdToFd()
157 dprintf(out_fd, "%s: skipped on dry run\n", path); in DumpFileFromFdToFd()
159 dprintf(out_fd, "\t(skipped on dry run)\n"); in DumpFileFromFdToFd()
161 fsync(out_fd); in DumpFileFromFdToFd()
170 dprintf(out_fd, "*** %s: poll failed: %s\n", path, strerror(errno)); in DumpFileFromFdToFd()
175 … dprintf(out_fd, "*** %s: Timed out after %.3fs\n", path, (float)elapsed / NANOS_PER_SEC); in DumpFileFromFdToFd()
182 android::base::WriteFully(out_fd, buffer, bytes_read); in DumpFileFromFdToFd()
186 dprintf(out_fd, "*** %s: Failed to read from fd: %s", path, strerror(errno)); in DumpFileFromFdToFd()
194 if (!newline) dprintf(out_fd, "\n"); in DumpFileFromFdToFd()
195 if (!title.empty()) dprintf(out_fd, "\n"); in DumpFileFromFdToFd()