Lines Matching refs:out_fd
113 int DumpFileFromFdToFd(const std::string& title, const std::string& path_string, int fd, int out_fd,
117 dprintf(out_fd, "------ %s (%s", title.c_str(), path);
128 dprintf(out_fd, ": %s", stamp);
130 dprintf(out_fd, ") ------\n");
131 fsync(out_fd);
134 if (out_fd != STDOUT_FILENO) {
136 dprintf(out_fd, "%s: skipped on dry run\n", path);
138 dprintf(out_fd, "\t(skipped on dry run)\n");
140 fsync(out_fd);
155 dprintf(out_fd, "*** %s: select failed: %s\n", path, strerror(errno));
160 dprintf(out_fd, "*** %s: Timed out after %.3fs\n", path, (float)elapsed / NANOS_PER_SEC);
167 android::base::WriteFully(out_fd, buffer, bytes_read);
171 dprintf(out_fd, "*** %s: Failed to read from fd: %s", path, strerror(errno));
180 if (!newline) dprintf(out_fd, "\n");
181 if (!title.empty()) dprintf(out_fd, "\n");