Lines Matching refs:fd

55 static bool FdIsValid(int fd) {
56 return fd != kInvalidFd;
84 UsageError(" --dump-output-to-fd=<number>: redirects --dump-info-for output to a file");
91 UsageError(" --profile-file-fd=<number>: same as --profile-file but accepts a file descriptor.");
96 UsageError(" all the files specified with --profile-file or --profile-file-fd.");
100 UsageError(" --reference-profile-file-fd=<number>: same as --reference-profile-file but");
105 UsageError(" apk-fd to find dex files");
107 UsageError(" --apk-fd=<number>: file descriptor containing an open APK to");
148 } else if (option.starts_with("--dump-output-to-fd=")) {
149 ParseUintOption(option, "--dump-output-to-fd", &dump_output_to_fd_, Usage);
152 } else if (option.starts_with("--profile-file-fd=")) {
153 ParseFdForCollection(option, "--profile-file-fd", &profile_files_fd_);
156 } else if (option.starts_with("--reference-profile-file-fd=")) {
157 ParseUintOption(option, "--reference-profile-file-fd", &reference_profile_file_fd_, Usage);
160 } else if (option.starts_with("--apk-fd=")) {
161 ParseFdForCollection(option, "--apk-fd", &apks_fd_);
176 Usage("Profile files should not be specified with both --profile-file-fd and --profile-file");
183 "--reference-profile-file-fd and --reference-profile-file");
187 Usage("Options --profile-file-fd and --reference-profile-file-fd "
206 int DumpOneProfile(const std::string& banner, const std::string& filename, int fd,
209 fd = open(filename.c_str(), O_RDWR);
210 if (fd < 0) {
216 if (!info.Load(fd)) {
217 std::cerr << "Cannot load profile info from fd=" << fd << "\n";
222 if (close(fd) < 0) {
322 int fd;
323 ParseUintOption(option, arg_name, &fd, Usage);
324 fds->push_back(fd);