Home | History | Annotate | Download | only in dumpstate

Lines Matching refs:out_fd

128 int DumpFileFromFdToFd(const std::string& title, const std::string& path_string, int fd, int out_fd,
132 dprintf(out_fd, "------ %s (%s", title.c_str(), path);
143 dprintf(out_fd, ": %s", stamp);
145 dprintf(out_fd, ") ------\n");
146 fsync(out_fd);
149 if (out_fd != STDOUT_FILENO) {
151 dprintf(out_fd, "%s: skipped on dry run\n", path);
153 dprintf(out_fd, "\t(skipped on dry run)\n");
155 fsync(out_fd);
164 dprintf(out_fd, "*** %s: poll failed: %s\n", path, strerror(errno));
169 dprintf(out_fd, "*** %s: Timed out after %.3fs\n", path, (float)elapsed / NANOS_PER_SEC);
176 android::base::WriteFully(out_fd, buffer, bytes_read);
180 dprintf(out_fd, "*** %s: Failed to read from fd: %s", path, strerror(errno));
188 if (!newline) dprintf(out_fd, "\n");
189 if (!title.empty()) dprintf(out_fd, "\n");