Home
last modified time | relevance | path

Searched refs:ResultFD (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DFileSystem.h829 std::error_code createUniqueFile(const Twine &Model, int &ResultFD,
893 int &ResultFD,
962 std::error_code openFile(const Twine &Name, int &ResultFD,
1062 openFileForWrite(const Twine &Name, int &ResultFD,
1065 return openFile(Name, ResultFD, Disp, FA_Write, Flags, Mode);
1103 inline std::error_code openFileForReadWrite(const Twine &Name, int &ResultFD,
1107 return openFile(Name, ResultFD, Disp, FA_Write | FA_Read, Flags, Mode);
1144 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DPath.cpp171 createUniqueEntity(const Twine &Model, int &ResultFD, in createUniqueEntity() argument
186 EC = sys::fs::openFileForReadWrite(Twine(ResultPath.begin()), ResultFD, in createUniqueEntity()
843 createTemporaryFile(const Twine &Model, int &ResultFD, in createTemporaryFile() argument
851 return createUniqueEntity(P.begin(), ResultFD, ResultPath, true, Type, Flags, in createTemporaryFile()
856 createTemporaryFile(const Twine &Prefix, StringRef Suffix, int &ResultFD, in createTemporaryFile() argument
860 return createTemporaryFile(Prefix + Middle + Suffix, ResultFD, ResultPath, in createTemporaryFile()
865 int &ResultFD, in createTemporaryFile() argument
868 return createTemporaryFile(Prefix, Suffix, ResultFD, ResultPath, FS_File, in createTemporaryFile()
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DPath.inc1015 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,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/Windows/
H A DPath.inc1121 static std::error_code nativeFileToFd(Expected<HANDLE> H, int &ResultFD,
1132 ResultFD = -1;
1136 ResultFD = ::_open_osfhandle(intptr_t(*H), CrtOpenFlags);
1137 if (ResultFD == -1) {
1250 std::error_code openFile(const Twine &Name, int &ResultFD,
1257 return nativeFileToFd(*Result, ResultFD, Flags);
1273 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
1277 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);