Lines Matching refs:ResultFD
1013 std::error_code openFile(const Twine &Name, int &ResultFD,
1023 if ((ResultFD = sys::RetryAfterSignal(-1, Open)) < 0)
1027 int r = fcntl(ResultFD, F_SETFD, FD_CLOEXEC);
1087 if ((Flags & OF_Append) && lseek(ResultFD, 0, SEEK_END) == -1)
1090 if (fstat(ResultFD, &Stat) == -1)
1097 if (auto EC = llvm::enableAutoConversion(ResultFD))
1100 if (auto EC = llvm::setFileTag(ResultFD, CCSID_IBM_1047, true))
1104 if (auto EC = llvm::disableAutoConversion(ResultFD))
1107 if (auto EC = llvm::setFileTag(ResultFD, FT_BINARY, false))
1128 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
1132 openFile(Name, ResultFD, CD_OpenExisting, FA_Read, Flags, 0666);
1144 if (::fcntl(ResultFD, F_GETPATH, Buffer) != -1)
1151 snprintf(ProcPath, sizeof(ProcPath), "/proc/self/fd/%d", ResultFD);
1172 file_t ResultFD;
1173 std::error_code EC = openFileForRead(Name, ResultFD, Flags, RealPath);
1176 return ResultFD;