Lines Matching refs:ResultFD
1015 std::error_code openFile(const Twine &Name, int &ResultFD,
1025 if ((ResultFD = sys::RetryAfterSignal(-1, Open)) < 0)
1029 int r = fcntl(ResultFD, F_SETFD, FD_CLOEXEC);
1089 if ((Flags & OF_Append) && lseek(ResultFD, 0, SEEK_END) == -1)
1092 if (fstat(ResultFD, &Stat) == -1)
1099 if (auto EC = llvm::enableAutoConversion(ResultFD))
1102 if (auto EC = llvm::setFileTag(ResultFD, CCSID_IBM_1047, true))
1106 if (auto EC = llvm::disableAutoConversion(ResultFD))
1109 if (auto EC = llvm::setFileTag(ResultFD, FT_BINARY, false))
1130 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
1134 openFile(Name, ResultFD, CD_OpenExisting, FA_Read, Flags, 0666);
1146 if (::fcntl(ResultFD, F_GETPATH, Buffer) != -1)
1153 snprintf(ProcPath, sizeof(ProcPath), "/proc/self/fd/%d", ResultFD);
1174 file_t ResultFD;
1175 std::error_code EC = openFileForRead(Name, ResultFD, Flags, RealPath);
1178 return ResultFD;